Helper class for constructing a packet for sending to a BLOCKS device.
Public Member Functions | |
HostPacketBuilder () noexcept | |
HostPacketBuilder (const HostPacketBuilder &)=delete | |
HostPacketBuilder (HostPacketBuilder &&)=default | |
const void * | getData () const noexcept |
int | size () const noexcept |
void | writePacketSysexHeaderBytes (TopologyIndex deviceIndex) noexcept |
void | writePacketSysexFooter () noexcept |
bool | deviceControlMessage (DeviceCommand command) noexcept |
bool | beginDataChanges (PacketIndex packetIndex) noexcept |
bool | endDataChanges (bool isLastChange) noexcept |
bool | skipBytes (int numToSkip) noexcept |
bool | setMultipleBytes (const juce::uint8 *values, int num) noexcept |
bool | setMultipleBytes (juce::uint8 value, juce::uint8 lastValue, int num) noexcept |
bool | addProgramEventMessage (const juce::int32 *messageData) |
bool | addFirmwareUpdatePacket (const juce::uint8 *packetData, juce::uint8 size) |
bool | addConfigSetMessage (juce::int32 item, juce::int32 value) |
bool | addRequestMessage (juce::int32 item) |
bool | addRequestFactorySyncMessage () |
bool | addRequestUserSyncMessage () |
bool | addFactoryReset () |
bool | addBlockReset () |
bool | addSetBlockName (const juce::String &name) |
|
noexcept |
|
delete |
|
default |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
References BlocksProtocol::IntegerWithBitSize< numBits >::bits, BlocksProtocol::IntegerWithBitSize< 8 >::bits, BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::getState(), BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::hasCapacity(), BlocksProtocol::IntegerWithBitSize< 8 >::maxValue, BlocksProtocol::IntegerWithBitSize< numBits >::maxValue, BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::restore(), BlocksProtocol::skipBytesFew, and BlocksProtocol::skipBytesMany.
|
noexcept |
References BlocksProtocol::IntegerWithBitSize< 8 >::bits, BlocksProtocol::IntegerWithBitSize< numBits >::bits, BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::hasCapacity(), and BlocksProtocol::setSequenceOfBytes.
Referenced by BlocksProtocol::HostPacketBuilder< maxPacketBytes >::setMultipleBytes().
|
noexcept |
References BlocksProtocol::IntegerWithBitSize< 8 >::bits, BlocksProtocol::IntegerWithBitSize< numBits >::bits, BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::getState(), BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::hasCapacity(), BlocksProtocol::IntegerWithBitSize< 8 >::maxValue, BlocksProtocol::IntegerWithBitSize< numBits >::maxValue, BlocksProtocol::Packed7BitArrayBuilder< allocatedBytes >::restore(), BlocksProtocol::setFewBytesWithLastValue, BlocksProtocol::setFewBytesWithValue, BlocksProtocol::setManyBytesWithValue, and BlocksProtocol::HostPacketBuilder< maxPacketBytes >::setMultipleBytes().
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addProgramEventMessage | ( | const juce::int32 * | messageData | ) |
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addFirmwareUpdatePacket | ( | const juce::uint8 * | packetData, |
juce::uint8 | size | ||
) |
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addConfigSetMessage | ( | juce::int32 | item, |
juce::int32 | value | ||
) |
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addRequestMessage | ( | juce::int32 | item | ) |
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addRequestFactorySyncMessage | ( | ) |
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addRequestUserSyncMessage | ( | ) |
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addFactoryReset | ( | ) |
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addBlockReset | ( | ) |
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addSetBlockName | ( | const juce::String & | name | ) |