src/core/thread/network_data_tlvs.hpp
bool IsEqual(const uint8_t *aPrefix, uint8_t aPrefixLength) const
    {
        return (aPrefixLength == mPrefixLength) &&
               (Ip6::Prefix::MatchLength(GetPrefix(), aPrefix, Ip6::Prefix::SizeForLength(aPrefixLength)) >=
                mPrefixLength);
    }
/**
     * This method indicates whether the Prefix from TLV is equal to a given Prefix.
     *
     * @param[in]  aPrefix        A pointer to an IPv6 prefix to compare with.
     * @param[in]  aPrefixLength  The prefix length pointed to by @p aPrefix (in bits).
     *
     * @retval TRUE   The TLV's Prefix is equal to @p aPrefix.
     * @retval FALSE  The TLV's Prefix is not equal @p aPrefix.
     *
     */
This method indicates whether the Prefix from TLV is equal to a given Prefix.
@param[in]  aPrefix        A pointer to an IPv6 prefix to compare with.
@param[in]  aPrefixLength  The prefix length pointed to by @p aPrefix (in bits).

@retval TRUE   The TLV's Prefix is equal to @p aPrefix.
@retval FALSE  The TLV's Prefix is not equal @p aPrefix.
This method indicates whether the Prefix from TLV is equal to a given Prefix . @param [ in ] aPrefix A pointer to an IPv6 prefix to compare with . @param [ in ] aPrefixLength The prefix length pointed to by @p aPrefix ( in bits ) . @retval TRUE The TLV ' s Prefix is equal to @p aPrefix . @retval FALSE The TLV ' s Prefix is not equal @p aPrefix .
bool IsEqual(const uint8_t *aPrefix, uint8_t aPrefixLength) const
    {
        return (aPrefixLength == mPrefixLength) &&
               (Ip6::Prefix::MatchLength(GetPrefix(), aPrefix, Ip6::Prefix::SizeForLength(aPrefixLength)) >=
                mPrefixLength);
    }
bool IsEqual ( const uint8_t * aPrefix , uint8_t aPrefixLength ) const { return ( aPrefixLength == mPrefixLength ) && ( Ip6 :: Prefix :: MatchLength ( GetPrefix ( ) , aPrefix , Ip6 :: Prefix :: SizeForLength ( aPrefixLength ) ) >= mPrefixLength ) ; }
This method indicates whether the Prefix from TLV is equal to a given Prefix.
This method indicates whether the Prefix from TLV is equal to a given Prefix .