Bitcoin ABC 0.30.7
P2P Digital Currency
|
#include <streams.h>
Public Member Functions | |
BitStreamWriter (OStream &ostream) | |
~BitStreamWriter () | |
void | Write (uint64_t data, int nbits) |
Write the nbits least significant bits of a 64-bit int to the output stream. More... | |
void | Flush () |
Flush any unwritten bits to the output stream, padding with 0's to the next byte boundary. More... | |
Private Attributes | |
OStream & | m_ostream |
uint8_t | m_buffer {0} |
Buffered byte waiting to be written to the output stream. More... | |
int | m_offset {0} |
Number of high order bits in m_buffer already written by previous Write() calls and not yet flushed to the stream. More... | |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |