Skip to content

QuantumGate::Buffer::Buffer

Karel Donk edited this page Sep 28, 2018 · 2 revisions

Constructs a QuantumGate::Buffer object.

Signature

Buffer() noexcept;
Buffer(VectorType&& buffer) noexcept;
Buffer(const Size size);
Buffer(const Byte* data, const Size data_size);

Parameters

Name Description
buffer The Buffer::VectorType object to move the contents from.
size The size in bytes of memory to allocate for the buffer.
data A pointer to the bytes to copy from.
data_size The number of Bytes the data pointer points to.

Exceptions

Some overloads may throw exceptions when memory allocation fails.

Clone this wiki locally