nl:: Weave:: Profiles:: ReferencedString
#include <src/lib/profiles/common/WeaveMessage.h>
以下是 Weave 中處理字串的方式。
摘要
這個類別包含 8 位元和 16 位元變化版本。
繼承
沿用自: nl::Weave::Profiles::RetainedPacketBuffer
建構函式和解構函式 |
|
---|---|
ReferencedString(void)
參照字串的 no-arg 建構函式。
|
公開屬性 |
|
---|---|
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 )
參照字串的 no-arg 建構函式。
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 & )
詳細資料 | |||||
---|---|---|---|---|---|
參數 |
|
||||
傳回值 |
|