Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.bit.decompress

S๐Ÿท๏ธ Bit

Part of StarfallEx namespace

๐Ÿ”— External
bit.decompress(s, maxSize)
View on GitHub|lua/starfall/libs_sh/bit.lua:699
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Decompresses a string using LZMA. XZ Utils will always produce streamed (i.e. the decompressed size is not specified in the header) LZMA data. If you're trying to compress data from outside of GMod and then decompress it inside of GMod, it probably won't work unless you use the older, deprecated 'LZMA Utils', or util.Compress.

Parameters

NameTypeDescription
sstringString to decompress
maxSize?numberMaximum allowed size of decompressed data

Returns

TypeDescription
stringDecompressed string, or nil if decompression failed

Examples

No examples available.

Used In

No usages found in the codebase.