File byte stream for input using fread().
More...
#include <filereadstream.h>
|
typedef char | Ch |
| Character type (byte). More...
|
|
File byte stream for input using fread().
- Note
- implements Stream concept
◆ Ch
◆ FileReadStream()
FileReadStream::FileReadStream |
( |
std::FILE * |
fp, |
|
|
char * |
buffer, |
|
|
size_t |
bufferSize |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
fp | File pointer opened for read. |
buffer | user-supplied buffer. |
bufferSize | size of buffer in bytes. Must >=4 bytes. |
◆ Flush()
void FileReadStream::Flush |
( |
| ) |
|
|
inline |
◆ Peek()
Ch FileReadStream::Peek |
( |
| ) |
const |
|
inline |
◆ Peek4()
const Ch* FileReadStream::Peek4 |
( |
| ) |
const |
|
inline |
◆ Put()
void FileReadStream::Put |
( |
Ch |
| ) |
|
|
inline |
◆ PutBegin()
Ch* FileReadStream::PutBegin |
( |
| ) |
|
|
inline |
◆ PutEnd()
size_t FileReadStream::PutEnd |
( |
Ch * |
| ) |
|
|
inline |
◆ Read()
void FileReadStream::Read |
( |
| ) |
|
|
inlineprivate |
◆ Take()
Ch FileReadStream::Take |
( |
| ) |
|
|
inline |
◆ Tell()
size_t FileReadStream::Tell |
( |
| ) |
const |
|
inline |
◆ buffer_
Ch* FileReadStream::buffer_ |
|
private |
◆ bufferLast_
Ch* FileReadStream::bufferLast_ |
|
private |
◆ bufferSize_
size_t FileReadStream::bufferSize_ |
|
private |
◆ count_
size_t FileReadStream::count_ |
|
private |
Number of characters read.
◆ current_
Ch* FileReadStream::current_ |
|
private |
◆ eof_
bool FileReadStream::eof_ |
|
private |
◆ fp_
◆ readCount_
size_t FileReadStream::readCount_ |
|
private |
The documentation for this class was generated from the following file: