SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
|
File byte stream for input using fread(). More...
#include <filereadstream.h>
Public Types | |
typedef char | Ch |
Character type (byte). | |
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 |
File byte stream for input using fread().
|
inline |
Constructor.
fp | File pointer opened for read. |
buffer | user-supplied buffer. |
bufferSize | size of buffer in bytes. Must >=4 bytes. |