src/core/thread/network_data_tlvs.hpp
static uint16_t CalculateSize(uint32_t aEnterpriseNumber, uint8_t aServiceDataLength)
    {
        return sizeof(NetworkDataTlv) + kMinLength + aServiceDataLength +
               ((aEnterpriseNumber == kThreadEnterpriseNumber) ? 0 : sizeof(uint32_t) /* mEnterpriseNumber  */);
    }
/**
     * This static 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.
     *
     * @param[in]  aEnterpriseNumber   A Enterprise Number.
     * @param[in]  aServiceDataLength  A Service Data length.
     *
     * @returns    The size (number of bytes) of the Service TLV.
     *
     */
This static 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.

@param[in]  aEnterpriseNumber   A Enterprise Number.
@param[in]  aServiceDataLength  A Service Data length.

@returns    The size (number of bytes) of the Service TLV.
This static 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 . @param [ in ] aEnterpriseNumber A Enterprise Number . @param [ in ] aServiceDataLength A Service Data length . @returns The size ( number of bytes ) of the Service TLV .
static uint16_t CalculateSize(uint32_t aEnterpriseNumber, uint8_t aServiceDataLength)
    {
        return sizeof(NetworkDataTlv) + kMinLength + aServiceDataLength +
               ((aEnterpriseNumber == kThreadEnterpriseNumber) ? 0 : sizeof(uint32_t) );
    }
static uint16_t CalculateSize ( uint32_t aEnterpriseNumber , uint8_t aServiceDataLength ) { return sizeof ( NetworkDataTlv ) + kMinLength + aServiceDataLength + ( ( aEnterpriseNumber == kThreadEnterpriseNumber ) ? 0 : sizeof ( uint32_t ) ) ; }
This static method calculates the total size (number of bytes) of a Service TLV with a given Enterprise Number
 and Service Data length.
This static method calculates the total size ( number of bytes ) of a Service TLV with a given Enterprise Number and Service Data length .
/* mEnterpriseNumber  */