| 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 | |
| 44 | class DeltaCoder |
nothing calls this directly
no test coverage detected