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

Method writeUVarInt

Fleece/Support/slice_stream.cc:127–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127 bool slice_ostream::writeUVarInt(uint64_t n) noexcept {
128 if (capacity() < kMaxVarintLen64 && capacity() < SizeOfVarInt(n)) {
129 _overflowed = true;
130 return false;
131 }
132 _next += PutUVarInt(_next, n);
133 return true;
134 }
135
136
137#pragma mark - INPUT STREAM:

Callers

nothing calls this directly

Calls 2

SizeOfVarIntFunction · 0.85
PutUVarIntFunction · 0.85

Tested by

no test coverage detected