-
Notifications
You must be signed in to change notification settings - Fork 23
QuantumGate::Buffer::Buffer
Karel Donk edited this page Sep 28, 2018
·
2 revisions
Constructs a QuantumGate::Buffer
object.
Buffer() noexcept;
Buffer(VectorType&& buffer) noexcept;
Buffer(const Size size);
Buffer(const Byte* data, const Size data_size);
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 Byte s the data pointer points to. |
Some overloads may throw exceptions when memory allocation fails.