MCPcopy Create free account
hub / github.com/couchbase/fleece / writeOutputToFile

Method writeOutputToFile

Fleece/Support/Writer.cc:250–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248
249
250 bool Writer::writeOutputToFile(FILE *f) {
251 assert_precondition(!_outputFile);
252 bool result = true;
253 forEachChunk([&](slice chunk) {
254 if (result && fwrite(chunk.buf, chunk.size, 1, f) < chunk.size)
255 result = false;
256 });
257 if (result) {
258 auto len = length();
259 _reset(); // don't reset _length, so offsets remain consistent after
260 _length = len - _available.size;
261 }
262 return result;
263 }
264
265
266#pragma mark - BASE64:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected