ot::MeshCoP::Dataset::IsTlvValid() method
Validates the format and value of a given MeshCoP TLV used in Dataset. TLV types that can appear in an Active or Pending Operational Dataset are validated. Other TLV types including unknown TLV types are considered as valid.
Syntax
static bool IsTlvValid(const Tlv &aTlv); Return value
TRUE The TLV format and value is valid, or TLV type is unknown (not supported in Dataset). FALSE The TLV format or value is invalid.