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

Helper class for constructing a packet for sending to a BLOCKS device. More...

#include <juce_HostPacketBuilder.h>

Collaboration diagram for juce::BlocksProtocol::HostPacketBuilder< maxPacketBytes >:

Public Member Functions

 HostPacketBuilder () noexcept
 
 HostPacketBuilder (const HostPacketBuilder &)=delete
 
 HostPacketBuilder (HostPacketBuilder &&)=default
 
bool addBlockReset ()
 
bool addConfigSetMessage (int32 item, int32 value)
 
bool addFactoryReset ()
 
bool addFirmwareUpdatePacket (const uint8 *packetData, uint8 size)
 
bool addProgramEventMessage (const int32 *messageData)
 
bool addRequestFactorySyncMessage ()
 
bool addRequestMessage (int32 item)
 
bool addRequestUserSyncMessage ()
 
bool addSetBlockName (const juce::String &name)
 
bool beginDataChanges (PacketIndex packetIndex) noexcept
 
bool deviceControlMessage (DeviceCommand command) noexcept
 
bool endDataChanges (bool isLastChange) noexcept
 
const void * getData () const noexcept
 
bool setMultipleBytes (const uint8 *values, int num) noexcept
 
bool setMultipleBytes (uint8 value, uint8 lastValue, int num) noexcept
 
int size () const noexcept
 
bool skipBytes (int numToSkip) noexcept
 
void writePacketSysexFooter () noexcept
 
void writePacketSysexHeaderBytes (TopologyIndex deviceIndex) noexcept
 

Private Member Functions

void writeMessageType (MessageFromHost type) noexcept
 

Private Attributes

Packed7BitArrayBuilder< maxPacketBytes > data
 

Detailed Description

template<int maxPacketBytes>
struct juce::BlocksProtocol::HostPacketBuilder< maxPacketBytes >

Helper class for constructing a packet for sending to a BLOCKS device.

{Blocks}

Constructor & Destructor Documentation

◆ HostPacketBuilder() [1/3]

template<int maxPacketBytes>
juce::BlocksProtocol::HostPacketBuilder< maxPacketBytes >::HostPacketBuilder ( )
inlinenoexcept

◆ HostPacketBuilder() [2/3]

template<int maxPacketBytes>
juce::BlocksProtocol::HostPacketBuilder< maxPacketBytes >::HostPacketBuilder ( const HostPacketBuilder< maxPacketBytes > &  )
delete

◆ HostPacketBuilder() [3/3]

template<int maxPacketBytes>
juce::BlocksProtocol::HostPacketBuilder< maxPacketBytes >::HostPacketBuilder ( HostPacketBuilder< maxPacketBytes > &&  )
default

Member Function Documentation

◆ addBlockReset()

◆ addConfigSetMessage()

◆ addFactoryReset()

◆ addFirmwareUpdatePacket()

◆ addProgramEventMessage()

◆ addRequestFactorySyncMessage()

◆ addRequestMessage()

◆ addRequestUserSyncMessage()

◆ addSetBlockName()

◆ beginDataChanges()

◆ deviceControlMessage()

◆ endDataChanges()

◆ getData()

◆ setMultipleBytes() [1/2]

◆ setMultipleBytes() [2/2]

◆ size()

◆ skipBytes()

◆ writeMessageType()

◆ writePacketSysexFooter()

◆ writePacketSysexHeaderBytes()

Member Data Documentation

◆ data

template<int maxPacketBytes>
Packed7BitArrayBuilder<maxPacketBytes> juce::BlocksProtocol::HostPacketBuilder< maxPacketBytes >::data
private

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