24.08
|
Default Memory Allocator class returned from IBackendInternal::GetDefaultAllocator(MemorySource) More...
#include <DefaultAllocator.hpp>
Public Member Functions | |
DefaultAllocator ()=default | |
void * | allocate (size_t size, size_t alignment=0) override |
Interface to be implemented by the child class to allocate bytes. More... | |
void | free (void *ptr) override |
Interface to be implemented by the child class to free the allocated bytes. More... | |
armnn::MemorySource | GetMemorySourceType () override |
Used to specify what type of memory is being allocated by this allocator. More... | |
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 certain offset. More... | |
Public Member Functions inherited from ICustomAllocator | |
virtual | ~ICustomAllocator ()=default |
Default virtual destructor. More... | |
Default Memory Allocator class returned from IBackendInternal::GetDefaultAllocator(MemorySource)
Definition at line 17 of file DefaultAllocator.hpp.
|
default |
|
inlineoverridevirtual |
Interface to be implemented by the child class to allocate bytes.
[in] | size | Size to allocate |
[in] | alignment | Alignment that the returned pointer should comply with |
Implements ICustomAllocator.
Definition at line 22 of file DefaultAllocator.hpp.
References armnn::IgnoreUnused().
|
inlineoverridevirtual |
Interface to be implemented by the child class to free the allocated bytes.
Implements ICustomAllocator.
Definition at line 28 of file DefaultAllocator.hpp.
|
inlineoverridevirtual |
Interface that may be implemented to allow retrieval of Memory Region from allocated buffer at a certain offset.
Reimplemented from ICustomAllocator.
Definition at line 38 of file DefaultAllocator.hpp.
References armnn::IgnoreUnused().
|
inlineoverridevirtual |
Used to specify what type of memory is being allocated by this allocator.
Supported types are: MemorySource::Malloc MemorySource::DmaBuf MemorySource::DmaBufProtected
Implements ICustomAllocator.
Definition at line 33 of file DefaultAllocator.hpp.
References armnn::Malloc.