- Unlike zlib91.lua, This library does not support pure lua.
- This library shares almost identical usage with zlib91.lua
- Since this library uses the base128 function, which is part of rstk's BitBuffer library, due to the operating principle of the bit buffer, it may not be compatible with the general base128(ex. Python base128 library) at all or the data size may be slightly larger.
- If you want better compatibility, you can also look into zlib91.lua, although it may have some disadvantages as it can grow slightly more data than base128.
- Supports luau type autocompletes
- (btw, I just personally prefer to use UpperCamelCase with modules for roblox)
local Zlib128 = require(script.zlib128)
Zlib128.compress(data :string, useSingleQuote? :boolean, level :number, strategy :"dynamic"|"fixed"|"huffman_only") -> compressedData :string
local compressedData = Zlib128.compress("example data")
local decompressedData = Zlib128.decompress(compressedData)
- "dynamic"
- "fixed"
- "huffman_only"