bytes

The bytes type can be used to store a sequence of byte values.

This code converts a string to bytes

.as_bytes = bytes("Hello ThingsDB!");

Functions

Function Description
len Return the length of the byte sequence.
Function Description
bytes Create a new bytes value.
isbytes Test if a given value is of type bytes.