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

Method writeRootTo

Fleece/Tree/MutableNode.hh:305–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303
304
305 offset_t writeRootTo(Encoder &enc) {
306 auto intNode = writeTo(enc);
307 auto curPos = (offset_t)enc.nextWritePos();
308 intNode.makeRelativeTo(curPos);
309 enc.writeRaw({&intNode, sizeof(intNode)});
310 return offset_t(curPos);
311 }
312
313
314 void dump(std::ostream &out, unsigned indent =1) const {

Callers 1

writeToMethod · 0.80

Calls 3

nextWritePosMethod · 0.45
makeRelativeToMethod · 0.45
writeRawMethod · 0.45

Tested by

no test coverage detected