Home
last modified time | relevance | path

Searched refs:aPointer (Results 1 – 13 of 13) sorted by relevance

/openthread-latest/src/core/common/
Dptr_wrapper.hpp67 explicit Ptr(Type *aPointer) in Ptr() argument
68 : mPointer(aPointer) in Ptr()
134 bool operator==(const Type *aPointer) const { return (mPointer == aPointer); } in operator ==()
144 bool operator!=(const Type *aPointer) const { return (mPointer != aPointer); } in operator !=()
Downed_ptr.hpp70 explicit OwnedPtr(Type *aPointer) in OwnedPtr() argument
71 : Ptr<Type>(aPointer) in OwnedPtr()
116 void Reset(Type *aPointer = nullptr) in Reset() argument
118 if (mPointer != aPointer) in Reset()
121 mPointer = aPointer; in Reset()
Dretain_ptr.hpp74 explicit RetainPtr(Type *aPointer) in RetainPtr() argument
75 : Ptr<Type>(aPointer) in RetainPtr()
107 void Reset(Type *aPointer = nullptr) in Reset() argument
109 if (aPointer != mPointer) in Reset()
112 mPointer = aPointer; in Reset()
Dheap.cpp45 void Free(void *aPointer) { otPlatFree(aPointer); } in Free() argument
51 void Free(void *aPointer) { Instance::GetHeap().Free(aPointer); }
Dconst_cast.hpp61 …emplate <typename Type> const Type *AsConst(Type *aPointer) { return const_cast<const Type *>(aPoi… in AsConst() argument
83 …emplate <typename Type> Type *AsNonConst(const Type *aPointer) { return const_cast<Type *>(aPointe… in AsNonConst() argument
Ddebug.hpp118 #define AssertPointerIsNotNull(aPointer) OT_ASSERT((aPointer) != nullptr) argument
120 #define AssertPointerIsNotNull(aPointer) argument
Dheap.hpp62 void Free(void *aPointer);
/openthread-latest/src/core/api/
Dheap_api.cpp54 void otHeapFree(void *aPointer) in otHeapFree() argument
56 OT_UNUSED_VARIABLE(aPointer); in otHeapFree()
65 void otHeapFree(void *aPointer) { ot::Heap::Free(aPointer); } in otHeapFree() argument
/openthread-latest/tests/unit/
Dtest_smart_ptrs.cpp62 void VerifyPointer(const PointerType &aPointer, in VerifyPointer() argument
68 VerifyOrQuit(aPointer.IsNull()); in VerifyPointer()
69 VerifyOrQuit(aPointer.Get() == nullptr); in VerifyPointer()
70 VerifyOrQuit(aPointer == nullptr); in VerifyPointer()
74 VerifyOrQuit(!aPointer.IsNull()); in VerifyPointer()
75 VerifyOrQuit(aPointer.Get() == aObject); in VerifyPointer()
76 VerifyOrQuit(aPointer == aObject); in VerifyPointer()
77 VerifyOrQuit(aPointer != nullptr); in VerifyPointer()
79 VerifyOrQuit(!aPointer->WasFreed()); in VerifyPointer()
80 VerifyOrQuit(!(*aPointer).WasFreed()); in VerifyPointer()
[all …]
/openthread-latest/src/core/utils/
Dheap.hpp190 void Free(void *aPointer);
245 Block &BlockOf(void *aPointer) in BlockOf() argument
247 uint16_t offset = static_cast<uint16_t>(reinterpret_cast<uint8_t *>(aPointer) - mMemory.m8); in BlockOf()
Dheap.cpp146 void Heap::Free(void *aPointer) in Free() argument
148 if (aPointer == nullptr) in Free()
153 Block &block = BlockOf(aPointer); in Free()
/openthread-latest/src/include/common/
Dcode_utils.hpp70 #define OT_ALIGN(aPointer, aAlignment) \ argument
71 ((void *)(((uintptr_t)(aPointer) + (aAlignment)-1UL) & ~((uintptr_t)(aAlignment)-1UL)))
/openthread-latest/include/openthread/
Dheap.h65 void otHeapFree(void *aPointer);