ZstdCompressor.compressInto

size_t compressInto(const(ubyte)[] src, ubyte[] dst)

Compresses data into the provided output buffer.

Parameters

srcThe data to compress.
dstThe destination buffer (must be at least ZSTD_compressBound(src.length) bytes).

Returns

The number of bytes written to dst.

Throws

ZstdException if compression fails or the buffer is too small.