Struct divans::DivansCompressor [−][src]
pub struct DivansCompressor<DefaultEncoder: ArithmeticEncoderOrDecoder + NewWithAllocator<AllocU8>, AllocU8: Allocator<u8>, AllocU32: Allocator<u32>, AllocCDF16: Allocator<DefaultCDF16>> { /* fields omitted */ }
Methods
impl<DefaultEncoder: ArithmeticEncoderOrDecoder + NewWithAllocator<AllocU8>, AllocU8: Allocator<u8>, AllocU32: Allocator<u32>, AllocCDF16: Allocator<DefaultCDF16>> DivansCompressor<DefaultEncoder, AllocU8, AllocU32, AllocCDF16>
[src]
impl<DefaultEncoder: ArithmeticEncoderOrDecoder + NewWithAllocator<AllocU8>, AllocU8: Allocator<u8>, AllocU32: Allocator<u32>, AllocCDF16: Allocator<DefaultCDF16>> DivansCompressor<DefaultEncoder, AllocU8, AllocU32, AllocCDF16>
pub fn get_m8(&mut self) -> Option<&mut RepurposingAlloc<u8, AllocU8>>
[src]
pub fn get_m8(&mut self) -> Option<&mut RepurposingAlloc<u8, AllocU8>>
pub fn free_ref(&mut self)
[src]
pub fn free_ref(&mut self)
pub fn free(self) -> (AllocU8, AllocU32, AllocCDF16)
[src]
pub fn free(self) -> (AllocU8, AllocU32, AllocCDF16)
Trait Implementations
impl<DefaultEncoder: ArithmeticEncoderOrDecoder + NewWithAllocator<AllocU8>, AllocU8: Allocator<u8>, AllocU32: Allocator<u32>, AllocCDF16: Allocator<DefaultCDF16>> Compressor for DivansCompressor<DefaultEncoder, AllocU8, AllocU32, AllocCDF16>
[src]
impl<DefaultEncoder: ArithmeticEncoderOrDecoder + NewWithAllocator<AllocU8>, AllocU8: Allocator<u8>, AllocU32: Allocator<u32>, AllocCDF16: Allocator<DefaultCDF16>> Compressor for DivansCompressor<DefaultEncoder, AllocU8, AllocU32, AllocCDF16>
fn encode(
&mut self,
input: &[u8],
input_offset: &mut usize,
output: &mut [u8],
output_offset: &mut usize
) -> DivansResult
[src]
fn encode(
&mut self,
input: &[u8],
input_offset: &mut usize,
output: &mut [u8],
output_offset: &mut usize
) -> DivansResult
fn encode_commands<SliceType: SliceWrapper<u8> + Default>(
&mut self,
input: &[Command<SliceType>],
input_offset: &mut usize,
output: &mut [u8],
output_offset: &mut usize
) -> DivansOutputResult
[src]
fn encode_commands<SliceType: SliceWrapper<u8> + Default>(
&mut self,
input: &[Command<SliceType>],
input_offset: &mut usize,
output: &mut [u8],
output_offset: &mut usize
) -> DivansOutputResult
fn flush(
&mut self,
output: &mut [u8],
output_offset: &mut usize
) -> DivansOutputResult
[src]
fn flush(
&mut self,
output: &mut [u8],
output_offset: &mut usize
) -> DivansOutputResult
Auto Trait Implementations
impl<DefaultEncoder, AllocU8, AllocU32, AllocCDF16> Send for DivansCompressor<DefaultEncoder, AllocU8, AllocU32, AllocCDF16> where
AllocCDF16: Send,
AllocU32: Send,
AllocU8: Send,
DefaultEncoder: Send,
<AllocCDF16 as Allocator<OptFrequentistCDF16>>::AllocatedMemory: Send,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Send,
<AllocU8 as Allocator<u8>>::AllocatedMemory: Send,
impl<DefaultEncoder, AllocU8, AllocU32, AllocCDF16> Send for DivansCompressor<DefaultEncoder, AllocU8, AllocU32, AllocCDF16> where
AllocCDF16: Send,
AllocU32: Send,
AllocU8: Send,
DefaultEncoder: Send,
<AllocCDF16 as Allocator<OptFrequentistCDF16>>::AllocatedMemory: Send,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Send,
<AllocU8 as Allocator<u8>>::AllocatedMemory: Send,
impl<DefaultEncoder, AllocU8, AllocU32, AllocCDF16> Sync for DivansCompressor<DefaultEncoder, AllocU8, AllocU32, AllocCDF16> where
AllocCDF16: Sync,
AllocU32: Sync,
AllocU8: Sync,
DefaultEncoder: Sync,
<AllocCDF16 as Allocator<OptFrequentistCDF16>>::AllocatedMemory: Sync,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Sync,
<AllocU8 as Allocator<u8>>::AllocatedMemory: Sync,
impl<DefaultEncoder, AllocU8, AllocU32, AllocCDF16> Sync for DivansCompressor<DefaultEncoder, AllocU8, AllocU32, AllocCDF16> where
AllocCDF16: Sync,
AllocU32: Sync,
AllocU8: Sync,
DefaultEncoder: Sync,
<AllocCDF16 as Allocator<OptFrequentistCDF16>>::AllocatedMemory: Sync,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Sync,
<AllocU8 as Allocator<u8>>::AllocatedMemory: Sync,