Home | History | Annotate | Download | only in src

Lines Matching defs:length

25   size_t length = 0;
30 if (puff_buf_in_[index_] & 0x80) { // Reading length/distance.
32 length = puff_buf_in_[index_] & 0x7F;
38 length = puff_buf_in_[index_] + 127;
40 length += 3;
41 TEST_AND_RETURN_FALSE(length <= 259);
45 // End of block. End of block is similar to length/distance but without
46 // distance value and length value set to 259.
47 if (length == 259) {
66 pd.length = length;
68 DVLOG(2) << "Read length: " << length << " distance: " << distance;
75 length = puff_buf_in_[index_] & 0x7F;
82 length = ReadByteArrayToUint16(&puff_buf_in_[index_]) + 127;
85 length++;
86 DVLOG(2) << "Read literals length: " << length;
88 TEST_AND_RETURN_FALSE_SET_ERROR(index_ + length <= puff_size_,
91 pd.length = length;
92 pd.read_fn = [this, length](uint8_t* buffer, size_t count) mutable {
93 TEST_AND_RETURN_FALSE(count <= length);
96 length -= count;
106 length = ReadByteArrayToUint16(&puff_buf_in_[index_]) + 1;
108 DVLOG(2) << "Read block metadata length: " << length;
110 TEST_AND_RETURN_FALSE_SET_ERROR(index_ + length <= puff_size_,
112 TEST_AND_RETURN_FALSE(length <= sizeof(pd.block_metadata));
113 memcpy(pd.block_metadata, &puff_buf_in_[index_], length);
114 index_ += length;
115 pd.length = length;