function fixedtables(state) {
  /* build fixed huffman tables if first call (may not be thread safe) */ if (
    virgin
  ) {
    let sym;
    lenfix = new Uint32Array(512);
    distfix = new Uint32Array(32);
    /* literal/length table */ sym = 0;
    while (sym < 144) state.lens[sym++] = 8;
    while (sym < 256) state.lens[sym++] = 9;
    while (sym < 280) state.lens[sym++] = 7;
    while (sym < 288) state.lens[sym++] = 8;
    inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, {
      bits: 9,
    });
    /* distance table */ sym = 0;
    while (sym < 32) state.lens[sym++] = 5;
    inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, {
      bits: 5,
    });
    /* do this just once */ virgin = false;
  }
  state.lencode = lenfix;
  state.lenbits = 9;
  state.distcode = distfix;
  state.distbits = 5;
}
// We have no pointers in JS, so keep tables separate
We have no pointers in JS, so keep tables separate
We have no pointers in JS so keep tables separate
function fixedtables(state) {
   if (
    virgin
  ) {
    let sym;
    lenfix = new Uint32Array(512);
    distfix = new Uint32Array(32);
     sym = 0;
    while (sym < 144) state.lens[sym++] = 8;
    while (sym < 256) state.lens[sym++] = 9;
    while (sym < 280) state.lens[sym++] = 7;
    while (sym < 288) state.lens[sym++] = 8;
    inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, {
      bits: 9,
    });
     sym = 0;
    while (sym < 32) state.lens[sym++] = 5;
    inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, {
      bits: 5,
    });
     virgin = false;
  }
  state.lencode = lenfix;
  state.lenbits = 9;
  state.distcode = distfix;
  state.distbits = 5;
}
function fixedtables ( state ) { if ( virgin ) { let sym ; lenfix = new Uint32Array ( 512 ) ; distfix = new Uint32Array ( 32 ) ; sym = 0 ; while ( sym < 144 ) state . lens [ sym ++ ] = 8 ; while ( sym < 256 ) state . lens [ sym ++ ] = 9 ; while ( sym < 280 ) state . lens [ sym ++ ] = 7 ; while ( sym < 288 ) state . lens [ sym ++ ] = 8 ; inflate_table ( LENS , state . lens , 0 , 288 , lenfix , 0 , state . work , { bits : 9 , } ) ; sym = 0 ; while ( sym < 32 ) state . lens [ sym ++ ] = 5 ; inflate_table ( DISTS , state . lens , 0 , 32 , distfix , 0 , state . work , { bits : 5 , } ) ; virgin = false ; } state . lencode = lenfix ; state . lenbits = 9 ; state . distcode = distfix ; state . distbits = 5 ; }
We have no pointers in JS, so keep tables separate
We have no pointers in JS so keep tables separate
/* build fixed huffman tables if first call (may not be thread safe) */ /* literal/length table */ /* distance table */ /* do this just once */