#include <buffer_allocator.hpp>
◆ buffer_allocator()
std::buffer_allocator::buffer_allocator |
( |
const char * |
name, |
|
|
char * |
mem, |
|
|
size_t |
bufferSize |
|
) |
| |
|
inlineexplicit |
43 : m_name(name), m_buffer(mem), m_bufferTop(0), m_bufferSize(bufferSize)
◆ allocate()
void* std::buffer_allocator::allocate |
( |
size_t |
bytes, |
|
|
int |
flags = 0 |
|
) |
| |
|
inline |
49 assert(m_bufferTop + bytes <= m_bufferSize);
50 char* ret = m_buffer + m_bufferTop;
◆ deallocate()
void std::buffer_allocator::deallocate |
( |
void * |
ptr, |
|
|
size_t |
bytes |
|
) |
| |
|
inline |
56 assert(ptr == 0 || (ptr >= m_buffer && ptr < m_buffer + m_bufferSize));
◆ get_name()
const char* std::buffer_allocator::get_name |
( |
| ) |
const |
|
inline |
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: