Searched refs:kLength (Results 1 – 11 of 11) sorted by relevance
| /openthread-latest/src/core/common/ |
| D | binary_search.hpp | 71 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()
|
| D | string.hpp | 550 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/ |
| D | cli_utils.hpp | 173 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/ |
| D | parse_cmdline.hpp | 610 template <uint8_t kLength> inline otError ParseCmd(char *aCommandString, Arg (&aArgs)[kLength]) in ParseCmd() argument 612 return ParseCmd(aCommandString, aArgs, kLength); in ParseCmd()
|
| D | slaac_address.cpp | 108 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/ |
| D | ip6_address.hpp | 73 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()
|
| D | ip6_address.cpp | 83 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()
|
| D | netif.cpp | 544 mPrefixLength = NetworkPrefix::kLength; in InitAsThreadOrigin()
|
| /openthread-latest/tests/unit/ |
| D | test_heap_string.cpp | 200 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()
|
| D | test_network_data.cpp | 89 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/ |
| D | network_data_types.cpp | 67 VerifyOrExit(GetPrefix().GetLength() == Ip6::NetworkPrefix::kLength); in IsValid()
|