File byte stream for input using fread(). More...
#include <filereadstream.h>
Public Types | |
typedef char | Ch |
Character type (byte). More... | |
Public Member Functions | |
FileReadStream (std::FILE *fp, char *buffer, size_t bufferSize) | |
Constructor. More... | |
Ch | Peek () const |
Ch | Take () |
size_t | Tell () const |
void | Put (Ch) |
void | Flush () |
Ch * | PutBegin () |
size_t | PutEnd (Ch *) |
const Ch * | Peek4 () const |
Private Member Functions | |
void | Read () |
Private Attributes | |
std::FILE * | fp_ |
Ch * | buffer_ |
size_t | bufferSize_ |
Ch * | bufferLast_ |
Ch * | current_ |
size_t | readCount_ |
size_t | count_ |
Number of characters read. More... | |
bool | eof_ |
File byte stream for input using fread().
Definition at line 34 of file filereadstream.h.
typedef char FileReadStream::Ch |
Character type (byte).
Definition at line 36 of file filereadstream.h.
|
inline |
Constructor.
fp | File pointer opened for read. |
buffer | user-supplied buffer. |
bufferSize | size of buffer in bytes. Must >=4 bytes. |
Definition at line 44 of file filereadstream.h.
|
inline |
Definition at line 56 of file filereadstream.h.
|
inline |
Definition at line 50 of file filereadstream.h.
|
inline |
Definition at line 61 of file filereadstream.h.
|
inline |
Definition at line 55 of file filereadstream.h.
|
inline |
Definition at line 57 of file filereadstream.h.
|
inline |
Definition at line 58 of file filereadstream.h.
|
inlineprivate |
Definition at line 66 of file filereadstream.h.
|
inline |
Definition at line 51 of file filereadstream.h.
|
inline |
Definition at line 52 of file filereadstream.h.
|
private |
Definition at line 84 of file filereadstream.h.
|
private |
Definition at line 86 of file filereadstream.h.
|
private |
Definition at line 85 of file filereadstream.h.
|
private |
Number of characters read.
Definition at line 89 of file filereadstream.h.
|
private |
Definition at line 87 of file filereadstream.h.
|
private |
Definition at line 90 of file filereadstream.h.
|
private |
Definition at line 83 of file filereadstream.h.
|
private |
Definition at line 88 of file filereadstream.h.