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

Method encodeOffset

Fleece/Tree/MutableNode.hh:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 bool isLeaf() const FLPURE {return _capacity == 0;}
41
42 static void encodeOffset(offset_t &o, size_t curPos) {
43 assert_precondition((ssize_t)curPos > o);
44 o = endian::encLittle32(offset_t(curPos - o));
45 }
46
47 protected:
48 uint8_t capacity() const FLPURE {

Callers

nothing calls this directly

Calls 1

encLittle32Function · 0.85

Tested by

no test coverage detected