Home | History | Annotate | Download | only in src

Lines Matching refs:bytes_read

137   // into input_buffer_.  If successful, returns true and sets *bytes_read
140 bool ReadInput(size_t* bytes_read);
311 bool VCDiffFileBasedCoder::ReadInput(size_t* bytes_read) {
313 *bytes_read = fread(&input_buffer_[0], 1, input_buffer_.size(), input_file_);
346 size_t bytes_read = fread(&compare_buffer_[0],
355 if (bytes_read < output_size) {
360 if (output.compare(0, output_size, &compare_buffer_[0], bytes_read) != 0) {
410 size_t bytes_read = 0;
411 if (!WriteOutput(output) || !ReadInput(&bytes_read)) {
416 if (bytes_read > 0) {
417 input_size += bytes_read;
418 if (!encoder.EncodeChunk(&input_buffer_[0], bytes_read, &output)) {
420 << bytes_read << std::endl;
467 size_t bytes_read = 0;
468 if (!ReadInput(&bytes_read)) {
471 if (bytes_read > 0) {
472 input_size += bytes_read;
473 if (!decoder.DecodeChunk(&input_buffer_[0], bytes_read, &output)) {
475 << bytes_read << std::endl;
531 size_t bytes_read = 0;
532 if (!ReadInput(&bytes_read)) {
535 if (bytes_read > 0) {
536 input_size += bytes_read;
537 if (!decoder.DecodeChunk(&input_buffer_[0], bytes_read, &output)) {
539 << bytes_read << std::endl;