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

Method WriteAtMost64Bits

libs/coding/bit_streams.hpp:94–107  ·  view source on GitHub ↗

Same as Write but accept up to 64 bits to write.

Source from the content-addressed store, hash-verified

92
93 // Same as Write but accept up to 64 bits to write.
94 void WriteAtMost64Bits(uint64_t bits, uint8_t n)
95 {
96 ASSERT_LESS_OR_EQUAL(n, 64, ());
97
98 WRITE_BYTE();
99 WRITE_BYTE();
100 WRITE_BYTE();
101 WRITE_BYTE();
102 WRITE_BYTE();
103 WRITE_BYTE();
104 WRITE_BYTE();
105
106 Write(bits, n);
107 }
108
109#undef WRITE_BYTE
110

Callers 4

EncodeMethod · 0.80
EncodeMethod · 0.80
UNIT_TESTFunction · 0.80
WriteCrossMwmIdMethod · 0.80

Calls 1

WriteFunction · 0.70

Tested by 1

UNIT_TESTFunction · 0.64