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;
118 other.m_data =
nullptr;
150 m_data = std::move(other.m_data);
167 for (
unsigned i = 0; i <
m_size; ++i)
181 return !(*
this == other);
T & GetItem(size_t index)
Array(const Array &other)
Array & operator=(const Array &other)
T * GetUnderlyingData() const
Array & operator=(Array &&other)
Aws::UniqueArrayPtr< T > m_data
bool operator==(const Array &other) const
Array(const T *arrayToCopy, size_t arraySize)
bool operator!=(const Array &other) const
Array(size_t arraySize=0)
T & operator[](size_t index)
Array(Aws::Vector< Array * > &&toMerge)
T const & GetItem(size_t index) const
T const & operator[](size_t index) const
bool operator==(const CryptoBuffer &other) const
CryptoBuffer(const unsigned char *arrayToCopy, size_t arraySize)
CryptoBuffer(CryptoBuffer &&other)
CryptoBuffer(const ByteBuffer &other)
CryptoBuffer(const CryptoBuffer &other)
CryptoBuffer(Aws::Vector< ByteBuffer * > &&toMerge)
Array< CryptoBuffer > Slice(size_t sizeOfSlice) const
CryptoBuffer & operator=(const CryptoBuffer &)=default
CryptoBuffer & operator=(CryptoBuffer &&other)
bool operator!=(const CryptoBuffer &other) const
CryptoBuffer & operator^(const CryptoBuffer &operand)
CryptoBuffer(size_t arraySize=0)
Array< unsigned char > ByteBuffer
static const char * ARRAY_ALLOCATION_TAG
std::unique_ptr< T, ArrayDeleter< T > > UniqueArrayPtr
UniqueArrayPtr< T > MakeUniqueArray(std::size_t amount, const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector