30 virtual void*
allocate(
size_t size,
size_t alignment) = 0;
33 virtual void free(
void* ptr) = 0;
52 "ICustomerAllocator::GetMemoryRegionAtOffset(): This function should be overridden in subclass.");
Custom Allocator interface.
virtual ~ICustomAllocator()=default
Default virtual destructor.
virtual void free(void *ptr)=0
Interface to be implemented by the child class to free the allocated bytes.
Copyright (c) 2021 ARM Limited and Contributors.
void IgnoreUnused(Ts &&...)
virtual void * GetMemoryRegionAtOffset(void *buffer, size_t offset, size_t alignment=0)
Interface that may be implemented to allow retrieval of Memory Region from allocated buffer at a cert...
virtual armnn::MemorySource GetMemorySourceType()=0
Used to specify what type of memory is being allocated by this allocator.
Base class for all ArmNN exceptions so that users can filter to just those.
MemorySource
Define the Memory Source to reduce copies.
virtual void * allocate(size_t size, size_t alignment)=0
Interface to be implemented by the child class to allocate bytes.