[−][src]Struct brotli::BrotliState
Fields
state: BrotliRunningStateloop_counter: i32br: BrotliBitReaderalloc_u8: AllocU8alloc_u32: AllocU32alloc_hc: AllocHCbuffer: [u8; 8]buffer_length: u32pos: i32max_backward_distance: i32max_backward_distance_minus_custom_dict_size: i32max_distance: i32ringbuffer_size: i32ringbuffer_mask: i32dist_rb_idx: i32dist_rb: [i32; 4]ringbuffer: <AllocU8 as Allocator<u8>>::AllocatedMemoryhtree_command_index: u16context_lookup: &'static [u8; 512]context_map_slice_index: usizedist_context_map_slice_index: usizesub_loop_counter: u32literal_hgroup: HuffmanTreeGroup<AllocU32, AllocHC>insert_copy_hgroup: HuffmanTreeGroup<AllocU32, AllocHC>distance_hgroup: HuffmanTreeGroup<AllocU32, AllocHC>trivial_literal_context: i32distance_context: i32meta_block_remaining_len: i32block_type_length_state: BlockTypeAndLengthState<AllocHC>distance_postfix_bits: u32num_direct_distance_codes: u32distance_postfix_mask: i32num_dist_htrees: u32dist_context_map: <AllocU8 as Allocator<u8>>::AllocatedMemoryliteral_htree_index: u8dist_htree_index: u8large_window: boolshould_wrap_ringbuffer: boolerror_code: BrotliDecoderErrorCoderepeat_code_len: u32prev_code_len: u32copy_length: i32distance_code: i32rb_roundtrips: usizepartial_pos_out: usizesymbol: u32repeat: u32space: u32table: [HuffmanCode; 32]symbol_lists_index: usizesymbols_lists_array: [u16; 720]next_symbol: [i32; 32]code_length_code_lengths: [u8; 18]code_length_histo: [u16; 16]htree_index: i32htree_next_offset: u32context_index: u32max_run_length_prefix: u32code: u32context_map_table: <AllocHC as Allocator<HuffmanCode>>::AllocatedMemorymtf_upper_bound: u32mtf_or_error_string: Result<[u8; 256], [u8; 256]>custom_dict: <AllocU8 as Allocator<u8>>::AllocatedMemorycustom_dict_size: i32substate_metablock_header: BrotliRunningMetablockHeaderStatesubstate_tree_group: BrotliRunningTreeGroupStatesubstate_context_map: BrotliRunningContextMapStatesubstate_uncompressed: BrotliRunningUncompressedStatesubstate_huffman: BrotliRunningHuffmanStatesubstate_decode_uint8: BrotliRunningDecodeUint8Stateis_last_metablock: u8is_uncompressed: u8is_metadata: u8size_nibbles: u8window_bits: u32num_literal_htrees: u32context_map: <AllocU8 as Allocator<u8>>::AllocatedMemorycontext_modes: <AllocU8 as Allocator<u8>>::AllocatedMemorytrivial_literal_contexts: [u32; 8]Methods
impl<'brotli_state, AllocU8, AllocU32, AllocHC> BrotliState<AllocU8, AllocU32, AllocHC> where
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>, [src]
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
pub fn new(
alloc_u8: AllocU8,
alloc_u32: AllocU32,
alloc_hc: AllocHC
) -> BrotliState<AllocU8, AllocU32, AllocHC>[src]
alloc_u8: AllocU8,
alloc_u32: AllocU32,
alloc_hc: AllocHC
) -> BrotliState<AllocU8, AllocU32, AllocHC>
pub fn new_with_custom_dictionary(
alloc_u8: AllocU8,
alloc_u32: AllocU32,
alloc_hc: AllocHC,
custom_dict: <AllocU8 as Allocator<u8>>::AllocatedMemory
) -> BrotliState<AllocU8, AllocU32, AllocHC>[src]
alloc_u8: AllocU8,
alloc_u32: AllocU32,
alloc_hc: AllocHC,
custom_dict: <AllocU8 as Allocator<u8>>::AllocatedMemory
) -> BrotliState<AllocU8, AllocU32, AllocHC>
pub fn new_strict(
alloc_u8: AllocU8,
alloc_u32: AllocU32,
alloc_hc: AllocHC
) -> BrotliState<AllocU8, AllocU32, AllocHC>[src]
alloc_u8: AllocU8,
alloc_u32: AllocU32,
alloc_hc: AllocHC
) -> BrotliState<AllocU8, AllocU32, AllocHC>
pub fn BrotliStateMetablockBegin(&mut self)[src]
pub fn BrotliStateCleanupAfterMetablock(&mut self)[src]
pub fn BrotliStateIsStreamStart(&self) -> bool[src]
pub fn BrotliStateIsStreamEnd(&self) -> bool[src]
pub fn BrotliHuffmanTreeGroupInit(
&mut self,
group: WhichTreeGroup,
alphabet_size: u16,
max_symbol: u16,
ntrees: u16
)[src]
&mut self,
group: WhichTreeGroup,
alphabet_size: u16,
max_symbol: u16,
ntrees: u16
)
pub fn BrotliHuffmanTreeGroupRelease(&mut self, group: WhichTreeGroup)[src]
Trait Implementations
impl<'brotli_state, AllocU8, AllocU32, AllocHC> Drop for BrotliState<AllocU8, AllocU32, AllocHC> where
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>, [src]
AllocHC: Allocator<HuffmanCode>,
AllocU32: Allocator<u32>,
AllocU8: Allocator<u8>,
Auto Trait Implementations
impl<AllocU8, AllocU32, AllocHC> RefUnwindSafe for BrotliState<AllocU8, AllocU32, AllocHC> where
AllocHC: RefUnwindSafe,
AllocU32: RefUnwindSafe,
AllocU8: RefUnwindSafe,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: RefUnwindSafe,
<AllocU32 as Allocator<u32>>::AllocatedMemory: RefUnwindSafe,
<AllocU8 as Allocator<u8>>::AllocatedMemory: RefUnwindSafe,
AllocHC: RefUnwindSafe,
AllocU32: RefUnwindSafe,
AllocU8: RefUnwindSafe,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: RefUnwindSafe,
<AllocU32 as Allocator<u32>>::AllocatedMemory: RefUnwindSafe,
<AllocU8 as Allocator<u8>>::AllocatedMemory: RefUnwindSafe,
impl<AllocU8, AllocU32, AllocHC> Send for BrotliState<AllocU8, AllocU32, AllocHC> where
AllocHC: Send,
AllocU32: Send,
AllocU8: Send,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: Send,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Send,
<AllocU8 as Allocator<u8>>::AllocatedMemory: Send,
AllocHC: Send,
AllocU32: Send,
AllocU8: Send,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: Send,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Send,
<AllocU8 as Allocator<u8>>::AllocatedMemory: Send,
impl<AllocU8, AllocU32, AllocHC> Sync for BrotliState<AllocU8, AllocU32, AllocHC> where
AllocHC: Sync,
AllocU32: Sync,
AllocU8: Sync,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: Sync,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Sync,
<AllocU8 as Allocator<u8>>::AllocatedMemory: Sync,
AllocHC: Sync,
AllocU32: Sync,
AllocU8: Sync,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: Sync,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Sync,
<AllocU8 as Allocator<u8>>::AllocatedMemory: Sync,
impl<AllocU8, AllocU32, AllocHC> Unpin for BrotliState<AllocU8, AllocU32, AllocHC> where
AllocHC: Unpin,
AllocU32: Unpin,
AllocU8: Unpin,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: Unpin,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Unpin,
<AllocU8 as Allocator<u8>>::AllocatedMemory: Unpin,
AllocHC: Unpin,
AllocU32: Unpin,
AllocU8: Unpin,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: Unpin,
<AllocU32 as Allocator<u32>>::AllocatedMemory: Unpin,
<AllocU8 as Allocator<u8>>::AllocatedMemory: Unpin,
impl<AllocU8, AllocU32, AllocHC> UnwindSafe for BrotliState<AllocU8, AllocU32, AllocHC> where
AllocHC: UnwindSafe,
AllocU32: UnwindSafe,
AllocU8: UnwindSafe,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: UnwindSafe,
<AllocU32 as Allocator<u32>>::AllocatedMemory: UnwindSafe,
<AllocU8 as Allocator<u8>>::AllocatedMemory: UnwindSafe,
AllocHC: UnwindSafe,
AllocU32: UnwindSafe,
AllocU8: UnwindSafe,
<AllocHC as Allocator<HuffmanCode>>::AllocatedMemory: UnwindSafe,
<AllocU32 as Allocator<u32>>::AllocatedMemory: UnwindSafe,
<AllocU8 as Allocator<u8>>::AllocatedMemory: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,