Lines Matching defs:output

123   // Opens the output file (the target or delta file) for writing.
127 // Opens the output file (the target file) for comparison against the decoded
128 // output when using "vcdiff test".
142 // Writes the contents of output to output_file_. If successful, returns
144 bool WriteOutput(const string& output);
146 // Reads a number of bytes from output_file_ equal to the size of output,
147 // and compares to make sure they match the contents of output. If the bytes
151 bool CompareOutput(const string& output);
163 // The filenames used for input and output. Will be empty if stdin
168 // stdio-style file handles for the input and output files and the dictionary.
183 // A memory buffer used to load the output file into memory for comparison
288 // Opens the output file for streamed read operations using the
290 // No output buffer is allocated because the encoded/decoded output
323 bool VCDiffFileBasedCoder::WriteOutput(const string& output) {
324 if (!output.empty()) {
325 // Some new output has been generated and is ready to be written
326 // to the output file or to stdout.
327 fwrite(output.data(), 1, output.size(), output_file_);
329 std::cerr << "Error writing " << output.size() << " bytes to "
338 bool VCDiffFileBasedCoder::CompareOutput(const string& output) {
339 if (!output.empty()) {
340 size_t output_size = output.size();
341 // Some new output has been generated and is ready to be compared against
342 // the output file.
360 if (output.compare(0, output_size, &compare_buffer_[0], bytes_read) != 0) {
400 string output;
404 if (!encoder.StartEncoding(&output)) {
411 if (!WriteOutput(output) || !ReadInput(&bytes_read)) {
414 output_size += output.size();
415 output.clear();
418 if (!encoder.EncodeChunk(&input_buffer_[0], bytes_read, &output)) {
425 encoder.FinishEncoding(&output);
426 if (!WriteOutput(output)) {
429 output_size += output.size();
430 output.clear();
455 string output;
473 if (!decoder.DecodeChunk(&input_buffer_[0], bytes_read, &output)) {
479 if (!WriteOutput(output)) {
482 output_size += output.size();
483 output.clear();
490 if (!WriteOutput(output)) {
493 output_size += output.size();
494 output.clear();
519 string output;
537 if (!decoder.DecodeChunk(&input_buffer_[0], bytes_read, &output)) {
543 if (!CompareOutput(output)) {
546 output_size += output.size();
547 output.clear();
554 if (!CompareOutput(output)) {
557 output_size += output.size();
558 output.clear();