Vital.sandbox
Shrinker

shrinker.decompress

Shared

Decompresses a compressed string using zstd library


Syntax

local result = shrinker.decompress(input)

Parameters

TypeNameDescription
stringinputCompressed string to be decompressed

Returns

TypeNameDescription
string / boolresultDecompressed string on successful execution, or false on failure

Examples

Decompresses an input string
local input = shrinker.compress("Hello World")

engine.print("info", "Input:", input)
engine.print("info", "Decompressed:", shrinker.decompress(input))

On this page