Lines Matching refs:bytes_read
138 // into input_buffer_. If successful, returns true and sets *bytes_read
141 bool ReadInput(size_t* bytes_read);
312 bool VCDiffFileBasedCoder::ReadInput(size_t* bytes_read) {
314 *bytes_read = fread(&input_buffer_[0], 1, input_buffer_.size(), input_file_);
347 size_t bytes_read = fread(&compare_buffer_[0],
356 if (bytes_read < output_size) {
361 if (output.compare(0, output_size, &compare_buffer_[0], bytes_read) != 0) {
414 size_t bytes_read = 0;
415 if (!WriteOutput(output) || !ReadInput(&bytes_read)) {
420 if (bytes_read > 0) {
421 input_size += bytes_read;
422 if (!encoder.EncodeChunk(&input_buffer_[0], bytes_read, &output)) {
424 << bytes_read << std::endl;
471 size_t bytes_read = 0;
472 if (!ReadInput(&bytes_read)) {
475 if (bytes_read > 0) {
476 input_size += bytes_read;
477 if (!decoder.DecodeChunk(&input_buffer_[0], bytes_read, &output)) {
479 << bytes_read << std::endl;
535 size_t bytes_read = 0;
536 if (!ReadInput(&bytes_read)) {
539 if (bytes_read > 0) {
540 input_size += bytes_read;
541 if (!decoder.DecodeChunk(&input_buffer_[0], bytes_read, &output)) {
543 << bytes_read << std::endl;