A move-only owned buffer of bytes. More...
#include <HeapBuffer.h>
Public Member Functions | |
HeapBuffer (HeapBuffer &&other) | |
HeapBuffer (const HeapBuffer &other)=delete | |
HeapBuffer & | operator= (const HeapBuffer &other)=delete |
HeapBuffer & | operator= (HeapBuffer &&other) |
bool | allocate (size_t numBytes) |
Allocates numBytes releasing previously allocated memory. More... | |
void | release () |
Releases any previously allocated memory. More... | |
Public Attributes | |
Span< char > | data |
A move-only owned buffer of bytes.
bool SC::HeapBuffer::allocate | ( | size_t | numBytes | ) |
Allocates numBytes releasing previously allocated memory.
void SC::HeapBuffer::release | ( | ) |
Releases any previously allocated memory.