MCPcopy Create free account
hub / github.com/cwida/ALP / InnerReadByte

Method InnerReadByte

publication/source_code/include/chimp/bit_reader.hpp:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 inline uint64_t ByteIndex() const { return (index >> 3); }
69
70 inline uint8_t InnerReadByte(const uint8_t& offset) {
71 uint8_t result = input[ByteIndex() + offset] << BitIndex() |
72 ((input[ByteIndex() + offset + 1] & REMAINDER_MASKS[8 + BitIndex()]) >> (8 - BitIndex()));
73 return result;
74 }
75
76 //! index: 4
77 //! size: 7

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected