Same as Write but accept up to 32 bits to write.
| 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) |