dst.ZstdCompressor.compressInto
size_t compressInto(const(ubyte)[] src, ubyte[] dst)Compresses data into the provided output buffer.
Parameters
src | The data to compress. |
dst | The destination buffer (must be at least ZSTD_compressBound(src.length) bytes). |
Returns
The number of bytes written to
Throws
ZstdException if compression fails or the buffer is too small.