util.shrinker.decompress
Shared
Decompresses a compressed string using zstd library
Syntax
local result = util.shrinker.decompress(
input
)Parameters
| Type | Name | Description |
|---|---|---|
string | input | Compressed string to decompress |
Returns
| Type | Name | Description |
|---|---|---|
string | bool | result | Decompressed string on successful execution, false otherwise |
Examples
local input = util.shrinker.compress("Hello World")
core.engine.print("info", "Input:", input)
core.engine.print("info", "Decompressed:", util.shrinker.decompress(input))