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

Method nextWritePos

Fleece/Core/Encoder.cc:158–161  ·  view source on GitHub ↗

Returns position in the stream of the next write. Pads stream to even pos if necessary.

Source from the content-addressed store, hash-verified

156
157 // Returns position in the stream of the next write. Pads stream to even pos if necessary.
158 size_t Encoder::nextWritePos() {
159 _out.padToEvenLength();
160 return _out.length();
161 }
162
163 // Returns an opaque reference to the last value written, but not if it's inline.
164 Encoder::PreWrittenValue Encoder::lastValueWritten() const {

Callers 4

writeToMethod · 0.45
writeToMethod · 0.45
writeRootToMethod · 0.45

Calls 2

padToEvenLengthMethod · 0.80
lengthMethod · 0.80

Tested by

no test coverage detected