Security Scol plugin
|
NULL allocator. More...
#include <secblock.h>
Public Member Functions | |
pointer | allocate (size_type n, const void *unused=NULLPTR) |
void | deallocate (void *p, size_type n) |
CRYPTOPP_CONSTEXPR size_type | max_size () const |
Public Member Functions inherited from AllocatorBase< T > | |
pointer | address (reference r) const |
const_pointer | address (const_reference r) const |
void | construct (pointer p, const T &val) |
void | destroy (pointer p) |
CRYPTOPP_CONSTEXPR size_type | max_size () const |
Returns the maximum number of elements the allocator can provide. | |
Additional Inherited Members | |
Public Types inherited from AllocatorBase< T > | |
typedef T | value_type |
typedef size_t | size_type |
typedef std::ptrdiff_t | difference_type |
typedef T * | pointer |
typedef const T * | const_pointer |
typedef T & | reference |
typedef const T & | const_reference |
Static Public Attributes inherited from AllocatorBase< T > | |
static const size_type | ELEMS_MAX = SIZE_MAX/sizeof(T) |
Returns the maximum number of elements the allocator can provide. | |
Static Protected Member Functions inherited from AllocatorBase< T > | |
static void | CheckSize (size_t size) |
Verifies the allocator can satisfy a request based on size. | |
NULL allocator.
T | class or type |
A NullAllocator is useful for fixed-size, stack based allocations (i.e., static arrays used by FixedSizeAllocatorWithCleanup).
A NullAllocator always returns 0 for max_size(), and always returns NULL for allocation requests. Though the allocator does not allocate at runtime, it does perform a secure wipe or zeroization during cleanup.
Definition at line 298 of file secblock.h.
|
inline |
Definition at line 307 of file secblock.h.
|
inline |
Definition at line 313 of file secblock.h.
|
inline |
Definition at line 319 of file secblock.h.