Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Private 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 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 ( val)
inline

Definition at line 87 of file int_utils.h.

◆ WriteInner()

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

Definition at line 61 of file int_utils.h.

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: