pub struct DecompressorOxide {Show 19 fields
state: State,
num_bits: u32,
z_header0: u32,
z_header1: u32,
z_adler32: u32,
finish: u8,
block_type: u8,
check_adler32: u32,
dist: u32,
counter: u32,
num_extra: u8,
table_sizes: [u16; 3],
bit_buf: u64,
tables: [HuffmanTable; 3],
code_size_literal: [u8; 288],
code_size_dist: [u8; 32],
code_size_huffman: [u8; 19],
raw_header: [u8; 4],
len_codes: [u8; 457],
}
Expand description
Main decompression struct.
Fields§
§state: State
§num_bits: u32
§z_header0: u32
§z_header1: u32
§z_adler32: u32
§finish: u8
§block_type: u8
§check_adler32: u32
§dist: u32
§counter: u32
§num_extra: u8
§table_sizes: [u16; 3]
§bit_buf: u64
§tables: [HuffmanTable; 3]
§code_size_literal: [u8; 288]
§code_size_dist: [u8; 32]
§code_size_huffman: [u8; 19]
§raw_header: [u8; 4]
§len_codes: [u8; 457]
Implementations§
source§impl DecompressorOxide
impl DecompressorOxide
sourcepub fn new() -> DecompressorOxide
pub fn new() -> DecompressorOxide
Create a new tinfl_decompressor with all fields set to 0.
sourcepub fn adler32(&self) -> Option<u32>
pub fn adler32(&self) -> Option<u32>
Returns the adler32 checksum of the currently decompressed data. Note: Will return Some(1) if decompressing zlib but ignoring adler32.
sourcepub fn adler32_header(&self) -> Option<u32>
pub fn adler32_header(&self) -> Option<u32>
Returns the adler32 that was read from the zlib header if it exists.
Trait Implementations§
source§impl Clone for DecompressorOxide
impl Clone for DecompressorOxide
source§fn clone(&self) -> DecompressorOxide
fn clone(&self) -> DecompressorOxide
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for DecompressorOxide
impl Default for DecompressorOxide
source§fn default() -> DecompressorOxide
fn default() -> DecompressorOxide
Create a new tinfl_decompressor with all fields set to 0.
Auto Trait Implementations§
impl Freeze for DecompressorOxide
impl RefUnwindSafe for DecompressorOxide
impl Send for DecompressorOxide
impl Sync for DecompressorOxide
impl Unpin for DecompressorOxide
impl UnwindSafe for DecompressorOxide
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)