Enum lz4_java_wrc::Context
source · pub enum Context {
Lz4Flex,
}
Expand description
Use a given context to switch between LZ4 libraries.
By default only lz4_flex is available. The other ones can be enabled by changing the feature flags.
For most users, Context::default()
is a good option.
Variants§
Lz4Flex
Use the lz4_flex library to perform lz4 compression/decompression
Trait Implementations§
source§impl Compression for Context
impl Compression for Context
source§fn compress(&self, input: &[u8], output: &mut [u8]) -> Result<usize, Lz4Error>
fn compress(&self, input: &[u8], output: &mut [u8]) -> Result<usize, Lz4Error>
Compress the data. Read more
source§fn decompress(&self, input: &[u8], output: &mut [u8]) -> Result<usize, Lz4Error>
fn decompress(&self, input: &[u8], output: &mut [u8]) -> Result<usize, Lz4Error>
Decompress the data. Read more
source§fn get_maximum_compressed_buffer_len(&self, decompressed_len: usize) -> usize
fn get_maximum_compressed_buffer_len(&self, decompressed_len: usize) -> usize
Find the maximum size of the output buffer when compressing.
impl Copy for Context
Auto Trait Implementations§
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more