pub fn compress_to_buffer(
        &mut self,
        source: &[u8],
        destination: &mut [u8],
        level: i32,
    ) -> io::Result<usize> {
        zstd_safe::compress_using_dict(
            &mut self.context,
            destination,
            source,
            &self.dict[..],
            level,
        )
        .map_err(map_error_code)
    }
/// Compress a single block of data to the given destination buffer.
///
/// Returns the number of bytes written, or an error if something happened
/// (for instance if the destination buffer was too small).
///
/// A level of `0` uses zstd's default (currently `3`).
Compress a single block of data to the given destination buffer.
Returns the number of bytes written, or an error if something happened
(for instance if the destination buffer was too small).

A level of `0` uses zstd's default (currently `3`).
Compress a single block of data to the given destination buffer . Returns the number of bytes written or an error if something happened ( for instance if the destination buffer was too small ) . A level of ` 0 ` uses zstd ' s default ( currently ` 3 ` ) .
pub fn compress_to_buffer(
        &mut self,
        source: &[u8],
        destination: &mut [u8],
        level: i32,
    ) -> io::Result<usize> {
        zstd_safe::compress_using_dict(
            &mut self.context,
            destination,
            source,
            &self.dict[..],
            level,
        )
        .map_err(map_error_code)
    }
pub fn compress_to_buffer ( & mut self , source : & [ u8 ] , destination : & mut [ u8 ] , level : i32 , ) -> io :: Result < usize > { zstd_safe :: compress_using_dict ( & mut self . context , destination , source , & self . dict [ .. ] , level , ) . map_err ( map_error_code ) }
Compress a single block of data to the given destination buffer.
Compress a single block of data to the given destination buffer .
&mut self
source
&[u8]
destination
&mut [u8]
level
i32
&mut self
source
&[u8]
destination
&mut [u8]
level
i32