#include <memory_pool.hpp>
◆ memory_pool() [1/2]
nil::crypto3::memory_pool::memory_pool |
( |
uint8_t * |
pool, |
|
|
size_t |
pool_size, |
|
|
size_t |
page_size, |
|
|
size_t |
min_alloc, |
|
|
size_t |
max_alloc, |
|
|
uint8_t |
align_bit |
|
) |
| |
|
inline |
Initialize a memory pool. The memory is not owned by *this, it must be freed by the caller.
- Parameters
-
pool | the pool |
pool_size | size of pool |
page_size | some nominal page size (does not need to match the system page size) |
min_allocation | return null for allocs for smaller amounts |
max_allocation | return null for allocs of larger amounts |
align_bit | align all returned memory to (1<<align_bit) bytes |
◆ memory_pool() [2/2]
nil::crypto3::memory_pool::memory_pool |
( |
const memory_pool & |
| ) |
|
|
delete |
◆ allocate()
void* nil::crypto3::memory_pool::allocate |
( |
size_t |
req | ) |
|
|
inline |
◆ deallocate()
bool nil::crypto3::memory_pool::deallocate |
( |
void * |
p, |
|
|
std::size_t |
n |
|
) |
| |
|
inline |
◆ operator=()
The documentation for this class was generated from the following file: