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

Method WriteAtMost32Bits

libs/coding/bit_streams.hpp:82–91  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

80
81 // Same as Write but accept up to 32 bits to write.
82 void WriteAtMost32Bits(uint32_t bits, uint8_t n)
83 {
84 ASSERT_LESS_OR_EQUAL(n, 32, ());
85
86 WRITE_BYTE();
87 WRITE_BYTE();
88 WRITE_BYTE();
89
90 Write(bits, n);
91 }
92
93 // Same as Write but accept up to 64 bits to write.
94 void WriteAtMost64Bits(uint64_t bits, uint8_t n)

Callers 5

PushBackMethod · 0.80
PushBackUndefinedMethod · 0.80
UNIT_TESTFunction · 0.80
WriteCrossMwmIdMethod · 0.80
SerializeMethod · 0.80

Calls 1

WriteFunction · 0.70

Tested by 1

UNIT_TESTFunction · 0.64