Lines Matching defs:block
40 - compressed data ending initially with empty stored block
41 - uncompressed data filling out originally empty stored block and
49 stored block and determine where to append the data in the foo.add file, as
99 for large files is actually the length modulo 2^32.) The stored block
106 than any expected block size for a mass storage device (usually 512 bytes or
110 - Pointer to first stored block length -- this points to the two-byte length
111 of the first stored block, which is followed by the two-byte, one's
112 complement of that length. The stored block length is preceded by the
113 three-bit header of the stored block, which is the actual start of the
114 stored block in the deflate format. See the bit offset field below.
115 - Pointer to the last stored block length. This is the same as above, but
116 for the last stored block of the uncompressed data in the gzip file.
117 Initially this is the same as the first stored block length pointer.
118 When the stored block gets to 16K (see the MAX_STORE define), then a new
119 stored block as added, at which point the last stored block length pointer
120 is different from the first stored block length pointer. When they are
121 different, the first bit of the last stored block header is eight bits, or
122 one byte back from the block length.
131 - Final stored block length. This is used to quickly find where to append,
132 and allows the restoration of the original final stored block state when
134 - First stored block start as the number of bits back from the final stored
135 block first length byte. This value is in the range of 3..10, and is
137 subtracting three (0..7). This allows the last-block bit of the stored
138 block header to be updated when a new stored block is added, for the case
139 when the first stored block and the last stored block are the same. (When
143 block, or for the compressed data to be terminated and a valid gzip file
168 + Restore the original last-block bit and stored block length of the last
169 stored block from the information in the extra field, in case a previous
171 - Append the provided data to the last stored block, creating new stored
172 blocks as needed and updating the stored blocks last-block bits and
193 compressed block. If there is no foo.dict, proceed anyway with the
199 non-last empty static block (10 bits long), that is then located and
200 written over by a last-bit-set empty stored block.
203 - Write over the extra field with the updated stored block offsets, bits
260 /* maximum stored block size in Kbytes -- must be in 1..63 */
265 discard the stored block headers contribution of five bytes each) */
294 off_t first; /* offset of first stored block first length byte */
295 int back; /* location of first block id in bits back from first */
296 uint stored; /* bytes currently in last stored block */
297 off_t last; /* offset of last stored block first length byte */
320 52, 0, 0, 0, 0, 0, 0, 0, /* offset of first stored block length */
321 52, 0, 0, 0, 0, 0, 0, 0, /* offset of last stored block length */
324 0, 0, /* final stored block data length */
332 1, 0, 0, 0xff, 0xff, /* empty stored block (last) */
457 /* Rewrite the last block header bits and subsequent zero bits to get to a byte
458 boundary, setting the last block bit if last is true, and then write the
459 remainder of the stored block header (length and one's complement). Leave
460 the file pointer after the end of the last stored block data. Return -1 if
470 mask = 0x80 >> ((back - 1) & 7); /* mask for block last-bit */
480 /* change the last-bit of the last stored block as requested -- note
482 of a stored block being 00 and per the convention that the bits to
487 /* write the modified stored block header and lengths, move the file
488 pointer to after the last stored block data */
507 /* set the last block last-bit and length, in case recovering an
509 block */
514 block as needed, and update the total crc and length */
516 /* append as much as we can to the last block */
531 /* if we need to, add a new empty stored block */
533 /* mark current block as not last */
537 /* point to new, empty stored block */
542 /* mark last block as last, update its length */
605 appending a final empty stored block and the gzip trailer. Return -1 if
642 /* prime deflate with last bits of previous block, position write
652 /* compress, finishing with a partial non-last empty static block */
673 /* find start of empty static block -- scanning backwards the first one
674 bit is the second bit of the block, if the last byte is zero, then
676 empty static block is ten bits long */
913 uint block;
943 block = PULL2(buf + 1);
944 if (next + block > len ||
945 read(log->fd, (char *)data + next, block) != block)
947 next += block;