mxnet
|
generic serialization handler More...
#include <serializer.h>
Static Public Member Functions | |
static void | Write (Stream *strm, const T &data) |
write data to stream More... | |
static bool | Read (Stream *strm, T *data) |
read data to stream More... | |
generic serialization handler
generic serialization handler for type T
T | the type to be serialized |
need_endian_swap | Whether use little endian |
User can define specialization of this class to support composite serialization of their own class.
T | the type to be serialized |
|
inlinestatic |
read data to stream
strm | the stream to read the data. |
data | the pointer to the data obeject to read |
|
inlinestatic |
write data to stream
strm | the stream we write the data. |
data | the data obeject to be serialized |