Home
last modified time | relevance | path

Searched refs:kLength (Results 1 – 11 of 11) sorted by relevance

/openthread-latest/src/core/common/
Dbinary_search.hpp71 template <typename Key, typename Entry, uint16_t kLength>
72 static const Entry *Find(const Key &aKey, const Entry (&aTable)[kLength]) in Find() argument
75 Find(&aKey, &aTable[0], kLength, sizeof(aTable[0]), BinarySearch::Compare<Key, Entry>)); in Find()
98 …template <typename Entry, uint16_t kLength> static constexpr bool IsSorted(const Entry (&aTable)[k… in IsSorted() argument
100 return IsSorted(&aTable[0], kLength); in IsSorted()
Dstring.hpp550 template <uint16_t kLength>
551 …static const char *Lookup(uint16_t aKey, const Entry (&aTable)[kLength], const char *aNotFound = "… in Lookup() argument
/openthread-latest/src/cli/
Dcli_utils.hpp173 template <typename EnumType, uint16_t kLength>
175 const char *const (&aTable)[kLength], in Stringify() argument
178 …return (static_cast<uint16_t>(aEnum) < kLength) ? aTable[static_cast<uint16_t>(aEnum)] : aNotFound; in Stringify()
485 …template <typename Cli, uint16_t kLength> void OutputCommandTable(const CommandEntry<Cli> (&aComma… in OutputCommandTable() argument
/openthread-latest/src/core/utils/
Dparse_cmdline.hpp610 template <uint8_t kLength> inline otError ParseCmd(char *aCommandString, Arg (&aArgs)[kLength]) in ParseCmd() argument
612 return ParseCmd(aCommandString, aArgs, kLength); in ParseCmd()
Dslaac_address.cpp108 if (aAddress.PrefixMatch(slaacAddr.GetAddress()) >= Ip6::NetworkPrefix::kLength) in FindDomainIdFor()
121 …aConfig.mSlaac && !aConfig.mDp && (aConfig.GetPrefix().GetLength() == Ip6::NetworkPrefix::kLength); in IsSlaac()
/openthread-latest/src/core/net/
Dip6_address.hpp73 static constexpr uint8_t kLength = kSize * kBitsPerByte; ///< Length of Network Prefix in bits. member in ot::Ip6::NetworkPrefix
144 … void Set(const NetworkPrefix &aNetworkPrefix) { Set(aNetworkPrefix.m8, NetworkPrefix::kLength); } in Set()
843 SetMulticastNetworkPrefix(aNetworkPrefix.m8, NetworkPrefix::kLength); in SetMulticastNetworkPrefix()
Dip6_address.cpp83 return (mLength >= NetworkPrefix::kLength) && in ContainsPrefix()
84 (MatchLength(GetBytes(), aSubPrefix.m8, NetworkPrefix::kSize) >= NetworkPrefix::kLength); in ContainsPrefix()
305 if (aPrefix.GetLength() > NetworkPrefix::kLength) in ApplyPrefix()
308 aPrefix.GetLength() - NetworkPrefix::kLength); in ApplyPrefix()
Dnetif.cpp544 mPrefixLength = NetworkPrefix::kLength; in InitAsThreadOrigin()
/openthread-latest/tests/unit/
Dtest_heap_string.cpp200 template <uint16_t kLength> void VerifyData(const Heap::Data &aData, const uint8_t (&aArray)[kLengt… in VerifyData() argument
202 VerifyData(aData, &aArray[0], kLength); in VerifyData()
Dtest_network_data.cpp89 template <uint8_t kLength> void VerifyRlocsArray(const Rlocs &aRlocs, const uint16_t (&aExpectedRlo… in VerifyRlocsArray() argument
91 VerifyOrQuit(aRlocs.GetLength() == kLength); in VerifyRlocsArray()
102 for (uint16_t index = 0; index < kLength; index++) in VerifyRlocsArray()
/openthread-latest/src/core/thread/
Dnetwork_data_types.cpp67 VerifyOrExit(GetPrefix().GetLength() == Ip6::NetworkPrefix::kLength); in IsValid()