Botan 3.6.1
Crypto and TLS for C&
|
#include <locking_allocator.h>
Public Member Functions | |
void * | allocate (size_t num_elems, size_t elem_size) |
bool | deallocate (void *p, size_t num_elems, size_t elem_size) noexcept |
mlock_allocator () | |
mlock_allocator (const mlock_allocator &)=delete | |
mlock_allocator & | operator= (const mlock_allocator &)=delete |
~mlock_allocator () | |
Static Public Member Functions | |
static mlock_allocator & | instance () |
Definition at line 19 of file locking_allocator.h.
|
delete |
Botan::mlock_allocator::mlock_allocator | ( | ) |
Definition at line 45 of file locking_allocator.cpp.
References Botan::OS::allocate_locked_pages(), Botan::OS::get_memory_locking_limit(), and Botan::OS::system_page_size().
Botan::mlock_allocator::~mlock_allocator | ( | ) |
Definition at line 58 of file locking_allocator.cpp.
References Botan::OS::free_locked_pages().
void * Botan::mlock_allocator::allocate | ( | size_t | num_elems, |
size_t | elem_size ) |
Definition at line 16 of file locking_allocator.cpp.
References Botan::checked_mul().
|
noexcept |
Definition at line 29 of file locking_allocator.cpp.
References Botan::checked_mul().
|
static |
Definition at line 73 of file locking_allocator.cpp.
Referenced by Botan::allocate_memory(), Botan::deallocate_memory(), and Botan::initialize_allocator().
|
delete |