nl::Weave::TLV::Debug

這個命名空間包含用於偵錯與記錄 Weave TLV 的類型和介面。

摘要

Typedefs

DumpWriter)(const char *aFormat,...) typedef
void(*

函式

DecodeTagControl(const TLVTagControl aTagControl)
const char *
使用描述性字串解碼 TLV 標記控制項。
DecodeType(const TLVType aType)
const char *
使用描述性字串解碼 TLV 類型。
Dump(const TLVReader & aReader, DumpWriter aWriter)
透過指定的寫入者,以人類可讀的格式轉儲 TLV 資料。
DumpHandler(DumpWriter aWriter, const char *aIndent, const TLVReader & aReader, size_t aDepth)
void
使用 aWriteraReader 參照的 TLV 元素轉成人類可讀的格式。
DumpHandler(const TLVReader & aReader, size_t aDepth, void *aContext)
以使用者可理解的格式記錄指定讀取器內的 TLV 資料。
DumpIterator(DumpWriter aWriter, const TLVReader & aReader)
以人類可讀的格式,將 TLV 資料記錄給指定的寫入者。

結構

nl::Weave::TLV::Debug::DumpContext

Typedefs

DumpWriter

void(* DumpWriter)(const char *aFormat,...)

函式

DecodeTagControl

const char * DecodeTagControl(
  const TLVTagControl aTagControl
)

使用描述性字串解碼 TLV 標記控制項。

詳細說明
參數
[in] aTagControl
TLV 標記控制項負責解碼及傳回描述性字串。
傳回
用來描述指定標記控製成功的 NULL 結束字串的指標;否則為 NULL。

DecodeType

const char * DecodeType(
  const TLVType aType
)

使用描述性字串解碼 TLV 類型。

詳細說明
參數
[in] aType
要解碼及傳回描述性字串的 TLV 類型。
傳回
指向 NULL 結束字串的指標,用來說明在成功時指定類型;否則為 NULL。

傾印

WEAVE_ERROR Dump(
  const TLVReader & aReader,
  DumpWriter aWriter
)

透過指定的寫入者,以人類可讀的格式轉儲 TLV 資料。

詳細說明
參數
[in] aReader
TLV 讀取器的唯讀參考資料,包含要記錄的 TLV 資料。
[in] aWriter
傾印寫入者,用於記錄 TLV 讀取器的 TLV 資料。
傳回值
WEAVE_NO_ERROR
成功時。

DumpHandler

void DumpHandler(
  DumpWriter aWriter,
  const char *aIndent,
  const TLVReader & aReader,
  size_t aDepth
)

使用 aWriteraReader 參照的 TLV 元素轉成人類可讀的格式。

詳細說明
參數
[in] aWriter
記錄 TLV 資料的寫入者。
[in] aIndent
將目前深度記錄到 TLV 資料中的縮排。
[in] aReader
TLV 讀取器的唯讀參考資料,包含要記錄的 TLV 資料。
[in] aDepth
目前深入瞭解 TLV 資料。

DumpHandler

WEAVE_ERROR DumpHandler(
  const TLVReader & aReader,
  size_t aDepth,
  void *aContext
)

以使用者可理解的格式記錄指定讀取器內的 TLV 資料。

詳細說明
參數
[in] aReader
TLV 讀取器的唯讀參考資料,包含要記錄的 TLV 資料。
[in] aDepth
目前深入瞭解 TLV 資料。
[in,out] aContext
指向處理常式相關背景資訊的指標。
傳回值
WEAVE_NO_ERROR
成功時。
WEAVE_ERROR_INVALID_ARGUMENT
如果 aContext 為 NULL,或者 aContext->mWriter 為 NULL,則傳回此值。

DumpIterator

WEAVE_ERROR DumpIterator(
  DumpWriter aWriter,
  const TLVReader & aReader
)

以人類可讀的格式,將 TLV 資料記錄給指定的寫入者。

詳細說明
參數
[in] aWriter
記錄 TLV 資料的寫入者。
[in] aReader
TLV 讀取器的唯讀參考資料,包含要記錄的 TLV 資料。
傳回值
WEAVE_NO_ERROR
不受條件限制。