Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
BitWriter Class Reference

#include <int_utils.h>

Public Member Functions

 BitWriter (unsigned char *output)
template<int BITS, typename I>
void Write (I val)
void Flush ()

Private Member Functions

template<int BITS, typename I>
void WriteInner (I val)

Private Attributes

unsigned char state = 0
int offset = 0
unsigned char * out

Detailed Description

Definition at line 55 of file int_utils.h.

Constructor & Destructor Documentation

◆ BitWriter()

BitWriter::BitWriter ( unsigned char * output)
inline

Definition at line 84 of file int_utils.h.

Member Function Documentation

◆ Flush()

void BitWriter::Flush ( )
inline

Definition at line 95 of file int_utils.h.

Here is the caller graph for this function:

◆ Write()

template<int BITS, typename I>
void BitWriter::Write ( I val)
inline

Definition at line 87 of file int_utils.h.

Here is the call graph for this function:

◆ WriteInner()

template<int BITS, typename I>
void BitWriter::WriteInner ( I val)
inlineprivate

Definition at line 61 of file int_utils.h.

Here is the caller graph for this function:

Member Data Documentation

◆ offset

int BitWriter::offset = 0
private

Definition at line 57 of file int_utils.h.

◆ out

unsigned char* BitWriter::out
private

Definition at line 58 of file int_utils.h.

◆ state

unsigned char BitWriter::state = 0
private

Definition at line 56 of file int_utils.h.


The documentation for this class was generated from the following file: