|
resonance 1.0.1
|
Go to the source code of this file.
Enumerations | |
| enum | InflateResult { kInflateOk = 0 , kInflateError = 1 , kInflateBadCodes = 2 , kInflateOutOfMemory = 3 } |
| Results that inflate() and the routines under it report. More... | |
Functions | |
| int | inflate (void) |
| Decode a whole deflate stream into the window, flushing it to the output. | |
| void | HuftReset (void) |
| Record the pool high-water mark and rewind the pool to its start. | |
| struct huft * | HuftMalloc (unsigned nEntries) |
| Carve a decoding table from the pool, in place of the heap. | |
| enum InflateResult |
Results that inflate() and the routines under it report.
| int inflate | ( | void | ) |
Decode a whole deflate stream into the window, flushing it to the output.
The table pool is rewound before each block. On success any whole bytes read ahead into the bit buffer are returned to the staging buffer. The gzip trailer is neither read nor checked.
| void HuftReset | ( | void | ) |
Record the pool high-water mark and rewind the pool to its start.
inflate() calls it before each block.
| struct huft * HuftMalloc | ( | unsigned | nEntries | ) |
Carve a decoding table from the pool, in place of the heap.
The cursor is advanced even when the allocation fails, and an allocation that ends exactly at the end of the pool fails.
| nEntries | The number of entries, including the link entry. |