Crypto++ 8.8
Free C++ class library of cryptographic schemes
FixedSizeAlignedSecBlock< T, S, T_Align16 > Class Template Reference

Fixed size stack-based SecBlock with 16-byte alignment. More...

#include <secblock.h>

Inheritance diagram for FixedSizeAlignedSecBlock< T, S, T_Align16 >:

Additional Inherited Members

Public Types inherited from SecBlock< T, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > >
typedef FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true >::value_type value_type
typedef FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true >::pointer iterator
typedef FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true >::const_pointer const_iterator
typedef FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true >::size_type size_type
Public Member Functions inherited from FixedSizeSecBlock< T, S, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > >
 FixedSizeSecBlock ()
 Construct a FixedSizeSecBlock.
Public Member Functions inherited from SecBlock< T, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > >
 SecBlock (size_type size=0)
 Construct a SecBlock with space for size elements.
 operator const void * () const
 Cast operator.
 operator void * ()
 Cast operator.
 operator const T * () const
 Cast operator.
 operator T* ()
 Cast operator.
iterator begin ()
 Provides an iterator pointing to the first element in the memory block.
iterator end ()
 Provides an iterator pointing beyond the last element in the memory block.
FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true >::pointer data ()
 Provides a pointer to the first element in the memory block.
size_type size () const
 Provides the count of elements in the SecBlock.
bool empty () const
 Determines if the SecBlock is empty.
byteBytePtr ()
 Provides a byte pointer to the first element in the memory block.
size_type SizeInBytes () const
 Provides the number of bytes in the SecBlock.
void Assign (const T *ptr, size_type len)
 Set contents and size from an array.
void Append (const T *ptr, size_type len)
 Append contents from an array.
void SetMark (size_t count)
 Sets the number of elements to zeroize.
SecBlock< T, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > > & operator= (const SecBlock< T, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > > &t)
 Assign contents from another SecBlock.
SecBlock< T, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > > & operator+= (const SecBlock< T, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > > &t)
 Append contents from another SecBlock.
SecBlock< T, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > > operator+ (const SecBlock< T, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > > &t)
 Construct a SecBlock from this and another SecBlock.
bool operator== (const SecBlock< T, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > > &t) const
 Bitwise compare two SecBlocks.
bool operator!= (const SecBlock< T, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > > &t) const
 Bitwise compare two SecBlocks.
void New (size_type newSize)
 Change size without preserving contents.
void CleanNew (size_type newSize)
 Change size without preserving contents.
void Grow (size_type newSize)
 Change size and preserve contents.
void CleanGrow (size_type newSize)
 Change size and preserve contents.
void resize (size_type newSize)
 Change size and preserve contents.
void swap (SecBlock< T, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > > &b)
 Swap contents with another SecBlock.
Static Public Attributes inherited from SecBlock< T, FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, true > >
static const size_type ELEMS_MAX
 Returns the maximum number of elements the block can hold.

Detailed Description

template<class T, unsigned int S, bool T_Align16 = true>
class FixedSizeAlignedSecBlock< T, S, T_Align16 >

Fixed size stack-based SecBlock with 16-byte alignment.

Template Parameters
Tclass or type
Sfixed-size of the stack-based memory block, in elements
T_Align16boolean that determines whether allocations should be aligned on a 16-byte boundary

Definition at line 1258 of file secblock.h.


The documentation for this class was generated from the following file: