Convert Kite built-ins to binary and vice versa.
make interface.text.binary(direction)
: Construct object.direction
: The byte order to use.BIG_ENDIAN
: Big endian byte order.LITTLE_ENDIAN
: Little endian byte order._direction
: What byte ordering are we using?bytes_to_integer(number, bytes, signed)
: Convert integer to byte array.number
: String to convert.bytes
: Length of number.signed
: Signed or unsigned?from_int16(str)
: Convert binary to 16-bit integer.str
: String to convert back to integer.from_int32(str)
: Convert binary to 32-bit integer.str
: String to convert back to integer.from_int8(str)
: Convert binary to 8-bit integer.str
: String to convert back to integer.from_uint16(str)
: Convert binary to 16-bit unsigned integer.str
: String to convert back to integer.from_uint32(str)
: Convert binary to 32-bit unsigned integer.str
: String to convert back to integer.from_uint8(str)
: Convert binary to 8-bit unsigned integer.str
: String to convert back to integer.integer_to_bytes(number, bytes, signed)
: Convert integer to byte array.number
: Number to convert.bytes
: Length of number.signed
: Signed or unsigned?to_int16(number)
: Convert integer to two-byte character sequence.number
: Number to convert.to_int32(number)
: Convert integer to four-byte character sequence.number
: Number to convert.to_int8(number)
: Convert integer to single-byte character.number
: Number to convert.to_uint16(number)
: Convert integer to two-byte character sequence.number
: Number to convert.to_uint32(number)
: Convert integer to four-byte character sequence.number
: Number to convert.to_uint8(number)
: Convert integer to single-byte character.number
: Number to convert.