ZstdCompressor.compress
ubyte[] compress(const(ubyte)[] data)Compresses the given data and returns the compressed result.
Allocates the output buffer automatically using ZSTD_compressBound.
Parameters
data | The data to compress. |
Returns
The compressed data as a new buffer.
Throws
ZstdException if compression fails.