ZSTD_compressStream method

int ZSTD_compressStream(
  1. Pointer<ZSTD_CStream> zcs,
  2. Pointer<ZSTD_outBuffer> output,
  3. Pointer<ZSTD_inBuffer> input
)

! Alternative for ZSTD_compressStream2(zcs, output, input, ZSTD_e_continue). NOTE: The return value is different. ZSTD_compressStream() returns a hint for the next read size (if non-zero and not an error). ZSTD_compressStream2() returns the minimum nb of bytes left to flush (if non-zero and not an error).

Implementation

int ZSTD_compressStream(
  ffi.Pointer<ZSTD_CStream> zcs,
  ffi.Pointer<ZSTD_outBuffer> output,
  ffi.Pointer<ZSTD_inBuffer> input,
) {
  return _ZSTD_compressStream(
    zcs,
    output,
    input,
  );
}