|
CoreComponents 4.0.0
A Modern C++ Toolkit
|
Bit-wise write to a ByteSink. More...
#include <cc/BitSink>
Public Member Functions | |
| BitSink (const Bytes &buffer) | |
| Create a new bit output sink. | |
| void | writeBit (bool bit) |
| Write a single bit. | |
| template<int n, class T > | |
| void | writeBits (T word) |
| Write n bits of word, starting from the n-th more significiant bit to the least significiant bit of word. | |
Bit-wise write to a ByteSink.
| OutputExhaustion |
| void writeBit | ( | bool | bit | ) |
Write a single bit.
| void writeBits | ( | T | word | ) |
Write n bits of word, starting from the n-th more significiant bit to the least significiant bit of word.