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