Lines Matching refs:memory

54     virtual void  Free(void* memory) = 0;
72 u8* memory = static_cast<u8*>(this->Alloc(size, alignment)); variable
74 if (memory != NULL)
76 std::fill_n(NW_CHECKED_ARRAY_ITERATOR(memory, size), size, data);
78 return memory;
92 u8* memory = static_cast<u8*>(this->Alloc(sizeof(TObject) * size, alignment)); variable
94 if (memory != NULL)
96 std::fill_n(memory, size, data);
99 return static_cast<TObject*>(memory);
184 u8* memory = static_cast<u8*>(allocator->Alloc(memorySize)); in AllocateAndFill() local
185 NW_NULL_ASSERT(memory); in AllocateAndFill()
187 std::fill_n(NW_CHECKED_ARRAY_ITERATOR(memory, memorySize), memorySize, value); in AllocateAndFill()
189 return reinterpret_cast<TObject*>(memory); in AllocateAndFill()
209 u8* memory = static_cast<u8*>(allocator->Alloc(size)); in AllocateAndFillN() local
210 NW_NULL_ASSERT(memory); in AllocateAndFillN()
212 std::fill_n(NW_CHECKED_ARRAY_ITERATOR(memory, size), size, value); in AllocateAndFillN()
214 return reinterpret_cast<TObject*>(memory); in AllocateAndFillN()
281 TMemory*& memory, IAllocator* allocator in SafeFree() argument
284 if (memory == NULL) in SafeFree()
288 allocator->Free(static_cast<void*>(memory)); in SafeFree()
289 memory = NULL; in SafeFree()
303 void operator()(TMemory& memory) const in operator()
305 SafeFree(memory, m_Allocator); in operator()
341 IsDeviceMemory(const void* memory) in IsDeviceMemory() argument
344 if (nn::os::GetDeviceMemoryAddress() <= (uint)memory && in IsDeviceMemory()
345 (uint)memory < nn::os::GetDeviceMemoryAddress() + nn::os::GetDeviceMemorySize()) in IsDeviceMemory()