Searched refs:aTable (Results 1 – 5 of 5) sorted by relevance
/openthread-latest/src/core/common/ |
D | binary_search.hpp | 73 static const Entry *Find(const Key &aKey, const Entry (&aTable)[kLength]) in Find() 76 Find(&aKey, &aTable[0], kLength, sizeof(aTable[0]), BinarySearch::Compare<Key, Entry>)); in Find() 100 …template <typename Entry, uint16_t kLength> static constexpr bool IsSorted(const Entry (&aTable)[k… in IsSorted() 102 return IsSorted(&aTable[0], kLength); in IsSorted() 108 template <typename Entry> static constexpr bool IsSorted(const Entry *aTable, uint16_t aLength) in IsSorted() argument 110 …return (aLength <= 1) ? true : Entry::AreInOrder(aTable[0], aTable[1]) && IsSorted(aTable + 1, aLe… in IsSorted() 119 const void *aTable,
|
D | binary_search.cpp | 41 const void *aTable, in Find() argument 64 entry = reinterpret_cast<const uint8_t *>(aTable) + aEntrySize * middle; in Find()
|
D | string.hpp | 597 …static const char *Lookup(uint16_t aKey, const Entry (&aTable)[kLength], const char *aNotFound = "… in Lookup() 599 const Entry *entry = BinarySearch::Find(aKey, aTable); in Lookup()
|
/openthread-latest/tests/unit/ |
D | test_child_table.cpp | 117 void VerifyChildTableContent(ChildTable &aTable, uint16_t aChildListLength, const TestChild *aChild… in VerifyChildTableContent() argument 135 child = aTable.FindChild(aChildList[listIndex].mRloc16, filter); in VerifyChildTableContent() 139 …child = aTable.FindChild(static_cast<const Mac::ExtAddress &>(aChildList[listIndex].mExtAddress), … in VerifyChildTableContent() 144 child = aTable.FindChild(address, filter); in VerifyChildTableContent() 149 child = aTable.FindChild(address, filter); in VerifyChildTableContent() 176 childIndex = aTable.GetChildIndex(*child); in VerifyChildTableContent() 177 … VerifyOrQuit(childIndex < aTable.GetMaxChildrenAllowed(), "Child Index is out of bound"); in VerifyChildTableContent() 178 … VerifyOrQuit(aTable.GetChildAtIndex(childIndex) == child, "GetChildAtIndex() failed"); in VerifyChildTableContent() 204 VerifyOrQuit(aTable.GetNumChildren(filter) == numChildren); in VerifyChildTableContent() 205 VerifyOrQuit(aTable.HasChildren(filter) == (numChildren != 0)); in VerifyChildTableContent() [all …]
|
/openthread-latest/src/cli/ |
D | cli_utils.hpp | 184 const char *const (&aTable)[kLength], in Stringify() 187 …return (static_cast<uint16_t>(aEnum) < kLength) ? aTable[static_cast<uint16_t>(aEnum)] : aNotFound; in Stringify()
|