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!");

Methods

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