Home
last modified time | relevance | path

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

12

/openthread-3.7.0/src/core/net/
Dmdns.hpp865 class AddressArray : public Heap::Array<Ip6::Address>
906 void UpdateProperty(Heap::String &aStringProperty, const char *aString);
907 void UpdateProperty(Heap::Data &aDataProperty, const uint8_t *aData, uint16_t aLength);
1038 Heap::Data mKeyData;
1045 …class HostEntry : public Entry, public LinkedListEntry<HostEntry>, public Heap::Allocatable<HostEn…
1059 bool Matches(const Heap::String &aName) const;
1093 Heap::String mName;
1101 …class ServiceEntry : public Entry, public LinkedListEntry<ServiceEntry>, public Heap::Allocatable<…
1136 …class SubType : public LinkedListEntry<SubType>, public Heap::Allocatable<SubType>, private ot::No…
1145 Heap::String mLabel;
[all …]
Dsrp_server.hpp189 private Heap::Allocatable<Service>,
195 friend class Heap::Allocatable<Service>;
426 Heap::String mInstanceName;
427 Heap::String mInstanceLabel;
428 Heap::String mServiceName;
429 Heap::Array<Heap::String> mSubTypes;
431 Heap::Data mTxtData;
462 private Heap::Allocatable<Host>,
467 friend class Heap::Allocatable<Host>;
615 Heap::String mFullName;
[all …]
Dsrp_advertising_proxy.cpp937 Heap::Array<Ip6::Address> hostAddresses; in RegisterHost()
997 Heap::Array<Heap::String> subTypeHeapStrings; in RegisterService()
998 Heap::Array<const char *> subTypeLabels; in RegisterService()
1008 for (const Heap::String &subTypeName : aService.mSubTypes) in RegisterService()
1011 Heap::String labelString; in RegisterService()
1015 IgnoreError(subTypeHeapStrings.PushBack(static_cast<Heap::String &&>(labelString))); in RegisterService()
Dsrp_advertising_proxy.hpp232 …struct AdvInfo : public Heap::Allocatable<AdvInfo>, public LinkedListEntry<AdvInfo>, public GetPro…
Dnd6.hpp861 Heap::Array<uint8_t, kCapacityIncrement> mArray;
Dsrp_server.cpp1071 Heap::String *newSubTypeLabel = service->mSubTypes.PushBack(); in ProcessServiceDiscoveryInstructions()
1422 for (const Heap::String &subType : service.mSubTypes) in InformUpdateHandlerOrCommit()
1844 const Heap::String *subType = mSubTypes.At(aIndex); in GetSubTypeServiceNameAt()
1924 for (const Heap::String &subType : mSubTypes) in HasSubTypeServiceName()
1966 for (const Heap::String &subType : mSubTypes) in Log()
/openthread-3.7.0/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
75 void *buf = Heap::CAlloc(1, sizeof(Type)); in Allocate()
94 void *buf = Heap::CAlloc(1, sizeof(Type)); in AllocateAndInit()
124 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
97 Heap::Free(mArray); in Free()
524 newArray = static_cast<Type *>(Heap::CAlloc(aCapacity, sizeof(Type))); in Allocate()
533 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-3.7.0/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.cpp51 ot::Utils::Heap heap; in TestAllocateSingle()
91 ot::Utils::Heap heap; in TestAllocateRandomly()
/openthread-3.7.0/src/core/utils/
Dheap.cpp47 Heap::Heap(void) in Heap() function in ot::Utils::Heap
64 void *Heap::CAlloc(size_t aCount, size_t aSize) in CAlloc()
122 void Heap::BlockInsert(Block &aPrev, Block &aBlock) in BlockInsert()
135 Block &Heap::BlockPrev(const Block &aBlock) in BlockPrev()
147 void Heap::Free(void *aPointer) in Free()
Dheap.hpp68 friend class Heap;
176 class Heap : private NonCopyable class
183 Heap(void);
212 Heap &self = *AsNonConst(this); in IsClean()
/openthread-3.7.0/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-3.7.0/src/core/crypto/
Dmbedtls.cpp61 mbedtls_platform_set_calloc_free(Heap::CAlloc, Heap::Free); in MbedTls()
/openthread-3.7.0/src/core/instance/
Dinstance.cpp63 OT_DEFINE_ALIGNED_VAR(sHeapRaw, sizeof(Utils::Heap), uint64_t);
64 Utils::Heap *Instance::sHeap{nullptr};
284 Utils::Heap &Instance::GetHeap(void) in GetHeap()
288 sHeap = new (&sHeapRaw) Utils::Heap(); in GetHeap()
Dinstance.hpp358 static Utils::Heap &GetHeap(void);
458 static Utils::Heap *sHeap;
/openthread-3.7.0/src/core/meshcop/
Dborder_agent.hpp259 class ForwardContext : public InstanceLocatorInit, public Heap::Allocatable<ForwardContext>
/openthread-3.7.0/src/core/border_router/
Drouting_manager.hpp797 public Heap::Allocatable<Entry<Type>>
1128 public Heap::Array<RioPrefix>
1462 Heap::Data mExtraRaOptions;

12