Apache SINGA
A distributed deep learning platform .
 All Classes Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | List of all members
mshadow::utils::FileStream Class Reference

implementation of file i/o stream More...

#include <tensor_io.h>

Inheritance diagram for mshadow::utils::FileStream:
mshadow::utils::IStream

Public Member Functions

 FileStream (FILE *fp)
 constructor
 
virtual size_t Read (void *ptr, size_t size)
 read data from stream More...
 
virtual void Write (const void *ptr, size_t size)
 write data to stream More...
 
void Close (void)
 close file
 
- Public Member Functions inherited from mshadow::utils::IStream
virtual ~IStream (void)
 virtual destructor
 

Detailed Description

implementation of file i/o stream

Member Function Documentation

virtual size_t mshadow::utils::FileStream::Read ( void *  ptr,
size_t  size 
)
inlinevirtual

read data from stream

Parameters
ptrpointer to memory buffer
sizesize of block
Returns
usually is the size of data readed

Implements mshadow::utils::IStream.

virtual void mshadow::utils::FileStream::Write ( const void *  ptr,
size_t  size 
)
inlinevirtual

write data to stream

Parameters
ptrpointer to memory buffer
sizesize of block

Implements mshadow::utils::IStream.


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