#include <deserializer.hpp>
Inherits noncopyable.
Deserializes objects from a given source.
hamcast::util::deserializer::deserializer |
( |
| ) |
|
Create a deserializer with no data source.
Create a deserializer that reads from src_ptr
.
- Parameters
-
src_ptr | The used data source. |
- Precondition
src_ptr.get() != NULL
.
void hamcast::util::deserializer::read |
( |
size_t |
buf_size, |
|
|
void * |
buf |
|
) |
| |
Read buf_size
bytes from the source and store them in buf
.
- Parameters
-
buf_size | Size of buf in bytes. |
buf | C-buffer to store the result of this operation. |
- Precondition
buf_size > 0 && buf != NULL
.
Change the used data source.
- Parameters
-
new_source | The new data source for this . |
The documentation for this class was generated from the following files:
- hamcast/util/deserializer.hpp
- src/deserializer.cpp