interface of stream I/O, used to serialize data, mshadow does not restricted to only this interface in SaveBinary/LoadBinary mshadow accept all class that implements Read and Write
More...
#include <io.h>
|
virtual size_t | Read (void *ptr, size_t size)=0 |
| read data from stream More...
|
|
virtual void | Write (const void *ptr, size_t size)=0 |
| write data to stream More...
|
|
virtual | ~IStream (void) |
| virtual destructor More...
|
|
interface of stream I/O, used to serialize data, mshadow does not restricted to only this interface in SaveBinary/LoadBinary mshadow accept all class that implements Read and Write
virtual mshadow::utils::IStream::~IStream |
( |
void |
| ) |
|
|
inlinevirtual |
virtual size_t mshadow::utils::IStream::Read |
( |
void * |
ptr, |
|
|
size_t |
size |
|
) |
| |
|
pure virtual |
read data from stream
- Parameters
-
ptr | pointer to memory buffer |
size | size of block |
- Returns
- usually is the size of data readed
virtual void mshadow::utils::IStream::Write |
( |
const void * |
ptr, |
|
|
size_t |
size |
|
) |
| |
|
pure virtual |
write data to stream
- Parameters
-
ptr | pointer to memory buffer |
size | size of block |
The documentation for this class was generated from the following file:
- /work/mxnet/3rdparty/mshadow/mshadow/io.h