Deserializes objects from a given source.
More...
#include <deserializer.hpp>
List of all members.
Detailed Description
Deserializes objects from a given source.
Constructor & Destructor Documentation
hamcast::util::deserializer::deserializer |
( |
|
) |
|
Create a deserializer with no data source.
hamcast::util::deserializer::deserializer |
( |
const boost::intrusive_ptr< source > & |
src_ptr |
) |
[explicit] |
Create a deserializer that reads from src_ptr
.
- Parameters:
-
| src_ptr | The used data source. |
- Precondition:
src_ptr.get() != NULL
.
Member Function Documentation
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
.
void hamcast::util::deserializer::reset |
( |
const boost::intrusive_ptr< source > & |
new_source |
) |
|
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