util.shrinker.decompress

Shared

Decompresses a compressed string using zstd library


Syntax

local result = util.shrinker.decompress(
    input
)

Parameters

TypeNameDescription
stringinputCompressed string to decompress

Returns

TypeNameDescription
string | boolresultDecompressed string on successful execution, false otherwise

Examples

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

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

On this page