nl:: Weave:: Profiles:: BDX_Development:: BlockSendV1
#include <src/lib/profiles/bulk-data-transfer/Development/BDXMessages.h>
BlockSendV1 消息用于将数据块从发送者传输到接收者。
摘要
它具有 4 字节的块计数器。
继承
继承自: nl::Weave::Profiles::RetainedPacketBuffer直接已知子类: nl::Weave::Profiles::BDX_Development::BlockEOFV1
构造函数和构造函数 |
|
---|---|
BlockSendV1(void)
具有块发送消息默认值的 no-arg 构造函数。
|
公共属性 |
|
---|---|
mBlockCounter
|
uint32_t
要发送的块的计数器。
|
mData
|
uint8_t *
指向要接收或传输的数据的指针。
|
mLength
|
uint64_t
此块中所含数据的长度。
|
公共函数 |
|
---|---|
init(uint32_t aCounter, uint64_t aLength, uint8_t *aData)
|
初始化 BlockSendV1 消息。
|
operator==(const BlockSendV1 &) const
|
bool
BlockSendV1 消息的等式比较。
|
packedLength(void)
|
uint16_t
返回此区块发送消息的打包长度。
|
公共静态函数 |
|
---|---|
parse(PacketBuffer *aBuffer, BlockSendV1 & aResponse)
|
将数据从 PacketBuffer 解析为 BlockSendV1 消息格式。
|
公共属性
移动数据网络
uint8_t * mData
指向要接收或传输的数据的指针。
米长度
uint64_t mLength
此块中所含数据的长度。
公共函数
块发送 V1
BlockSendV1( void )
具有块发送消息默认值的 no-arg 构造函数。
init
WEAVE_ERROR init( uint32_t aCounter, uint64_t aLength, uint8_t *aData )
初始化 BlockSendV1 消息。
详细信息 | |||||||
---|---|---|---|---|---|---|---|
参数 |
|
||||||
返回值 |
WEAVE_NO_ERROR(如果成功)
|
运算符==
bool operator==( const BlockSendV1 & ) const
包装长度
uint16_t packedLength( void )
返回此区块发送消息的打包长度。
详细信息 | |
---|---|
返回值 |
邮件在打包后的长度
|
公共静态函数
parse
WEAVE_ERROR parse( PacketBuffer *aBuffer, BlockSendV1 & aResponse )
将数据从 PacketBuffer 解析为 BlockSendV1 消息格式。
详细信息 | |||||
---|---|---|---|---|---|
参数 |
|
||||
返回值 |
|