Lines Matching refs:bytes_read
140 bool ReadInput(size_t* bytes_read);
311 bool VCDiffFileBasedCoder::ReadInput(size_t* bytes_read) { in ReadInput() argument
313 *bytes_read = fread(&input_buffer_[0], 1, input_buffer_.size(), input_file_); in ReadInput()
346 size_t bytes_read = fread(&compare_buffer_[0], in CompareOutput() local
355 if (bytes_read < output_size) { in CompareOutput()
360 if (output.compare(0, output_size, &compare_buffer_[0], bytes_read) != 0) { in CompareOutput()
410 size_t bytes_read = 0; in Encode() local
411 if (!WriteOutput(output) || !ReadInput(&bytes_read)) { in Encode()
416 if (bytes_read > 0) { in Encode()
417 input_size += bytes_read; in Encode()
418 if (!encoder.EncodeChunk(&input_buffer_[0], bytes_read, &output)) { in Encode()
420 << bytes_read << std::endl; in Encode()
467 size_t bytes_read = 0; in Decode() local
468 if (!ReadInput(&bytes_read)) { in Decode()
471 if (bytes_read > 0) { in Decode()
472 input_size += bytes_read; in Decode()
473 if (!decoder.DecodeChunk(&input_buffer_[0], bytes_read, &output)) { in Decode()
475 << bytes_read << std::endl; in Decode()
531 size_t bytes_read = 0; in DecodeAndCompare() local
532 if (!ReadInput(&bytes_read)) { in DecodeAndCompare()
535 if (bytes_read > 0) { in DecodeAndCompare()
536 input_size += bytes_read; in DecodeAndCompare()
537 if (!decoder.DecodeChunk(&input_buffer_[0], bytes_read, &output)) { in DecodeAndCompare()
539 << bytes_read << std::endl; in DecodeAndCompare()