65 swap(
buffer, fromBuffer.buffer);
84 if (fromBuffer.
buffer !=
nullptr) {
85 this->
buffer =
new vector<uint8_t>(0);
98 ownsBuffer = exchange(fromBuffer.ownsBuffer,
false);
99 buffer = exchange(fromBuffer.buffer,
nullptr);
100 position = exchange(fromBuffer.position, 0ll);
112 if (fromBuffer.
buffer !=
nullptr) {
113 this->
buffer =
new vector<uint8_t>(0);
vector< uint8_t > * buffer
ByteBuffer(int64_t capacity)
Public constructor.
ByteBuffer & operator=(ByteBuffer &&fromBuffer)
Move operator.
ByteBuffer(ByteBuffer &&fromBuffer)
Move constructor.
ShortBuffer asShortBuffer()
ByteBuffer(const ByteBuffer &fromBuffer)
Assign constructor.
ByteBuffer(const vector< uint8_t > &data)
Public constructor.
ByteBuffer()
Public constructor.
static ByteBuffer * allocate(int64_t capacity)
Allocate byte buffer.
void operator=(const ByteBuffer &fromBuffer)
Assign operator.
FloatBuffer asFloatBuffer()