|
@@ -10,26 +10,26 @@
|
|
|
export const U = (function(){
|
|
|
const u16 = Uint16Array, u32 = Uint32Array;
|
|
|
return {
|
|
|
- next_code : new u16(16),
|
|
|
- bl_count : new u16(16),
|
|
|
- ordr : [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ],
|
|
|
- of0 : [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 999, 999, 999],
|
|
|
- exb : [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0],
|
|
|
- ldef : new u16(32),
|
|
|
- df0 : [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 65535, 65535],
|
|
|
- dxb : [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0],
|
|
|
- ddef : new u32(32),
|
|
|
+ next_code: new u16(16),
|
|
|
+ bl_count: new u16(16),
|
|
|
+ ordr: [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ],
|
|
|
+ of0: [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 999, 999, 999],
|
|
|
+ exb: [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0],
|
|
|
+ ldef: new u16(32),
|
|
|
+ df0: [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 65535, 65535],
|
|
|
+ dxb: [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0],
|
|
|
+ ddef: new u32(32),
|
|
|
flmap: new u16( 512), fltree: [] as number[],
|
|
|
fdmap: new u16( 32), fdtree: [] as number[],
|
|
|
- lmap : new u16(32768), ltree : [] as number[], ttree:[] as number[],
|
|
|
- dmap : new u16(32768), dtree : [] as number[],
|
|
|
- imap : new u16( 512), itree : [] as number[],
|
|
|
+ lmap: new u16(32768), ltree: [] as number[], ttree: [] as number[],
|
|
|
+ dmap: new u16(32768), dtree: [] as number[],
|
|
|
+ imap: new u16( 512), itree: [] as number[],
|
|
|
// rev9 : new u16( 512)
|
|
|
rev15: new u16(1 << 15),
|
|
|
- lhst : new u32(286), dhst : new u32( 30), ihst : new u32(19),
|
|
|
- lits : new u32(15000),
|
|
|
- strt : new u16(1 << 16),
|
|
|
- prev : new u16(1 << 15)
|
|
|
+ lhst: new u32(286), dhst: new u32( 30), ihst: new u32(19),
|
|
|
+ lits: new u32(15000),
|
|
|
+ strt: new u16(1 << 16),
|
|
|
+ prev: new u16(1 << 15)
|
|
|
};
|
|
|
})();
|
|
|
|