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 

세부정보
매개변수
&aReferencedString
확인할 문자열입니다.
반환 값
true
문자열은 동일합니다.
false
문자열이 같지 않습니다.

WEAVE_ERROR pack(
  MessageIterator &
)

세부정보
매개변수
&i
패킹되는 메시지에 대한 이터레이터입니다.
반환
WEAVE_ERROR

printString

char * printString(
  void
)

세부정보
반환
출력 가능한 문자열

공개 정적 함수

parse

WEAVE_ERROR parse(
  MessageIterator &,
  ReferencedString &
)

세부정보
매개변수
&i
파싱되는 메시지의 이터레이터입니다.
&aString
파싱 결과를 저장할 위치입니다.
반환 값
WEAVE_NO_ERROR
문자열이 파싱되었습니다.
WEAVE_ERROR_INVALID_STRING_LENGTH
문자열이 버퍼에 비해 너무 깁니다 (발생하지 않아야 함).