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

Method writeValueAgain

Fleece/Core/Encoder.cc:172–175  ·  view source on GitHub ↗

Writes a pointer to an already-written value, allowing it to appear twice without overhead.

Source from the content-addressed store, hash-verified

170
171 // Writes a pointer to an already-written value, allowing it to appear twice without overhead.
172 void Encoder::writeValueAgain(PreWrittenValue pos) {
173 throwIf(pos == PreWrittenValue::none, EncodeError, "Can't rewrite an inline Value");
174 writePointer(ssize_t(pos) - _base.size);
175 }
176
177
178 alloc_slice Encoder::snip() {

Callers 2

EncoderTests.ccFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected