nl::Weave::Profiles::BDX_Development::BlockQuery

#include <src/lib/profiles/bulk-data-transfer/Development/BDXMessages.h>

The BlockQuery message is used to request that a block of data be transferred from sender to receiver.

Summary

Inheritance

Direct Known Subclasses:
  nl::Weave::Profiles::BDX_Development::BlockAck
  nl::Weave::Profiles::BDX_Development::BlockEOFAck

Constructors and Destructors

BlockQuery(void)
The no-arg constructor with defaults for the block query message.

Public types

@72 enum

Public attributes

mBlockCounter
uint8_t
Counter of the block that we are asking for.

Public functions

init(uint8_t aCounter)
Initialize a BlockQuery message.
operator==(const BlockQuery &) const
bool
Equality comparison between BlockQuery 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, BlockQuery & aQuery)
Parse data from an PacketBuffer into a BlockQuery message format.

Public types

@72

 @72

Public attributes

mBlockCounter

uint8_t mBlockCounter

Counter of the block that we are asking for.

Public functions

BlockQuery

 BlockQuery(
  void
)

The no-arg constructor with defaults for the block query message.

init

WEAVE_ERROR init(
  uint8_t aCounter
)

Initialize a BlockQuery message.

Details
Parameters
[in] aCounter
Block counter value to query for
Returns
WEAVE_NO_ERROR if successful

operator==

bool operator==(
  const BlockQuery &
) const 

Equality comparison between BlockQuery messages.

Details
Parameters
[in] another
Another BlockQuery message to compare this one to
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
[out] aBuffer
An PacketBuffer to pack the BlockQuery message in
Return Values
WEAVE_NO_ERROR
If successful
WEAVE_ERROR_BUFFER_TOO_SMALL
If buffer is too small

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,
  BlockQuery & aQuery
)

Parse data from an PacketBuffer into a BlockQuery message format.

Details
Parameters
[in] aBuffer
Pointer to an PacketBuffer which has the data we want to parse out
[out] aQuery
Pointer to a BlockQuery object where we should store the results
Return Values
WEAVE_NO_ERROR
If successful
WEAVE_ERROR_BUFFER_TOO_SMALL
If buffer is too small