Base class of buffers.
More...
#include <tdme/utilities/Buffer.h>
Base class of buffers.
- Author
- Andreas Drewke
Definition at line 19 of file Buffer.h.
◆ Buffer() [1/3]
Public constructor.
- Parameters
-
Definition at line 31 of file Buffer.h.
◆ Buffer() [2/3]
Public constructor.
- Parameters
-
Definition at line 41 of file Buffer.h.
◆ Buffer() [3/3]
Buffer |
( |
vector< uint8_t > * |
data | ) |
|
|
inline |
Public constructor.
- Parameters
-
Definition at line 51 of file Buffer.h.
◆ ~Buffer()
Destructor.
Definition at line 60 of file Buffer.h.
◆ clear()
◆ get()
uint8_t get |
( |
int32_t |
position | ) |
|
|
inline |
- Returns
- value at given position
- Parameters
-
Definition at line 102 of file Buffer.h.
◆ getBuffer()
- Returns
- pointer to underlying data
Definition at line 131 of file Buffer.h.
◆ getCapacity()
virtual int32_t getCapacity |
( |
| ) |
|
|
inlinevirtual |
◆ getPosition()
virtual int32_t getPosition |
( |
| ) |
|
|
inlinevirtual |
◆ put() [1/2]
Buffer * put |
( |
const uint8_t * |
data, |
|
|
int32_t |
size |
|
) |
| |
|
inline |
Put data into buffer.
- Parameters
-
data | pointer to data |
size | to put |
- Returns
- pointer to this buffer
Definition at line 121 of file Buffer.h.
◆ put() [2/2]
Put value into buffer.
- Parameters
-
Definition at line 110 of file Buffer.h.
◆ setPosition()
virtual Buffer * setPosition |
( |
int32_t |
position | ) |
|
|
inlinevirtual |
Set position.
- Parameters
-
- Returns
- pointer to this buffer
Definition at line 93 of file Buffer.h.
◆ buffer
vector<uint8_t>* buffer { nullptr } |
|
private |
◆ createdBuffer
◆ position
The documentation for this class was generated from the following file:
- /home/andreas/Development/drewke.net/tdme2/src/tdme/utilities/Buffer.h