#include <Buffer.h>
◆ Buffer() [1/4]
◆ Buffer() [2/4]
mana::Buffer::Buffer |
( |
const Buffer & |
| ) |
|
|
delete |
◆ Buffer() [3/4]
mana::Buffer::Buffer |
( |
Buffer && |
| ) |
|
|
deletenoexcept |
◆ Buffer() [4/4]
◆ ~Buffer()
mana::Buffer::~Buffer |
( |
| ) |
|
|
default |
◆ Allocate()
void mana::Buffer::Allocate |
( |
const address_t |
size | ) |
|
|
inline |
Extend memory block
- Parameters
-
[in] | size | Size to expand memory |
◆ Clear()
void mana::Buffer::Clear |
( |
| ) |
|
|
inline |
Set the size used to 0. No memory is released.
◆ GetAddressFromBottom()
template<typename T >
T * mana::Buffer::GetAddressFromBottom |
( |
const address_t |
index | ) |
const |
|
inline |
Get the address of the specified position from the end
- Template Parameters
-
- Parameters
-
[in] | index | Position from the end |
- Returns
- Address of the specified location
◆ GetAddressFromTop()
template<typename T >
T * mana::Buffer::GetAddressFromTop |
( |
const address_t |
index | ) |
const |
|
inline |
Get the address of the specified position from the beginning.
- Template Parameters
-
- Parameters
-
[in] | index | Position from the top |
- Returns
- Address of the specified location
◆ GetSize()
Get the size in use.
- Returns
- Usage size
◆ operator!=()
bool mana::Buffer::operator!= |
( |
const Buffer & |
other | ) |
const |
|
inlinenoexcept |
Compare contents
- Parameters
-
- Returns
- If true, different content
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
bool mana::Buffer::operator== |
( |
const Buffer & |
other | ) |
const |
|
inlinenoexcept |
Compare contents
- Parameters
-
- Returns
- If true, same content
◆ Release()
void mana::Buffer::Release |
( |
const address_t |
size | ) |
|
|
inline |
Changes the size of the memory block used. Memory is not released.
- Parameters
-
◆ Reset()
void mana::Buffer::Reset |
( |
| ) |
|
|
inline |
Set the size used and the size secured to 0.
◆ SetSize()
void mana::Buffer::SetSize |
( |
const address_t |
size | ) |
|
|
inline |
Set the size to be used. Do not set a value greater than the allocated memory block.
- Parameters
-
The documentation for this class was generated from the following files: