Google is committed to advancing racial equity for Black communities. See how.

nl::Weave::Profiles::DeviceDescription::TextDescriptorWriter

Summary

Constructors and Destructors

TextDescriptorWriter(char *buf, uint32_t bufSize)

Public functions

Finalize()
GetLengthWritten()
uint32_t
WriteDate(char fieldId, uint16_t year, uint8_t month, uint8_t day)
WriteHex(char fieldId, uint16_t val)
WriteHex(char fieldId, const uint8_t *val, uint32_t valLen)
WriteString(char fieldId, const char *val)
WriteVersion()

Public functions

Finalize

WEAVE_ERROR Finalize()

GetLengthWritten

uint32_t GetLengthWritten()

TextDescriptorWriter

 TextDescriptorWriter(
  char *buf,
  uint32_t bufSize
)

WriteDate

WEAVE_ERROR WriteDate(
  char fieldId,
  uint16_t year,
  uint8_t month,
  uint8_t day
)

WriteHex

WEAVE_ERROR WriteHex(
  char fieldId,
  uint16_t val
)

WriteHex

WEAVE_ERROR WriteHex(
  char fieldId,
  const uint8_t *val,
  uint32_t valLen
)

WriteString

WEAVE_ERROR WriteString(
  char fieldId,
  const char *val
)

WriteVersion

WEAVE_ERROR WriteVersion()