plaintext into the LZ4 Block format and returns the compressed bytes as a string.
writefile or sending it over request + base64encode.
Parameters
Note: any byte value is allowed, including embedded zeros.
Returns
string - the compressed payload.
Aliases
lz4compress
Example
In a chat-event-based Roblox game, stream Bad Apple as ASCII video over a remote at 30fps.Reason: storing >1800 frames and parsing them would be a lot more easier if you compress the data beforehand.