MCPcopy Create free account
hub / github.com/comaps/comaps / Decode

Method Decode

libs/coding/elias_coder.hpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30 template <typename TReader>
31 static uint64_t Decode(BitReader<TReader> & reader)
32 {
33 uint8_t n = 0;
34 while (reader.Read(1) == 0)
35 ++n;
36
37 ASSERT_LESS_OR_EQUAL(n, 63, ());
38
39 uint64_t const msb = static_cast<uint64_t>(1) << n;
40 return msb | reader.ReadAtMost64Bits(n);
41 }
42};
43
44class DeltaCoder

Callers

nothing calls this directly

Calls 2

ReadAtMost64BitsMethod · 0.80
ReadMethod · 0.45

Tested by

no test coverage detected