nl:: Weave:: Profiles:: BDX_Development:: BlockQueryV1
#include <src/lib/profiles/bulk-data-transfer/Development/BDXMessages.h>
The BlockQueryV1 message is used to request that a block of data be transferred from sender to receiver.
Summary
It includes a 4 byte block counter.
Inheritance
Direct Known Subclasses:nl::Weave::Profiles::BDX_Development::BlockAckV1
nl::Weave::Profiles::BDX_Development::BlockEOFAckV1
Constructors and Destructors |
|
---|---|
BlockQueryV1(void)
The no-arg constructor with defaults for the block query message.
|
Public types |
|
---|---|
@85
|
enum |
Public attributes |
|
---|---|
mBlockCounter
|
uint32_t
Counter of the block that we are asking for.
|
Public functions |
|
---|---|
init(uint32_t aCounter)
|
Initialize a BlockQueryV1 message.
|
operator==(const BlockQueryV1 &) const
|
bool
Equality comparison between BlockQueryV1 messages.
|
pack(PacketBuffer *aBuffer)
|
Pack a block query message into an PacketBuffer.
|
packedLength(void)
|
uint16_t
Returns the packed length of this block query message.
|
Public static functions |
|
---|---|
parse(PacketBuffer *aBuffer, BlockQueryV1 & aQuery)
|
Parse data from an PacketBuffer into a BlockQueryV1 message format.
|
Public types
@85
@85
Public attributes
Public functions
BlockQueryV1
BlockQueryV1( void )
The no-arg constructor with defaults for the block query message.
init
WEAVE_ERROR init( uint32_t aCounter )
Initialize a BlockQueryV1 message.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
WEAVE_NO_ERROR if successful
|
operator==
bool operator==( const BlockQueryV1 & ) const
Equality comparison between BlockQueryV1 messages.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
true iff they have all the same fields.
|
pack
WEAVE_ERROR pack( PacketBuffer *aBuffer )
Pack a block query message into an PacketBuffer.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
packedLength
uint16_t packedLength( void )
Returns the packed length of this block query message.
Details | |
---|---|
Returns |
length of the message when packed
|
Public static functions
parse
WEAVE_ERROR parse( PacketBuffer *aBuffer, BlockQueryV1 & aQuery )
Parse data from an PacketBuffer into a BlockQueryV1 message format.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|