/openthread-latest/src/core/common/ |
D | heap_string.cpp | 40 namespace Heap { namespace 55 char *newBuffer = static_cast<char *>(Heap::CAlloc(sizeof(char), newSize)); in Set() 59 Heap::Free(mStringBuffer); in Set() 73 Heap::Free(mStringBuffer); in Set() 83 Heap::Free(mStringBuffer); in Free()
|
D | heap_allocatable.hpp | 45 namespace Heap { namespace 73 void *buf = Heap::CAlloc(1, sizeof(Type)); in Allocate() 91 void *buf = Heap::CAlloc(1, sizeof(Type)); in AllocateAndInit() 120 Heap::Free(this); in Free()
|
D | heap_data.cpp | 40 namespace Heap { namespace 102 Heap::Free(mData.GetBytes()); in Free() 112 Heap::Free(mData.GetBytes()); in UpdateBuffer() 120 uint8_t *newBuffer = static_cast<uint8_t *>(Heap::CAlloc(aNewLength, sizeof(uint8_t))); in UpdateBuffer()
|
D | heap_array.hpp | 49 namespace Heap { namespace 93 Heap::Free(mArray); in Free() 495 newArray = static_cast<Type *>(Heap::CAlloc(aCapacity, sizeof(Type))); in Allocate() 504 Heap::Free(mArray); in Allocate()
|
D | heap.hpp | 43 namespace Heap { namespace
|
D | heap.cpp | 39 namespace Heap { namespace
|
D | heap_string.hpp | 44 namespace Heap { namespace
|
D | heap_data.hpp | 44 namespace Heap { namespace
|
/openthread-latest/src/core/net/ |
D | mdns.hpp | 834 class AddressArray : public Heap::Array<Ip6::Address> 876 void UpdateProperty(Heap::String &aStringProperty, const char *aString); 877 void UpdateProperty(Heap::Data &aDataProperty, const uint8_t *aData, uint16_t aLength); 1019 Heap::Data mKeyData; 1026 …class HostEntry : public Entry, public LinkedListEntry<HostEntry>, public Heap::Allocatable<HostEn… 1040 bool Matches(const Heap::String &aName) const; 1075 Heap::String mName; 1083 …class ServiceEntry : public Entry, public LinkedListEntry<ServiceEntry>, public Heap::Allocatable<… 1119 …class SubType : public LinkedListEntry<SubType>, public Heap::Allocatable<SubType>, private ot::No… 1128 Heap::String mLabel; [all …]
|
D | srp_server.hpp | 183 private Heap::Allocatable<Service>, 189 friend class Heap::Allocatable<Service>; 398 Heap::String mInstanceName; 399 Heap::String mInstanceLabel; 400 Heap::String mServiceName; 401 Heap::Array<Heap::String> mSubTypes; 403 Heap::Data mTxtData; 433 private Heap::Allocatable<Host>, 438 friend class Heap::Allocatable<Host>; 573 Heap::String mFullName; [all …]
|
D | srp_advertising_proxy.cpp | 931 Heap::Array<Ip6::Address> hostAddresses; in RegisterHost() 991 Heap::Array<Heap::String> subTypeHeapStrings; in RegisterService() 992 Heap::Array<const char *> subTypeLabels; in RegisterService() 1002 for (const Heap::String &subTypeName : aService.mSubTypes) in RegisterService() 1005 Heap::String labelString; in RegisterService() 1009 IgnoreError(subTypeHeapStrings.PushBack(static_cast<Heap::String &&>(labelString))); in RegisterService()
|
D | srp_advertising_proxy.hpp | 218 …struct AdvInfo : public Heap::Allocatable<AdvInfo>, public LinkedListEntry<AdvInfo>, public GetPro…
|
/openthread-latest/tests/unit/ |
D | test_heap_string.cpp | 42 void PrintString(const char *aName, const Heap::String &aString) in PrintString() 54 void VerifyString(const char *aName, const Heap::String &aString, const char *aExpectedString) in VerifyString() 76 Heap::String GetName(void) in GetName() 78 Heap::String name; in GetName() 87 Heap::String str1; in TestHeapString() 88 Heap::String str2; in TestHeapString() 153 void PrintData(const Heap::Data &aData) { DumpBuffer("data", aData.GetBytes(), aData.GetLength()); } in PrintData() 158 Heap::Data GetData(void) in GetData() 160 Heap::Data data; in GetData() 167 void VerifyData(const Heap::Data &aData, const uint8_t *aBytes, uint16_t aLength) in VerifyData() [all …]
|
D | test_heap_array.cpp | 87 void VerifyEntry(const EntryType &aEntry, const Heap::Array<EntryType, 2> &aArray, int aExpectedVal… in VerifyEntry() 100 template <> void VerifyEntry(const uint16_t &aEntry, const Heap::Array<uint16_t, 2> &aArray, int aE… in VerifyEntry() 106 template <> void VerifyEntry(const Entry &aEntry, const Heap::Array<Entry, 2> &aArray, int aExpecte… in VerifyEntry() 115 template <typename EntryType, typename... Args> void VerifyArray(const Heap::Array<EntryType, 2> &a… in VerifyArray() 183 Heap::Array<uint16_t, 2> array; in TestHeapArrayOfUint16() 184 Heap::Array<uint16_t, 2> array2; in TestHeapArrayOfUint16() 329 array2.TakeFrom(static_cast<Heap::Array<uint16_t, 2> &&>(array)); in TestHeapArrayOfUint16() 349 Heap::Array<Entry, 2> array; in TestHeapArray() 350 Heap::Array<Entry, 2> array2; in TestHeapArray() 468 array2.TakeFrom(static_cast<Heap::Array<Entry, 2> &&>(array)); in TestHeapArray()
|
D | test_heap.cpp | 50 ot::Utils::Heap heap; in TestAllocateSingle() 89 ot::Utils::Heap heap; in TestAllocateRandomly()
|
/openthread-latest/src/core/utils/ |
D | heap.cpp | 46 Heap::Heap(void) in Heap() function in ot::Utils::Heap 63 void *Heap::CAlloc(size_t aCount, size_t aSize) in CAlloc() 121 void Heap::BlockInsert(Block &aPrev, Block &aBlock) in BlockInsert() 134 Block &Heap::BlockPrev(const Block &aBlock) in BlockPrev() 146 void Heap::Free(void *aPointer) in Free()
|
D | heap.hpp | 66 friend class Heap; 165 class Heap : private NonCopyable class 171 Heap(void); 197 Heap &self = *AsNonConst(this); in IsClean()
|
/openthread-latest/tests/nexus/platform/ |
D | nexus_settings.hpp | 59 struct Entry : public Heap::Allocatable<Entry>, public LinkedListEntry<Entry> 61 struct Value : public Heap::Allocatable<Value>, public LinkedListEntry<Value> 66 Heap::Data mData;
|
D | nexus_node.hpp | 43 class Node : public Heap::Allocatable<Node>, public LinkedListEntry<Node>, private Instance 45 friend class Heap::Allocatable<Node>;
|
/openthread-latest/src/core/api/ |
D | heap_api.cpp | 63 void *otHeapCAlloc(size_t aCount, size_t aSize) { return ot::Heap::CAlloc(aCount, aSize); } in otHeapCAlloc() 65 void otHeapFree(void *aPointer) { ot::Heap::Free(aPointer); } in otHeapFree()
|
/openthread-latest/src/core/crypto/ |
D | mbedtls.cpp | 61 mbedtls_platform_set_calloc_free(Heap::CAlloc, Heap::Free); in MbedTls()
|
/openthread-latest/src/core/instance/ |
D | instance.cpp | 62 OT_DEFINE_ALIGNED_VAR(sHeapRaw, sizeof(Utils::Heap), uint64_t); 63 Utils::Heap *Instance::sHeap{nullptr}; 293 Utils::Heap &Instance::GetHeap(void) in GetHeap() 297 sHeap = new (&sHeapRaw) Utils::Heap(); in GetHeap()
|
D | instance.hpp | 354 static Utils::Heap &GetHeap(void); 461 static Utils::Heap *sHeap;
|
/openthread-latest/src/core/meshcop/ |
D | border_agent.hpp | 251 class CoapDtlsSession : public Coap::SecureSession, public Heap::Allocatable<CoapDtlsSession> 253 friend Heap::Allocatable<CoapDtlsSession>; 269 class ForwardContext : public InstanceLocatorInit, public Heap::Allocatable<ForwardContext>
|
/openthread-latest/src/core/border_router/ |
D | routing_manager.hpp | 779 struct PeerBr : LinkedListEntry<PeerBr>, Heap::Allocatable<PeerBr> 875 public Heap::Allocatable<Entry<Type>> 1254 public Heap::Array<RioPrefix> 1602 Heap::Data mExtraRaOptions;
|