Skip to content
Try Kata

native.Bin

Native methods on Bin.

All modules · Writing docstrings

func len(self: Bin): Int

Returns the byte length.

func get_item(self: Bin, index: Int): Byte

Returns the byte at index; negative, unrepresentable, or out-of-bounds indexes error.

func from_base64(text: Str): Bin

Decodes RFC 4648 base64 text, ignoring whitespace; invalid encoding errors.

func hash(self: Bin): U64

Returns this binary value’s runtime hash.