Buffer record for PoolMemoryResource
.
More...
Public Member Functions | |
BufferRecord () noexcept=default | |
Default constructor. | |
BufferRecord (BufferRecord &&other) noexcept | |
Move constructor. | |
BufferRecord (const BufferRecord &other)=delete | |
Copy construction is explicitly deleted. | |
BufferRecord (void *p, std::size_t n, std::size_t a) | |
Initializing constructor. | |
~BufferRecord ()=default | |
Destructor. | |
std::size_t | alignment () const noexcept |
Alignment of the underlying buffer in bytes. | |
void | allocate () noexcept |
Allocate this buffer record. | |
BufferRecord & | assign (void *p, std::size_t n, std::size_t a) noexcept |
Assignment function. | |
void * | data () const noexcept |
Access to underlying pointer. | |
void | deallocate () noexcept |
Deallocate this buffer record. | |
bool | is_allocated () const noexcept |
Whether for memory which is allocated currently. | |
BufferRecord & | operator= (BufferRecord &&other) noexcept |
Move assignment support. | |
BufferRecord & | operator= (const BufferRecord &other)=delete |
Copy assignment is explicitly deleted. | |
std::size_t | size () const noexcept |
Size of the underlying buffer in bytes. | |
ssize_t | ssize () const noexcept |
Signed size of the underlying buffer in bytes. | |
Buffer record for PoolMemoryResource
.