AcediaDocumentation

Encoding

Binary-safe Base64 and LZ4 conversion.

Base64 converts byte strings to text and back. LZ4 compresses or decompresses bytes without treating them as text.

Keep results as Luau strings even when they contain NUL bytes. Decompression has a size limit when the output length is inferred.

Functions

FunctionPurpose
base64encodeEncodes raw bytes as Base64.
base64decodeDecodes Base64 into raw bytes.
lz4compressCompresses bytes using the LZ4 block codec.
lz4decompressDecompresses an LZ4 block.

On this page