Home | History | Annotate | Download | only in examples

Lines Matching defs:BLOCK

76 // level of deflate blocks. This enables clearing the last-block bit, shifting
80 // is terminated with a 10-bit empty fixed block. If any members on the input
81 // end with a 10-bit empty fixed block, then that block is excised from the
84 // input. The pad bits after stored block headers and after the final deflate
85 // block are all forced to zeros.
98 enum { // BETWEEN -> HEAD -> BLOCK -> TAIL -> BETWEEN -> ...
101 BLOCK, // reading deflate blocks
110 // block, or extra flags, and OS is marked as unknown).
119 int prev; // number of bits from previous block in
121 // start of a block
139 // block, trailer) is reached, or until all of the chunk is
165 // until the end of a component (header, deflate block, or
186 state = BLOCK;
190 case BLOCK:
192 // last-block-bit cleared. Re-synchronize stored block
200 // block. If prev is not -1, then the bits in the bit
202 // the three-bit header of the new deflate block. In that
203 // case, prev is the number of bits from the previous block
206 // the number of bits from the new block currently in the
211 // the end of a deflate block. In that case, that last byte
213 // block, in the range 0..7. If strm.data_type & 0xc0 is
219 // last byte. If we are at the end of the block, bits is
221 // the next block, or the number of pad bits after the
222 // final block. In either of those cases, bits is in the
228 // We are at the start of a new block. Clear the last
229 // block bit, and check for special cases. If it is a
230 // stored block, then emit the header and pad to the
232 // block, then excise it.
234 // Some or all of the three header bits for this block
243 // block bit in the bit buffer.
247 // This is a final fixed block. Load at least ten
248 // bits from this block, including the header, into
260 // That final fixed block is empty. Delete it
261 // to avoid adding an empty block every time a
268 // This is a stored block. Flush to the next
274 // Clear the last block bit.
285 // consumed the byte that had bits from the next block.
290 // We are done handling the deflate block header. Now copy
293 // end if it contains bits from the next deflate block or
294 // pad bits at the end of a deflate block.
296 // mix is 1 if we are at the end of a deflate block, and if
297 // some of the bits in the last byte follow this block. mix
298 // is 0 if we are in the middle of a deflate block, if the
299 // deflate block ended on a byte boundary, or if all of the
305 // next deflate block or pad bits at the end of the deflate
351 // At the end of an internal deflate block. Leave
353 // the next entry to BLOCK, when more bits from the
354 // next block will be available.
356 // from current block
360 // a deflate block, or the deflate block ended on a byte
362 // BLOCK.
364 // The block ended on a byte boundary, so no header
368 // In the middle of a deflate block, so no header here.
375 // the last block in the stream are saved in the bit
429 // deflate fixed block.