Binary
Library of functions for the binary type.
Functions
Base64
Encodes a binary value onto a base64 string.
Syntax:
Binary.Base64(binary: binary)
Parameters
binary
: The binary to convert to a base64 string.
FromString
Converts a string into a binary.
Syntax:
Binary.FromString(string: string)
Parameters
string
: The string to convert to binary.
note
The string is encoded as UTF-8.
Read
Reads the contents of a location as a binary.
Syntax:
Binary.Read(location: location)
Parameters
location
: The location to read bytes from.
note
The location must be accessible as a bytestream.