Class that is used to help read serialized objects from a buffer.
More...
#include <BufferReader.h>
Class that is used to help read serialized objects from a buffer.
◆ BufferReader()
ThunderEgg::BufferReader::BufferReader |
( |
char * |
buffer | ) |
|
|
inline |
Create a new BufferReader with given buffer.
- Parameters
-
buffer | the pointer to the beginning of the buffer. |
◆ getPos()
int ThunderEgg::BufferReader::getPos |
( |
| ) |
|
|
inline |
get the current position in the buffer
- Returns
- the current position
◆ operator>>() [1/2]
Get an object of the buffer.
- Parameters
-
- Returns
- this BufferReader
◆ operator>>() [2/2]
template<typename T >
std::enable_if<!isSerializable<T>), BufferReader>::type& ThunderEgg::BufferReader::operator>> |
( |
T & |
obj | ) |
|
|
inline |
Get an object from the buffer.
- Template Parameters
-
- Parameters
-
obj | the object. This object must be in serialized form. |
- Returns
- this BufferReader
The documentation for this class was generated from the following file: