RetroArch
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
FileWriteStream Class Reference

Wrapper of C file stream for input using fread(). More...

#include <filewritestream.h>

Public Types

typedef char Ch
 Character type. Only support char. More...
 

Public Member Functions

 FileWriteStream (std::FILE *fp, char *buffer, size_t bufferSize)
 
void Put (char c)
 
void PutN (char c, size_t n)
 
void Flush ()
 
char Peek () const
 
char Take ()
 
size_t Tell () const
 
char * PutBegin ()
 
size_t PutEnd (char *)
 

Private Member Functions

 FileWriteStream (const FileWriteStream &)
 
FileWriteStreamoperator= (const FileWriteStream &)
 

Private Attributes

std::FILEfp_
 
char * buffer_
 
char * bufferEnd_
 
char * current_
 

Detailed Description

Wrapper of C file stream for input using fread().

Note
implements Stream concept

Member Typedef Documentation

◆ Ch

typedef char FileWriteStream::Ch

Character type. Only support char.

Constructor & Destructor Documentation

◆ FileWriteStream() [1/2]

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

◆ FileWriteStream() [2/2]

FileWriteStream::FileWriteStream ( const FileWriteStream )
private

Member Function Documentation

◆ Flush()

void FileWriteStream::Flush ( )
inline
Here is the caller graph for this function:

◆ operator=()

FileWriteStream& FileWriteStream::operator= ( const FileWriteStream )
private

◆ Peek()

char FileWriteStream::Peek ( ) const
inline

◆ Put()

void FileWriteStream::Put ( char  c)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PutBegin()

char* FileWriteStream::PutBegin ( )
inline

◆ PutEnd()

size_t FileWriteStream::PutEnd ( char *  )
inline

◆ PutN()

void FileWriteStream::PutN ( char  c,
size_t  n 
)
inline
Here is the call graph for this function:

◆ Take()

char FileWriteStream::Take ( )
inline

◆ Tell()

size_t FileWriteStream::Tell ( ) const
inline

Member Data Documentation

◆ buffer_

char* FileWriteStream::buffer_
private

◆ bufferEnd_

char* FileWriteStream::bufferEnd_
private

◆ current_

char* FileWriteStream::current_
private

◆ fp_

std::FILE* FileWriteStream::fp_
private

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