Lines Matching refs:memory

77     virtual void  Free(void* memory) = 0;
95 u8* memory = static_cast<u8*>(this->Alloc(size, alignment)); variable
97 if (memory != NULL)
99 std::fill_n(NW_CHECKED_ARRAY_ITERATOR(memory, size), size, data);
101 return memory;
121 u8* memory = static_cast<u8*>(this->Alloc(sizeof(TObject) * count, alignment)); variable
123 if (memory != NULL)
125 std::fill_n(memory, count, data);
128 return static_cast<TObject*>(memory);
222 u8* memory = static_cast<u8*>(allocator->Alloc(memorySize)); in AllocateAndFill() local
223 NW_NULL_ASSERT(memory); in AllocateAndFill()
225 std::fill_n(NW_CHECKED_ARRAY_ITERATOR(memory, memorySize), memorySize, value); in AllocateAndFill()
227 return reinterpret_cast<TObject*>(memory); in AllocateAndFill()
247 u8* memory = static_cast<u8*>(allocator->Alloc(size)); in AllocateAndFillN() local
248 NW_NULL_ASSERT(memory); in AllocateAndFillN()
250 std::fill_n(NW_CHECKED_ARRAY_ITERATOR(memory, size), size, value); in AllocateAndFillN()
252 return reinterpret_cast<TObject*>(memory); in AllocateAndFillN()
319 TMemory*& memory, IAllocator* allocator in SafeFree() argument
322 if (memory == NULL) in SafeFree()
326 allocator->Free(static_cast<void*>(memory)); in SafeFree()
327 memory = NULL; in SafeFree()
341 void operator()(TMemory& memory) const in operator()
343 SafeFree(memory, m_Allocator); in operator()
379 IsDeviceMemory(const void* memory) in IsDeviceMemory() argument
382 if (nn::os::GetDeviceMemoryAddress() <= (uint)memory && in IsDeviceMemory()
383 (uint)memory < nn::os::GetDeviceMemoryAddress() + nn::os::GetDeviceMemorySize()) in IsDeviceMemory()