AWS SDK for C++
1.8.153
AWS SDK for C++
|
Go to the documentation of this file.
49 Array(
const T* arrayToCopy,
size_t arraySize) :
53 if (arrayToCopy !=
nullptr &&
m_size > 0)
58 std::copy(arrayToCopy, arrayToCopy + arraySize, stdext::checked_array_iterator< T * >(
m_data.get(),
m_size));
60 std::copy(arrayToCopy, arrayToCopy + arraySize,
m_data.get());
71 for(
auto& array : toMerge)
73 totalSize += array->m_size;
80 for(
auto& arr : toMerge)
82 if(arr->m_size > 0 && arr->m_data)
84 size_t arraySize = arr->m_size;
86 std::copy(arr->m_data.get(), arr->m_data.get() + arraySize, stdext::checked_array_iterator< T * >(
m_data.get() + location,
m_size));
88 std::copy(arr->m_data.get(), arr->m_data.get() + arraySize,
m_data.get() + location);
90 location += arraySize;
105 std::copy(other.m_data.get(), other.m_data.get() + other.m_size, stdext::checked_array_iterator< T * >(
m_data.get(),
m_size));
107 std::copy(other.m_data.get(), other.m_data.get() + other.m_size,
m_data.get());
118 other.m_data =
nullptr;
138 std::copy(other.m_data.get(), other.m_data.get() + other.m_size, stdext::checked_array_iterator< T * >(
m_data.get(),
m_size));
140 std::copy(other.m_data.get(), other.m_data.get() + other.m_size,
m_data.get());
150 m_data = std::move(other.m_data);
160 if (
m_size == 0 && other.m_size == 0)
167 for (
unsigned i = 0; i <
m_size; ++i)
169 if (
m_data.get()[i] != other.m_data.get()[i])
181 return !(*
this == other);
CryptoBuffer(const CryptoBuffer &other)
bool operator==(const CryptoBuffer &other) const
CryptoBuffer(const unsigned char *arrayToCopy, size_t arraySize)
UniqueArrayPtr< T > MakeUniqueArray(std::size_t amount, const char *allocationTag, ArgTypes &&... args)
Array< CryptoBuffer > Slice(size_t sizeOfSlice) const
Array(Aws::Vector< Array * > &&toMerge)
CryptoBuffer(CryptoBuffer &&other)
CryptoBuffer(const ByteBuffer &other)
Array & operator=(const Array &other)
std::vector< T, Aws::Allocator< T > > Vector
CryptoBuffer & operator=(const CryptoBuffer &)=default
Array< unsigned char > ByteBuffer
CryptoBuffer & operator=(CryptoBuffer &&other)
Array(const T *arrayToCopy, size_t arraySize)
CryptoBuffer(size_t arraySize=0)
T * GetUnderlyingData() const
T & GetItem(size_t index)
Array(const Array &other)
T const & operator[](size_t index) const
T & operator[](size_t index)
std::unique_ptr< T, ArrayDeleter< T > > UniqueArrayPtr
T const & GetItem(size_t index) const
Array(size_t arraySize=0)
Array & operator=(Array &&other)
static const char * ARRAY_ALLOCATION_TAG
bool operator==(const Array &other) const
bool operator!=(const Array &other) const
bool operator!=(const CryptoBuffer &other) const
Aws::UniqueArrayPtr< T > m_data
CryptoBuffer(Aws::Vector< ByteBuffer * > &&toMerge)
CryptoBuffer & operator^(const CryptoBuffer &operand)