![]() |
TrinityCore
|
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().
| typedef char FileReadStream::Ch |
Character type (byte).
|
inline |
Constructor.
| fp | File pointer opened for read. |
| buffer | user-supplied buffer. |
| bufferSize | size of buffer in bytes. Must >=4 bytes. |
Here is the call graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
Here is the caller graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
|
private |
|
private |
|
private |
|
private |
Number of characters read.
|
private |
|
private |
|
private |
|
private |
1.8.8