JUCE
Public Member Functions | Static Public Member Functions | List of all members
BlocksProtocol::Packed7BitArrayReader Struct Reference

This helper class reads from a block of 7-bit bytes as sequences of bits. More...

Public Member Functions

 Packed7BitArrayReader (const void *sourceData, int numBytes) noexcept
 
int getRemainingBits () const noexcept
 
template<typename Target >
Target read () noexcept
 
uint32 readBits (int numBits) noexcept
 

Static Public Member Functions

static bool checksumIsOK (const uint8 *data, uint32 size) noexcept
 

Detailed Description

This helper class reads from a block of 7-bit bytes as sequences of bits.

See also
Packed7BitArrayBuilder

Constructor & Destructor Documentation

◆ Packed7BitArrayReader()

BlocksProtocol::Packed7BitArrayReader::Packed7BitArrayReader ( const void *  sourceData,
int  numBytes 
)
noexcept

Member Function Documentation

◆ getRemainingBits()

int BlocksProtocol::Packed7BitArrayReader::getRemainingBits ( ) const
noexcept

◆ read()

template<typename Target >
Target BlocksProtocol::Packed7BitArrayReader::read ( )
noexcept

◆ readBits()

uint32 BlocksProtocol::Packed7BitArrayReader::readBits ( int  numBits)
noexcept

◆ checksumIsOK()

static bool BlocksProtocol::Packed7BitArrayReader::checksumIsOK ( const uint8 data,
uint32  size 
)
staticnoexcept

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