nl:: Weave:: Profiles:: ReferencedString
#include <src/lib/profiles/common/WeaveMessage.h>
以下是在 Weave 中处理字符串的方法。
摘要
此类具有 8 位和 16 位变体。
继承
沿用自: nl::Weave::Profiles::RetainedPacketBuffer
构造函数和析构函数 |
|
---|---|
ReferencedString(void)
所引用字符串的无参数构造函数。
|
公共属性 |
|
---|---|
isShort
|
bool
|
theLength
|
uint16_t
|
theString
|
char *
|
公共函数 |
|
---|---|
init(uint16_t aLength, char *aString, System::PacketBuffer *aBuffer)
|
|
init(uint16_t aLength, char *aString)
|
|
init(uint8_t aLength, char *aString, System::PacketBuffer *aBuffer)
|
|
init(uint8_t aLength, char *aString)
|
|
operator==(const ReferencedString &) const
|
bool
|
pack(MessageIterator &)
|
|
printString(void)
|
char *
|
公共静态函数 |
|
---|---|
parse(MessageIterator &, ReferencedString &)
|
公共属性
isShort
bool isShort
theLength
uint16_t theLength
theString
char * theString
公共函数
ReferencedString
ReferencedString( void )
所引用字符串的无参数构造函数。
init
WEAVE_ERROR init( uint16_t aLength, char *aString, System::PacketBuffer *aBuffer )
init
WEAVE_ERROR init( uint16_t aLength, char *aString )
init
WEAVE_ERROR init( uint8_t aLength, char *aString, System::PacketBuffer *aBuffer )
init
WEAVE_ERROR init( uint8_t aLength, char *aString )
运算符==
bool operator==( const ReferencedString & ) const
详细信息 | |||||
---|---|---|---|---|---|
参数 |
|
||||
返回值 |
|
printString
char * printString( void )
详细信息 | |
---|---|
返回值 |
可打印的字符串
|
公共静态函数
parse
WEAVE_ERROR parse( MessageIterator &, ReferencedString & )
详细信息 | |||||
---|---|---|---|---|---|
参数 |
|
||||
返回值 |
|