Home | History | Annotate | Download | only in src

Lines Matching refs:bytes_read

215   uint64_t bytes_read = 0;
216 while (bytes_read < length) {
224 auto bytes_to_read = std::min(length - bytes_read, end_byte - start_byte);
228 TEST_AND_RETURN_FALSE(stream_->Read(bytes + bytes_read, bytes_to_read));
233 bytes[bytes_read + bytes_to_read - 1] &=
244 bytes[bytes_read] >>= deflate_bit_pos_ & 7;
255 bytes_read += bytes_to_read;
269 (length - bytes_read >= cur_puff_->length);
282 ? bytes + bytes_read
302 std::min(length - bytes_read, cur_puff_->length - skip_bytes_);
304 memcpy(bytes + bytes_read, puff_buffer_->data() + skip_bytes_,
309 bytes_read += bytes_to_copy;
325 TEST_AND_RETURN_FALSE(bytes_read == length);