ot::NetworkData::ServiceTlv::CalculateSize() method
Calculates the total size (number of bytes) of a Service TLV with a given Enterprise Number and Service Data length. Note that the returned size does include the Type and Length fields in the TLV, but does not account for any sub-TLVs of the Service TLV.
Arguments
aEnterpriseNumber
A Enterprise Number.
aServiceDataLength
A Service Data length.
Return value
The size (number of bytes) of the Service TLV.
ot::NetworkData::ServiceTlv::CalculateSize() is called by 3 functions:
![]()
ot::NetworkData::ServiceTlv::CalculateSize()
ot::NetworkData::ServiceTlv::CalculateSize() reads 2 variables:
![]()
ot::NetworkData::ServiceTlv::CalculateSize()