mxnet
Public Member Functions | List of all members
mshadow::utils::IStream Class Referenceabstract

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>

Collaboration diagram for mshadow::utils::IStream:
Collaboration graph

Public Member Functions

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...
 

Detailed Description

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

Constructor & Destructor Documentation

virtual mshadow::utils::IStream::~IStream ( void  )
inlinevirtual

virtual destructor

Member Function Documentation

virtual size_t mshadow::utils::IStream::Read ( void *  ptr,
size_t  size 
)
pure virtual

read data from stream

Parameters
ptrpointer to memory buffer
sizesize 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
ptrpointer to memory buffer
sizesize of block

The documentation for this class was generated from the following file: