Searched refs:mMemory (Results 1 – 2 of 2) sorted by relevance
123 void *GetPointer(void) { return &mMemory; } in GetPointer()159 uint8_t mMemory[sizeof(uint16_t)]; member in ot::Utils::Block227 size_t GetFreeSize(void) const { return mMemory.mFreeSize; } in GetFreeSize()253 … Block &BlockAt(uint16_t aOffset) { return *reinterpret_cast<Block *>(&mMemory.m16[aOffset / 2]); } in BlockAt()265 uint16_t offset = static_cast<uint16_t>(reinterpret_cast<uint8_t *>(aPointer) - mMemory.m8); in BlockOf()324 return static_cast<uint16_t>(reinterpret_cast<const uint8_t *>(&aBlock) - mMemory.m8); in BlockOffset()345 } mMemory; member in ot::Utils::Heap
61 mMemory.mFreeSize = kFirstBlockSize; in Heap()108 mMemory.mFreeSize -= sizeof(Block); in CAlloc()111 mMemory.mFreeSize -= curr->GetSize(); in CAlloc()157 mMemory.mFreeSize += block.GetSize(); in Free()164 mMemory.mFreeSize += sizeof(Block); in Free()177 mMemory.mFreeSize += sizeof(Block); in Free()211 mMemory.mFreeSize += sizeof(Block); in Free()