inflate.m.js
/*
	w: num. bits (added later)
	a: additional bits (to add to code)
	ht0
	 00000000 00000000 nnnnnnnn aaaawwww  literal
	 00000001 00000000 00000000 aaaawwww  end
	 00000001 llllllll llllllll aaaawwww  length
	ht1
	 00000000 oooooooo oooooooo aaaawwww  offset (0-based)
	*/
num. bits (added later)
a: additional bits (to add to code)
ht0
00000000 00000000 nnnnnnnn aaaawwww  literal
00000001 00000000 00000000 aaaawwww  end
00000001 llllllll llllllll aaaawwww  length
ht1
00000000 oooooooo oooooooo aaaawwww  offset (0-based)
num . bits ( added later ) a : additional bits ( to add to code ) ht0 00000000 00000000 nnnnnnnn aaaawwww literal 00000001 00000000 00000000 aaaawwww end 00000001 llllllll llllllll aaaawwww length ht1 00000000 oooooooo oooooooo aaaawwww offset ( 0 - based )
function gen_codes() {
		var a = []
		for (var i=0; i<256; i++)
			a.push(i<<8)
		a.push(0x1000000) 
		fill(0x1000300, 4, 6)
		a.push(0x1010200, 0x1000000, 0x1000000)
		fill(0x100, 2, 14)
		a.push(0,0)
		codes = a
		function fill(v, rr, n) {
			var m = 1 << 8
			var r = 2*rr
			do {
				do {
					a.push(v)
					v += m
				} while (--r)
				m <<= 1
				v += 16
				r = rr
			} while (--n)
		}
	}
function gen_codes ( ) { var a = [ ] for ( var i = 0 ; i < 256 ; i ++ ) a . push ( i << 8 ) a . push ( 0x1000000 ) fill ( 0x1000300 , 4 , 6 ) a . push ( 0x1010200 , 0x1000000 , 0x1000000 ) fill ( 0x100 , 2 , 14 ) a . push ( 0 , 0 ) codes = a function fill ( v , rr , n ) { var m = 1 << 8 var r = 2 * rr do { do { a . push ( v ) v += m } while ( -- r ) m <<= 1 v += 16 r = rr } while ( -- n ) } }
w: num.
w : num .
// the end