Grok  7.6.2
Public Member Functions | List of all members
grk::IBitIO Class Referenceabstract

Bit input/output. More...

#include <IBitIO.h>

Inheritance diagram for grk::IBitIO:
grk::BitIO

Public Member Functions

virtual ~IBitIO ()
 
virtual size_t numbytes ()=0
 Number of bytes written. More...
 
virtual bool write (uint32_t v, uint32_t n)=0
 Write bits. More...
 
virtual void read (uint32_t *bits, uint32_t n)=0
 Read bits. More...
 
virtual bool flush ()=0
 Flush bits. More...
 
virtual void inalign ()=0
 Passes the ending bits (coming from flushing) More...
 

Detailed Description

Bit input/output.

Constructor & Destructor Documentation

◆ ~IBitIO()

virtual grk::IBitIO::~IBitIO ( )
inlinevirtual

Member Function Documentation

◆ flush()

virtual bool grk::IBitIO::flush ( )
pure virtual

Flush bits.

Returns
true if successful, returns false otherwise

Implemented in grk::BitIO.

◆ inalign()

virtual void grk::IBitIO::inalign ( )
pure virtual

Passes the ending bits (coming from flushing)

Implemented in grk::BitIO.

◆ numbytes()

virtual size_t grk::IBitIO::numbytes ( )
pure virtual

Number of bytes written.

Returns
the number of bytes written

Implemented in grk::BitIO.

◆ read()

virtual void grk::IBitIO::read ( uint32_t *  bits,
uint32_t  n 
)
pure virtual

Read bits.

Parameters
bitspointer to bits buffer
nNumber of bits to read

Implemented in grk::BitIO.

◆ write()

virtual bool grk::IBitIO::write ( uint32_t  v,
uint32_t  n 
)
pure virtual

Write bits.

Parameters
vValue of bits
nNumber of bits to write

Implemented in grk::BitIO.


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