NGL
6.5
The NCCA Graphics Library
|
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 27 of file filereadstream.h.
typedef char FileReadStream::Ch |
Character type (byte).
Definition at line 29 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 37 of file filereadstream.h.
References fp_, RAPIDJSON_ASSERT, and Read().
|
inline |
Definition at line 49 of file filereadstream.h.
References RAPIDJSON_ASSERT.
|
inline |
Definition at line 43 of file filereadstream.h.
References current_.
|
inline |
Definition at line 54 of file filereadstream.h.
References bufferLast_, and current_.
Definition at line 48 of file filereadstream.h.
References RAPIDJSON_ASSERT.
|
inline |
Definition at line 50 of file filereadstream.h.
References RAPIDJSON_ASSERT.
|
inline |
Definition at line 51 of file filereadstream.h.
References RAPIDJSON_ASSERT.
|
inlineprivate |
Definition at line 59 of file filereadstream.h.
References buffer_, bufferLast_, bufferSize_, count_, current_, eof_, fp_, and readCount_.
|
inline |
Definition at line 44 of file filereadstream.h.
References current_, and Read().
|
inline |
Definition at line 45 of file filereadstream.h.
|
private |
Definition at line 77 of file filereadstream.h.
|
private |
Definition at line 79 of file filereadstream.h.
|
private |
Definition at line 78 of file filereadstream.h.
|
private |
Number of characters read.
Definition at line 82 of file filereadstream.h.
|
private |
Definition at line 80 of file filereadstream.h.
|
private |
Definition at line 83 of file filereadstream.h.
|
private |
Definition at line 76 of file filereadstream.h.
|
private |
Definition at line 81 of file filereadstream.h.