24.02
|
Go to the documentation of this file.
22 void*
allocate(
size_t size,
size_t alignment = 0)
override
25 return ::operator
new(size_t(size));
28 void free(
void* ptr)
override
30 ::operator
delete(ptr);
41 return static_cast<char*
>(buffer) + offset;
Custom Allocator interface.
Default Memory Allocator class returned from IBackendInternal::GetDefaultAllocator(MemorySource)
void * GetMemoryRegionAtOffset(void *buffer, size_t offset, size_t alignment=0) override
Interface that may be implemented to allow retrieval of Memory Region from allocated buffer at a cert...
DefaultAllocator()=default
void * allocate(size_t size, size_t alignment=0) override
Interface to be implemented by the child class to allocate bytes.
void IgnoreUnused(Ts &&...)
MemorySource
Define the Memory Source to reduce copies.
armnn::MemorySource GetMemorySourceType() override
Used to specify what type of memory is being allocated by this allocator.
Copyright (c) 2021 ARM Limited and Contributors.
void free(void *ptr) override
Interface to be implemented by the child class to free the allocated bytes.