Defines functions that are used to read to user-defined classes with the BinaryReader
class.
More...
|
template<class T > |
bool | Read (BinaryReader *r, T *x) |
| You can read to user-defined class objects by specializing this function template. More...
|
|
template<class T > |
bool | ReadArray (BinaryReader *r, T *x, size_t n) |
| You can read to user-defined class objects by specializing this function template. More...
|
|
Defines functions that are used to read to user-defined classes with the BinaryReader
class.
You can read to user-defined class objects by specializing this function template.
- Template Parameters
-
- Parameters
-
[in] | r | The pointer to BinaryReader . |
[in,out] | x | The pointer to the configured object. |
- Returns
- Returns
true
when successful.
- Examples:
- msgpack/jsonrpc/server.cpp.
Definition at line 158 of file BinaryReader.h.
template<class T >
nn::nlib::binary_reader::ReadArray |
( |
BinaryReader * |
r, |
|
|
T * |
x, |
|
|
size_t |
n |
|
) |
| |
|
inline |
You can read to user-defined class objects by specializing this function template.
- Template Parameters
-
- Parameters
-
[in] | r | The pointer to BinaryReader . |
[in,out] | x | The pointer to the configured object array. |
[in] | n | Size of the array. |
- Returns
- Returns
true
when successful.
Definition at line 161 of file BinaryReader.h.