ot::Tlv::GetSize() const method
Returns the TLV's total size (number of bytes) including Type, Length, and Value fields. Correctly returns the TLV size independent of whether the TLV is an Extended TLV or not.
Syntax
uint32_t GetSize(void) const;
Return value
The total size include Type, Length, and Value fields.