JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::BlocksProtocol::Packed7BitArrayReader Struct Reference

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

#include <juce_BitPackingUtilities.h>

Collaboration diagram for juce::BlocksProtocol::Packed7BitArrayReader:

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
 

Private Attributes

int bitsReadInCurrentByte = 0
 
const uint8data
 
int totalBits
 

Detailed Description

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

See also
Packed7BitArrayBuilder

{Blocks}

Constructor & Destructor Documentation

◆ Packed7BitArrayReader()

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

Member Function Documentation

◆ checksumIsOK()

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

◆ getRemainingBits()

◆ read()

◆ readBits()

Member Data Documentation

◆ bitsReadInCurrentByte

int juce::BlocksProtocol::Packed7BitArrayReader::bitsReadInCurrentByte = 0
private

◆ data

const uint8* juce::BlocksProtocol::Packed7BitArrayReader::data
private

◆ totalBits

int juce::BlocksProtocol::Packed7BitArrayReader::totalBits
private

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