NL::编织::简介:: BDX_开发::块发送
#include <src/lib/profiles/bulk-data-transfer/Development/BDXMessages.h>
该BlockSend消息用于数据块从发送方传输到接收器。
概括
遗产
:从继承NL ::纺织品::简介:: RetainedPacketBuffer直接已知子类: NL ::纺织品::概况:: BDX_Development :: BlockEOF
构造函数和析构函数 | |
---|---|
BlockSend (void) 具有块发送消息默认值的无参数构造函数。 |
公共属性 | |
---|---|
mBlockCounter | uint8_t 计数器这个块正在发送的。 |
mData | uint8_t * 指向要接收或传输的数据的指针。 |
mLength | uint64_t 此块中包含的数据长度。 |
公共职能 | |
---|---|
init (uint8_t aCounter, uint64_t aLength, uint8_t *aData) | 初始化BlockSend消息。 |
operator== (const BlockSend &) const | bool 之间相等比较BlockSend消息。 |
packedLength (void) | uint16_t 返回此块发送消息的打包长度。 |
公共静态函数 | |
---|---|
parse (PacketBuffer *aBuffer, BlockSend & aResponse) | 从PacketBuffer解析数据成BlockSend消息格式。 |
公共属性
移动数据
uint8_t * mData
指向要接收或传输的数据的指针。
米长
uint64_t mLength
此块中包含的数据长度。
公共职能
块发送
BlockSend( void )
具有块发送消息默认值的无参数构造函数。
在里面
WEAVE_ERROR init( uint8_t aCounter, uint64_t aLength, uint8_t *aData )
初始化BlockSend消息。
细节 | |||||||
---|---|---|---|---|---|---|---|
参数 |
| ||||||
退货 | WEAVE_NO_ERROR如果成功 |
运算符==
bool operator==( const BlockSend & ) const
包装长度
uint16_t packedLength( void )
返回此块发送消息的打包长度。
细节 | |
---|---|
退货 | 打包时消息的长度 |
公共静态函数
解析
WEAVE_ERROR parse( PacketBuffer *aBuffer, BlockSend & aResponse )