Home
last modified time | relevance | path

Searched refs:Heap (Results 1 – 25 of 31) sorted by relevance

12

/openthread-latest/src/core/common/
Dheap_string.cpp40 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()
Dheap_allocatable.hpp45 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()
Dheap_data.cpp40 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()
Dheap_array.hpp49 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()
Dheap.hpp43 namespace Heap { namespace
Dheap.cpp39 namespace Heap { namespace
Dheap_string.hpp44 namespace Heap { namespace
Dheap_data.hpp44 namespace Heap { namespace
/openthread-latest/src/core/net/
Dmdns.hpp834 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 …]
Dsrp_server.hpp183 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 …]
Dsrp_advertising_proxy.cpp931 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()
Dsrp_advertising_proxy.hpp218 …struct AdvInfo : public Heap::Allocatable<AdvInfo>, public LinkedListEntry<AdvInfo>, public GetPro…
/openthread-latest/tests/unit/
Dtest_heap_string.cpp42 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 …]
Dtest_heap_array.cpp87 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()
Dtest_heap.cpp50 ot::Utils::Heap heap; in TestAllocateSingle()
89 ot::Utils::Heap heap; in TestAllocateRandomly()
/openthread-latest/src/core/utils/
Dheap.cpp46 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()
Dheap.hpp66 friend class Heap;
165 class Heap : private NonCopyable class
171 Heap(void);
197 Heap &self = *AsNonConst(this); in IsClean()
/openthread-latest/tests/nexus/platform/
Dnexus_settings.hpp59 struct Entry : public Heap::Allocatable<Entry>, public LinkedListEntry<Entry>
61 struct Value : public Heap::Allocatable<Value>, public LinkedListEntry<Value>
66 Heap::Data mData;
Dnexus_node.hpp43 class Node : public Heap::Allocatable<Node>, public LinkedListEntry<Node>, private Instance
45 friend class Heap::Allocatable<Node>;
/openthread-latest/src/core/api/
Dheap_api.cpp63 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/
Dmbedtls.cpp61 mbedtls_platform_set_calloc_free(Heap::CAlloc, Heap::Free); in MbedTls()
/openthread-latest/src/core/instance/
Dinstance.cpp62 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()
Dinstance.hpp354 static Utils::Heap &GetHeap(void);
461 static Utils::Heap *sHeap;
/openthread-latest/src/core/meshcop/
Dborder_agent.hpp251 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/
Drouting_manager.hpp779 struct PeerBr : LinkedListEntry<PeerBr>, Heap::Allocatable<PeerBr>
875 public Heap::Allocatable<Entry<Type>>
1254 public Heap::Array<RioPrefix>
1602 Heap::Data mExtraRaOptions;

12