Clear()
Clears the Dataset.
ValidateTlvs() const
Parses and validates all TLVs contained within the Dataset. Performs the following checks all TLVs in the Dataset: - Ensures correct TLV format and expected minimum length for known TLV types that may appear in a Dataset. - Validates TLV value when applicable (e.g., Channel TLV using a supported channel). - Ensures no duplicate occurrence of same TLV type.
IsTlvValid()
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.
ContainsTlv() const
Indicates whether or not a given TLV type is present in the Dataset.
Contains() const
ContainsAllTlvs() const
Indicates whether or not the Dataset contains all the TLVs from a given array.
ContainsAllRequiredTlvsFor() const
Indicates whether or not the Dataset contains all the required TLVs for an Active or Pending Dataset.
FindTlv()
Searches for a given TLV type in the Dataset.
FindTlv() const
Searches for a given TLV type in the Dataset.
Read() const
Read() const
WriteTlv()
Writes a TLV to the Dataset. If the specified TLV type already exists, it will be replaced. Otherwise, the TLV will be appended.
WriteTlv()
Writes a TLV to the Dataset. If the specified TLV type already exists, it will be replaced. Otherwise, the TLV will be appended.
Write()
Write()
WriteTlvsFrom()
Writes TLVs parsed from a given Dataset into this Dataset. TLVs from @p aDataset are parsed and written in the current Dataset. If the same TLV already exists, it will be replaced. Otherwise, the TLV will be appended.
WriteTlvsFrom()
Writes TLVs parsed from a given Dataset into this Dataset. TLVs from @p aDataset are parsed and written in the current Dataset. If the same TLV already exists, it will be replaced. Otherwise, the TLV will be appended.
WriteTlvsFrom()
Writes TLVs parsed from a given Dataset into this Dataset. TLVs from @p aDataset are parsed and written in the current Dataset. If the same TLV already exists, it will be replaced. Otherwise, the TLV will be appended.
AppendTlvsFrom()
Appends a given sequence of TLVs to the Dataset.
RemoveTlv()
Removes a TLV from the Dataset. If the Dataset does not contain the given TLV type, no action is performed.
ReadTimestamp() const
Reads the Timestamp TLV (Active or Pending).
WriteTimestamp()
Writes the Timestamp TLV (Active or Pending). If the TLV already exists, it will be replaced. Otherwise, the TLV will be appended.
RemoveTimestamp()
Removes the Timestamp TLV (Active or Pending) from the Dataset.
GetBytes()
Returns a pointer to the byte representation of the Dataset.
GetBytes() const
Returns a pointer to the byte representation of the Dataset.
ConvertTo() const
Converts the TLV representation to structure representation.
ConvertTo() const
Converts the TLV representation to structure representation.
GetLength() const
Returns the Dataset length in bytes.
SetLength()
Sets the Dataset size in bytes.
GetUpdateTime() const
Returns the local time the dataset was last updated.
SetFrom()
Sets this Dataset using an existing Dataset.
SetFrom()
Sets this Dataset using an existing Dataset.
SetFrom()
Sets this Dataset using an existing Dataset.
SetFrom()
Sets this Dataset using an existing Dataset.
SetFrom()
Sets this Dataset using an existing Dataset.
GetTlvsStart()
Returns a pointer to the start of Dataset TLVs sequence.
GetTlvsStart() const
Returns a pointer to the start of Dataset TLVs sequence.
GetTlvsEnd()
Returns a pointer to the past-the-end of Dataset TLVs sequence. Note that past-the-end points to the byte after the end of the last TLV in Dataset TLVs sequence.
GetTlvsEnd() const
Returns a pointer to the past-the-end of Dataset TLVs sequence. Note that past-the-end points to the byte after the end of the last TLV in Dataset TLVs sequence.
IsSubsetOf() const
Determines whether this Dataset is a subset of another Dataset. The Dataset is considered a subset if all of its TLVs, excluding Active/Pending Timestamp and Delay Timer TLVs, are present in the @p aOther Dataset and the TLV values match exactly.
TypeToString()
Converts a Dataset Type to a string.
RemoveTlv()
Removes a TLV from the Dataset. If the Dataset does not contain the given TLV type, no action is performed.
TimestampTlvFor()
Write