Searched refs:GetFreeSize (Results 1 – 3 of 3) sorted by relevance
52 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()
211 size_t GetFreeSize(void) const { return mMemory.mFreeSize; } in GetFreeSize() function in ot::Utils::Heap
160 rval = static_cast<uint16_t>(Instance::GetHeap().GetFreeSize() / sizeof(Buffer)); in GetFreeBufferCount()