pub struct CCtx<'a>(_, _);Implementations
pub fn compress<C: WriteBuf + ?Sized>(
&mut self,
dst: &mut C,
src: &[u8],
compression_level: CompressionLevel
) -> SafeResult
pub fn compress<C: WriteBuf + ?Sized>(
&mut self,
dst: &mut C,
src: &[u8],
compression_level: CompressionLevel
) -> SafeResult
Wraps the ZSTD_compressCCtx() function
Wraps the ZSTD_compress2() function.
pub fn compress_using_dict<C: WriteBuf + ?Sized>(
&mut self,
dst: &mut C,
src: &[u8],
dict: &[u8],
compression_level: CompressionLevel
) -> SafeResult
pub fn compress_using_dict<C: WriteBuf + ?Sized>(
&mut self,
dst: &mut C,
src: &[u8],
dict: &[u8],
compression_level: CompressionLevel
) -> SafeResult
Wraps the ZSTD_compress_usingDict() function.
pub fn compress_using_cdict<C: WriteBuf + ?Sized>(
&mut self,
dst: &mut C,
src: &[u8],
cdict: &CDict<'_>
) -> SafeResult
pub fn compress_using_cdict<C: WriteBuf + ?Sized>(
&mut self,
dst: &mut C,
src: &[u8],
cdict: &CDict<'_>
) -> SafeResult
Wraps the ZSTD_compress_usingCDict() function.
pub fn init_src_size(
&mut self,
compression_level: CompressionLevel,
pledged_src_size: u64
) -> usize
👎 DeprecatedThis is supported on crate feature experimental only.
pub fn init_src_size(
&mut self,
compression_level: CompressionLevel,
pledged_src_size: u64
) -> usize
👎 Deprecated
This is supported on crate feature
experimental only.Wraps the ZSTD_initCStream_srcSize() function.
pub fn init_using_dict(
&mut self,
dict: &[u8],
compression_level: CompressionLevel
) -> SafeResult
👎 DeprecatedThis is supported on crate feature experimental only.
pub fn init_using_dict(
&mut self,
dict: &[u8],
compression_level: CompressionLevel
) -> SafeResult
👎 Deprecated
This is supported on crate feature
experimental only.Wraps the ZSTD_initCStream_usingDict() function.
👎 DeprecatedThis is supported on crate feature experimental only.
👎 Deprecated
This is supported on crate feature
experimental only.Wraps the ZSTD_initCStream_usingCDict() function.
Wraps the ZSTD_CCtx_refCDict() function.
Dictionary must outlive the context.
pub fn compress_stream<C: WriteBuf + ?Sized>(
&mut self,
output: &mut OutBuffer<'_, C>,
input: &mut InBuffer<'_>
) -> SafeResult
pub fn compress_stream2<C: WriteBuf + ?Sized>(
&mut self,
output: &mut OutBuffer<'_, C>,
input: &mut InBuffer<'_>,
end_op: ZSTD_EndDirective
) -> SafeResult
pub fn compress_stream2<C: WriteBuf + ?Sized>(
&mut self,
output: &mut OutBuffer<'_, C>,
input: &mut InBuffer<'_>,
end_op: ZSTD_EndDirective
) -> SafeResult
Wraps the ZSTD_compressStream2() function.
pub fn flush_stream<C: WriteBuf + ?Sized>(
&mut self,
output: &mut OutBuffer<'_, C>
) -> SafeResult
pub fn flush_stream<C: WriteBuf + ?Sized>(
&mut self,
output: &mut OutBuffer<'_, C>
) -> SafeResult
Wraps the ZSTD_flushStream() function.
pub fn end_stream<C: WriteBuf + ?Sized>(
&mut self,
output: &mut OutBuffer<'_, C>
) -> SafeResult
pub fn end_stream<C: WriteBuf + ?Sized>(
&mut self,
output: &mut OutBuffer<'_, C>
) -> SafeResult
Wraps the ZSTD_endStream() function.
👎 Deprecated
This is supported on crate feature
experimental only.This is supported on crate feature experimental only.
This is supported on crate feature
experimental only.Creates a copy of this context.
This only works before any data has been compressed. An error will be returned otherwise.
This is supported on crate feature experimental only.
This is supported on crate feature
experimental only.Wraps the ZSTD_getBlockSize() function.
pub fn compress_block<C: WriteBuf + ?Sized>(
&mut self,
dst: &mut C,
src: &[u8]
) -> SafeResult
This is supported on crate feature experimental only.
pub fn compress_block<C: WriteBuf + ?Sized>(
&mut self,
dst: &mut C,
src: &[u8]
) -> SafeResult
This is supported on crate feature
experimental only.Wraps the ZSTD_compressBlock() function.