Intel HEXL
Intel Homomorphic Encryption Acceleration Library, accelerating the modular arithmetic operations used in homomorphic encryption.
|
Base class for custom memory allocator. More...
#include <allocator.hpp>
Public Member Functions | |
virtual | ~AllocatorBase () noexcept |
virtual void * | allocate (size_t bytes_count)=0 |
Allocates byte_count bytes of memory. More... | |
virtual void | deallocate (void *p, size_t n)=0 |
Deallocate memory. More... | |
Base class for custom memory allocator.
|
inlinevirtualnoexcept |
|
pure virtual |
Allocates byte_count bytes of memory.
[in] | bytes_count | Number of bytes to allocate |
Implemented in intel::hexl::AllocatorInterface< AllocatorImpl >, intel::hexl::AllocatorInterface< AllocatorAdapter< Adaptee, Args... > >, and intel::hexl::MallocStrategy.
|
pure virtual |
Deallocate memory.
[in] | p | Pointer to memory to deallocate |
[in] | n | Number of bytes to deallocate |
Implemented in intel::hexl::AllocatorInterface< AllocatorImpl >, intel::hexl::AllocatorInterface< AllocatorAdapter< Adaptee, Args... > >, and intel::hexl::MallocStrategy.