benilla-re systems structs docs

inflateInit_

function · zlib · boundary

Address
0x730e80 · 22 bytes, up to 0x730e95
Signature
int32_t __fastcall (void *strm, const char *version, int32_t streamSize)
Meaning
Starts an inflate with 15 window bits through inflateInit2_
Confidence
verified, proof one
Finding
storm/bz#the-zlib-it-links

Finding: The zlib it links in storm: compressed loose files

0x730e80 is zlib's inflateInit_: it passes window bits 15 to 0x730d60, inflateInit2_. That checks the version's first character against 1.2.2 and the stream size against 0x38, defaults the allocator to 0x7348f0 and 0x734910, allocates a 0x1ba8-byte state and, for 15 bits, sets the wrapper to 1 and the window to 2^15: a zlib header and an Adler-32 check. 0x732320 is inflateEnd. 0x730ea0 opens as zlib 1.2.2's inflate does; the rest of its 4,816 bytes is not read here, and the tests run it on every stream they use. Unlike later zlib it does not require a dynamic block to code end-of-block, so such a block decodes on.

The derivation is in the doc.

Callers 4

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.