InflateImpl

haxe.zip.InflateImpl (Class)

A pure Haxe implementation of the ZLIB Inflate algorithm which allows reading compressed data without any platform-specific support.

Static Members

run(i: haxe.io.Input, ?bufsize: Int = 65536): haxe.io.Bytes
Name Type Default
i haxe.io.Input
bufsize Int 65536
Returns
haxe.io.Bytes

Instance Members

readBytes(b: haxe.io.Bytes, pos: Int, len: Int): Int
Name Type
b haxe.io.Bytes
pos Int
len Int
Returns
Int

new(i: haxe.io.Input, ?header: Bool = true, ?crc: Bool = true): Void
Name Type Default
i haxe.io.Input
header Bool true
crc Bool true

Private Members

LEN_EXTRA_BITS_TBL: Array<Int>

LEN_BASE_VAL_TBL: Array<Int>

DIST_EXTRA_BITS_TBL: Array<Int>

DIST_BASE_VAL_TBL: Array<Int>

CODE_LENGTHS_POS: Array<Int>

FIXED_HUFFMAN: Null<Anonymous>

nbits: Int

bits: Int

state: Anonymous

isFinal: Bool

huffman: Anonymous

huffdist: Null<Anonymous>

htools: HuffTools

len: Int

dist: Int

needed: Int


outpos: Int


lengths: Array<Int>


buildFixedHuffman(): Null<Anonymous>
Returns
Null

getBits(n: Int): Int
Name Type
n Int
Returns
Int

getBit(): Bool
Returns
Bool

getRevBits(n: Int): Int
Name Type
n Int
Returns
Int

resetBits(): Void

addBytes(b: haxe.io.Bytes, p: Int, len: Int): Void
Name Type
b haxe.io.Bytes
p Int
len Int

addByte(b: Int): Void
Name Type
b Int

addDistOne(n: Int): Void
Name Type
n Int

addDist(d: Int, len: Int): Void
Name Type
d Int
len Int

applyHuffman(h: Anonymous): Int
Name Type
h Anonymous
Returns
Int

inflateLengths(a: Array<Int>, max: Int): Void
Name Type
a Array<Int>
max Int

inflateLoop(): Bool
Returns
Bool