Bitcoin Core  22.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
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 Attributes

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

Detailed Description

Definition at line 52 of file int_utils.h.

Constructor & Destructor Documentation

◆ BitWriter()

BitWriter::BitWriter ( unsigned char *  output)
inline

Definition at line 58 of file int_utils.h.

Member Function Documentation

◆ Flush()

void BitWriter::Flush ( )
inline

Definition at line 80 of file int_utils.h.

Here is the caller graph for this function:

◆ Write()

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

Definition at line 61 of file int_utils.h.

Member Data Documentation

◆ offset

int BitWriter::offset = 0
private

Definition at line 54 of file int_utils.h.

◆ out

unsigned char* BitWriter::out
private

Definition at line 55 of file int_utils.h.

◆ state

unsigned char BitWriter::state = 0
private

Definition at line 53 of file int_utils.h.


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