[−][src]Function zstd_safe::compress_cctx
pub fn compress_cctx(
ctx: &mut CCtx,
dst: &mut [u8],
src: &[u8],
compression_level: i32
) -> Result<usize, usize>
ZSTD_compressCCtx()
Same as ZSTD_compress()
, requires an allocated ZSTD_CCtx
(see ZSTD_createCCtx()
).