class ReferencedString

Defined at line 186 of file gen/third_party/openweave-core/src/include/Weave/Profiles/common/WeaveMessage.h

Here's how to handle strings in Weave. This class has 8-bit

and 16-bit variants.

Public Members

uint16_t theLength
char * theString
bool isShort

Public Methods

void ReferencedString ()

constructor

WEAVE_ERROR init (uint16_t aLength, char * aString, System::PacketBuffer * aBuffer)

initializers

WEAVE_ERROR init (uint16_t aLength, char * aString)
WEAVE_ERROR init (uint8_t aLength, char * aString, System::PacketBuffer * aBuffer)
WEAVE_ERROR init (uint8_t aLength, char * aString)
WEAVE_ERROR pack (MessageIterator & )

pack and parse

WEAVE_ERROR parse (MessageIterator & , ReferencedString & )
bool operator== (const ReferencedString & )

comparison

char * printString ()

print string generation (for testing)