src/core/thread/network_data_tlvs.hpp
bool IsValid(void) const
    {
        uint8_t length = GetLength();

        return (length >= sizeof(mFlagsServiceId)) &&
               (length >= kMinLength + (IsThreadEnterprise() ? 0 : sizeof(uint32_t))) &&
               (static_cast<uint16_t>(length) + sizeof(NetworkDataTlv) >=
                CalculateSize(GetEnterpriseNumber(), GetServiceDataLength()));
    }
/**
     * This method indicates whether or not the TLV appears to be well-formed.
     *
     * @retval TRUE   If the TLV appears to be well-formed.
     * @retval FALSE  If the TLV does not appear to be well-formed.
     *
     */
This method indicates whether or not the TLV appears to be well-formed.
@retval TRUE   If the TLV appears to be well-formed.
@retval FALSE  If the TLV does not appear to be well-formed.
This method indicates whether or not the TLV appears to be well - formed . @retval TRUE If the TLV appears to be well - formed . @retval FALSE If the TLV does not appear to be well - formed .
bool IsValid(void) const
    {
        uint8_t length = GetLength();
        return (length >= sizeof(mFlagsServiceId)) &&
               (length >= kMinLength + (IsThreadEnterprise() ? 0 : sizeof(uint32_t))) &&
               (static_cast<uint16_t>(length) + sizeof(NetworkDataTlv) >=
                CalculateSize(GetEnterpriseNumber(), GetServiceDataLength()));
    }
bool IsValid ( void ) const { uint8_t length = GetLength ( ) ; return ( length >= sizeof ( mFlagsServiceId ) ) && ( length >= kMinLength + ( IsThreadEnterprise ( ) ? 0 : sizeof ( uint32_t ) ) ) && ( static_cast < uint16_t > ( length ) + sizeof ( NetworkDataTlv ) >= CalculateSize ( GetEnterpriseNumber ( ) , GetServiceDataLength ( ) ) ) ; }
This method indicates whether or not the TLV appears to be well-formed.
This method indicates whether or not the TLV appears to be well - formed .