Assimp  v3.1.1 (June 2014)
FileReadStream Class Reference

File byte stream for input using fread(). More...

Public Types

typedef char Ch
 Character type (byte). More...
 

Public Member Functions

 FileReadStream (std::FILE *fp, char *buffer, size_t bufferSize)
 Constructor. More...
 
void Flush ()
 
Ch Peek () const
 
const ChPeek4 () const
 
void Put (Ch)
 
ChPutBegin ()
 
size_t PutEnd (Ch *)
 
Ch Take ()
 
size_t Tell () const
 

Detailed Description

File byte stream for input using fread().

Note
implements Stream concept

Member Typedef Documentation

typedef char FileReadStream::Ch

Character type (byte).

Constructor & Destructor Documentation

FileReadStream::FileReadStream ( std::FILE *  fp,
char *  buffer,
size_t  bufferSize 
)
inline

Constructor.

Parameters
fpFile pointer opened for read.
bufferuser-supplied buffer.
bufferSizesize of buffer in bytes. Must >=4 bytes.

Member Function Documentation

void FileReadStream::Flush ( )
inline
Ch FileReadStream::Peek ( ) const
inline
const Ch* FileReadStream::Peek4 ( ) const
inline
void FileReadStream::Put ( Ch  )
inline
Ch* FileReadStream::PutBegin ( )
inline
size_t FileReadStream::PutEnd ( Ch )
inline
Ch FileReadStream::Take ( )
inline
size_t FileReadStream::Tell ( void  ) const
inline

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