class ReferencedTLVData
Defined at line 212 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/common/WeaveMessage.h
Similarly, we need to be able to represent a big old blob
of TLV data.
Public Members
uint16_t theLength
uint16_t theMaxLength
uint8_t * theData
Public Methods
void ReferencedTLVData ()
constructor
WEAVE_ERROR init (System::PacketBuffer * aBuffer)
initializers
WEAVE_ERROR init (MessageIterator & i)
WEAVE_ERROR init (uint16_t aLength, uint16_t aMaxLength, uint8_t * aByteString)
WEAVE_ERROR init (TLVWriteCallback aWriteCallback, void * anAppState)
void free ()
ReferencedTLVData needs to override the free() and isFree()
methods because "freedom", in this case, is more than nothing
left to lose.
bool isEmpty ()
Check if a ReferencedTLVData object has anything in it.
There are two possible ways such an object could "have"
something. Either it could have 0 length OR it could have no
write callback.
Returns
true if the data set has 0 length or there's no write
callback in hand, false otherwise.
Defined at line 267 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/common/WeaveMessage.h
bool isFree ()
WEAVE_ERROR pack (System::PacketBuffer * buff)
Pack a ReferencedTLVData object directly into a PacketBuffer
Parameters
Returns
a WEAVE_ERROR reflecting the success of the underlying
pack call.
Defined at line 285 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/common/WeaveMessage.h
WEAVE_ERROR pack (MessageIterator & i, uint32_t maxLen)
uint16_t packedLength ()
Return the data length assuming that the object has been packed
into a buffer.
Returns
the integer length of the packed data.
Defined at line 301 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/common/WeaveMessage.h
WEAVE_ERROR parse (System::PacketBuffer * buff, ReferencedTLVData & aTarget)
Parse a ReferencedTLVData object from a supplied PacketBuffer
Parse a ReferencedTLVData object out of an inet buffer
(assuming it just contains TLV).
Parameters
Returns
a WEAVE_ERROR reflecting the success of the underlying
parse call.
Defined at line 322 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/common/WeaveMessage.h
WEAVE_ERROR parse (MessageIterator & i, ReferencedTLVData & aTarget)
bool operator== (const ReferencedTLVData & )
comparison