The BLOCKS SDK
BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes > Struct Template Reference

Description

template<int allocatedBytes>
struct BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >

This helper class allocates a block of 7-bit bytes and can push sequences of bits into it.

See also
Packed7BitArrayReader

Public Member Functions

const void * getData () const noexcept
 
int size () const noexcept
 
bool hasCapacity (int bitsNeeded) const noexcept
 
void writeHeaderSysexBytes (juce::uint8 deviceIndex) noexcept
 
void writePacketSysexFooter () noexcept
 
template<int numBits>
Packed7BitArrayBuilderoperator<< (IntegerWithBitSize< numBits > value) noexcept
 
void writeBits (juce::uint32 value, int numBits) noexcept
 
State getState () const noexcept
 
void restore (State state) noexcept
 

Classes

struct  State
 Describes the current building state. More...
 

Member Function Documentation

◆ getData()

template<int allocatedBytes>
const void* BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::getData ( ) const
noexcept

◆ size()

template<int allocatedBytes>
int BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::size ( ) const
noexcept

◆ hasCapacity()

◆ writeHeaderSysexBytes()

template<int allocatedBytes>
void BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::writeHeaderSysexBytes ( juce::uint8  deviceIndex)
noexcept

◆ writePacketSysexFooter()

◆ operator<<()

template<int allocatedBytes>
template<int numBits>
Packed7BitArrayBuilder& BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::operator<< ( IntegerWithBitSize< numBits >  value)
noexcept

◆ writeBits()

template<int allocatedBytes>
void BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::writeBits ( juce::uint32  value,
int  numBits 
)
noexcept

◆ getState()

◆ restore()


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