Crypto++ 8.7
Free C++ class library of cryptographic schemes
|
Classes and functions for secure memory allocations. More...
Go to the source code of this file.
Macros | |
#define | CRYPTOPP_INHERIT_ALLOCATOR_TYPES(T_type) |
Functions | |
template<class T , class A > | |
A::pointer | StandardReallocate (A &alloc, T *oldPtr, typename A::size_type oldSize, typename A::size_type newSize, bool preserve) |
Reallocation function. More... | |
template<class T , bool A, class V , bool B> | |
bool | operator== (const ::AllocatorWithCleanup< T, A > &, const ::AllocatorWithCleanup< V, B > &) |
template<class T , bool A, class V , bool B> | |
bool | operator!= (const ::AllocatorWithCleanup< T, A > &, const ::AllocatorWithCleanup< V, B > &) |
template<class T , class A > | |
void | swap (::SecBlock< T, A > &a, ::SecBlock< T, A > &b) |
Swap two SecBlocks. More... | |
Classes and functions for secure memory allocations.
Definition in file secblock.h.
#define CRYPTOPP_INHERIT_ALLOCATOR_TYPES | ( | T_type | ) |
Definition at line 129 of file secblock.h.
A::pointer StandardReallocate | ( | A & | alloc, |
T * | oldPtr, | ||
typename A::size_type | oldSize, | ||
typename A::size_type | newSize, | ||
bool | preserve | ||
) |
Reallocation function.
T | the class or type |
A | the class or type's allocator |
alloc | the allocator |
oldPtr | the previous allocation |
oldSize | the size of the previous allocation |
newSize | the new, requested size |
preserve | flag that indicates if the old allocation should be preserved |
Definition at line 149 of file secblock.h.
|
inline |
Definition at line 1275 of file secblock.h.
|
inline |
Definition at line 1277 of file secblock.h.
|
inline |
Swap two SecBlocks.
T | class or type |
A | AllocatorBase derived class for allocation and cleanup |
Definition at line 1289 of file secblock.h.
Definition at line 149 of file secblock.h.
Definition at line 149 of file secblock.h.
Definition at line 149 of file secblock.h.
Definition at line 149 of file secblock.h.
AllocatorWithCleanup< word128, true > |
Definition at line 149 of file secblock.h.
AllocatorWithCleanup< word, true > |
Definition at line 149 of file secblock.h.