Home
last modified time | relevance | path

Searched refs:GetFreeSize (Results 1 – 3 of 3) sorted by relevance

/openthread-latest/tests/unit/
Dtest_heap.cpp52 const size_t totalSize = heap.GetFreeSize(); in TestAllocateSingle()
56 …VerifyOrQuit(p == nullptr && totalSize == heap.GetFreeSize(), "TestAllocateSingle allocate 1 x 0 b… in TestAllocateSingle()
60 …VerifyOrQuit(p == nullptr && totalSize == heap.GetFreeSize(), "TestAllocateSingle allocate 0 x 1 b… in TestAllocateSingle()
68 …VerifyOrQuit(p != nullptr && !heap.IsClean() && heap.GetFreeSize() + size <= totalSize, "allocatin… in TestAllocateSingle()
71 VerifyOrQuit(heap.IsClean() && heap.GetFreeSize() == totalSize, "freeing failed!\n"); in TestAllocateSingle()
95 const size_t totalSize = heap.GetFreeSize(); in TestAllocateRandomly()
153 VerifyOrQuit(heap.IsClean() && heap.GetFreeSize() == totalSize, in TestAllocateRandomly()
/openthread-latest/src/core/utils/
Dheap.hpp211 size_t GetFreeSize(void) const { return mMemory.mFreeSize; } in GetFreeSize() function in ot::Utils::Heap
/openthread-latest/src/core/common/
Dmessage.cpp160 rval = static_cast<uint16_t>(Instance::GetHeap().GetFreeSize() / sizeof(Buffer)); in GetFreeBufferCount()