ot::Tlv::GetLength() const method
Returns the Length value.
Syntax
uint8_t GetLength(void) const;
Return value
The Length value.
Notes
This method should be used when TLV is not an Extended TLV, otherwise the returned length from this method would not be correct. When TLV is an Extended TLV, the TLV should be down-casted to the `ExtendedTlv` type and the `ExtendedTlv::GetLength()` should be used instead.