24.02.1
|
Go to the documentation of this file.
31 : _backing_allocator(backing_allocator)
38 return _backing_allocator.
alloc(_backing_allocator.
user_data, size);
61 if (user_data !=
nullptr)
AllocatorWrapper(const AclAllocator &backing_allocator) noexcept
Default Constructor.
void *(* alloc)(void *user_data, size_t size)
Allocate a block of size bytes of memory.
void(* aligned_free)(void *user_data, void *ptr)
Allocate a block of size bytes of memory.
void set_user_data(void *user_data)
Set user data to be used by the allocator.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
void *(* aligned_alloc)(void *user_data, size_t size, size_t alignment)
Allocate a block of size bytes of memory.
void aligned_free(void *ptr)
Free an aligned memory block.
void * aligned_alloc(size_t size, size_t alignment)
Allocate a chunk of memory of a given size in bytes, while honoring a given alignment requirement.
void(* free)(void *user_data, void *ptr)
Release a block of size bytes of memory.
Copyright (c) 2017-2024 Arm Limited.
void free(void *ptr)
Free an allocated memory block.
void * alloc(size_t size)
Allocate a chunk of memory of a given size in bytes.