Lines Matching refs:memory

79     virtual void  Free(void* memory) = 0;
97 u8* memory = static_cast<u8*>(this->Alloc(size, alignment)); variable
99 if (memory != NULL)
101 std::fill_n(NW_CHECKED_ARRAY_ITERATOR(memory, size), size, data);
103 return memory;
123 u8* memory = static_cast<u8*>(this->Alloc(sizeof(TObject) * count, alignment)); variable
125 if (memory != NULL)
127 std::fill_n(memory, count, data);
130 return static_cast<TObject*>(memory);
224 u8* memory = static_cast<u8*>(allocator->Alloc(memorySize)); in AllocateAndFill() local
225 NW_NULL_ASSERT(memory); in AllocateAndFill()
227 std::fill_n(NW_CHECKED_ARRAY_ITERATOR(memory, memorySize), memorySize, value); in AllocateAndFill()
229 return reinterpret_cast<TObject*>(memory); in AllocateAndFill()
249 u8* memory = static_cast<u8*>(allocator->Alloc(size)); in AllocateAndFillN() local
250 NW_NULL_ASSERT(memory); in AllocateAndFillN()
252 std::fill_n(NW_CHECKED_ARRAY_ITERATOR(memory, size), size, value); in AllocateAndFillN()
254 return reinterpret_cast<TObject*>(memory); in AllocateAndFillN()
321 TMemory*& memory, IAllocator* allocator in SafeFree() argument
324 if (memory == NULL) in SafeFree()
328 allocator->Free(static_cast<void*>(memory)); in SafeFree()
329 memory = NULL; in SafeFree()
343 void operator()(TMemory& memory) const in operator()
345 SafeFree(memory, m_Allocator); in operator()
381 IsDeviceMemory(const void* memory) in IsDeviceMemory() argument
384 if (nn::os::GetDeviceMemoryAddress() <= (uint)memory && in IsDeviceMemory()
385 (uint)memory < nn::os::GetDeviceMemoryAddress() + nn::os::GetDeviceMemorySize()) in IsDeviceMemory()