zstd_decompress
Type: Function · Category: encode
Decompress a zstd compressed block of data.
Browsers store HTTP responses as they were received, so cached
bodies served with Content-Encoding: zstd need to be decompressed
before they can be read.
Returns NULL if the data can not be decompressed.
| Argument | Type | Description |
|---|---|---|
string |
string (required) | Data to decompress |
max_bytes |
int64 | Maximum length of bytes to read into memory |
Platforms: macOS, Linux, Windows