Struct miniz_oxide::inflate::core::DecompressorOxide
source · pub struct DecompressorOxide {}
Expand description
Main decompression struct.
Fields§
§state: State
Current state of the decompressor.
num_bits: u32
Number of bits in the bit buffer.
z_header0: u32
Zlib CMF
z_header1: u32
Zlib FLG
z_adler32: u32
Adler32 checksum from the zlib header.
finish: u32
1 if the current block is the last block, 0 otherwise.
block_type: u32
The type of the current block.
check_adler32: u32
1 if the adler32 value should be checked.
dist: u32
Last match distance.
counter: u32
Variable used for match length, symbols, and a number of other things.
num_extra: u32
Number of extra bits for the last length or distance code.
table_sizes: [u32; 3]
Number of entries in each huffman table.
bit_buf: u64
Buffer of input data.
tables: [HuffmanTable; 3]
Huffman tables.
raw_header: [u8; 4]
Raw block header.
len_codes: [u8; 457]
Huffman length codes.
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.