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

Method readUVarInt32

Fleece/Support/slice_stream.cc:297–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295
296
297 __hot
298 std::optional<uint32_t> slice_istream::readUVarInt32() noexcept {
299 uint32_t n;
300 if (size_t bytesRead = GetUVarInt32(*this, &n); bytesRead > 0) {
301 skip(bytesRead);
302 return n;
303 } else {
304 return std::nullopt;
305 }
306 }
307
308}

Callers

nothing calls this directly

Calls 1

GetUVarInt32Function · 0.85

Tested by

no test coverage detected