This is the ThingsDB documentation for version v0, click here for the latest version!

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.
is_bytes Test if a given value is of type bytes.