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
| Function | Purpose |
|---|---|
| base64encode | Encodes raw bytes as Base64. |
| base64decode | Decodes Base64 into raw bytes. |
| lz4compress | Compresses bytes using the LZ4 block codec. |
| lz4decompress | Decompresses an LZ4 block. |
