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

Method writeTo

Fleece/Tree/NodeRef.cc:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51
52 Node NodeRef::writeTo(Encoder &enc) {
53 assert_precondition(!isLeaf());
54 Node node;
55 if (isMutable())
56 node.interior = ((MutableInterior*)asMutable())->writeTo(enc);
57 else
58 node.interior = asImmutable()->interior.writeTo(enc);
59 return node;
60 }
61
62 uint32_t NodeRef::writeTo(Encoder &enc, bool writeKey) {
63 assert_precondition(isLeaf());

Callers

nothing calls this directly

Calls 1

isLeafFunction · 0.85

Tested by

no test coverage detected