webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | List of all members
FileStream Class Reference

(Deprecated) Wrapper of C file stream for input or output. More...

#include <filestream.h>

Public Types

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

Public Member Functions

 FileStream (std::FILE *fp)
 
char Peek () const
 
char Take ()
 
size_t Tell () const
 
void Put (char c)
 
void Flush ()
 
char * PutBegin ()
 
size_t PutEnd (char *)
 

Detailed Description

(Deprecated) Wrapper of C file stream for input or output.

This simple wrapper does not check the validity of the stream.

Note
implements Stream concept
deprecated: This was only for basic testing in version 0.1, it is found that the performance is very low by using fgetc(). Use FileReadStream instead.

Member Typedef Documentation

◆ Ch

Character type. Only support char.

Constructor & Destructor Documentation

◆ FileStream()

FileStream::FileStream ( std::FILE *  fp)
inline

Member Function Documentation

◆ Flush()

void FileStream::Flush ( )
inline

◆ Peek()

char FileStream::Peek ( ) const
inline

◆ Put()

void FileStream::Put ( char  c)
inline

◆ PutBegin()

char* FileStream::PutBegin ( )
inline

◆ PutEnd()

size_t FileStream::PutEnd ( char *  )
inline

◆ Take()

char FileStream::Take ( )
inline

◆ Tell()

size_t FileStream::Tell ( ) const
inline

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