This helper class allocates a block of 7-bit bytes and can push sequences of bits into it.
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> | |
Packed7BitArrayBuilder & | operator<< (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... | |
|
noexcept |
|
noexcept |
Referenced by BlocksProtocol::HostPacketBuilder< maxPacketBytes >::size().
|
noexcept |
Referenced by BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addBlockReset(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addConfigSetMessage(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addFactoryReset(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addFirmwareUpdatePacket(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addProgramEventMessage(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addRequestFactorySyncMessage(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addRequestMessage(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addRequestUserSyncMessage(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addSetBlockName(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::beginDataChanges(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::deviceControlMessage(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::endDataChanges(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::setMultipleBytes(), BlocksProtocol::HostPacketBuilder< maxPacketBytes >::skipBytes(), BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::writeBits(), and BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::writePacketSysexFooter().
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |