#include <PlainFile.h>
Inheritance diagram for PlainReader:
Public Member Functions | |
PlainReader () | |
virtual | ~PlainReader () |
virtual int | getByte ()=0 |
int | getByte (unsigned char *dest) |
int | get2Bytes (unsigned char *dest) |
int | get3Bytes (unsigned char *dest) |
int | get4Bytes (unsigned char *dest) |
int | getByte (unsigned int &dest) |
int | get2Bytes (unsigned int &dest) |
int | get3Bytes (unsigned int &dest) |
int | get4Bytes (unsigned int &dest) |
int | addByte (unsigned int &dest) |
int | add2Bytes (unsigned int &dest) |
int | add3Bytes (unsigned int &dest) |
|
The PlainReader initializes the internal data structures. |
|
The buffer is released and all remaining bytes in the buffer are discarded. |
|
Shift the content of the given integer left by 2 bytes. Read the first byte in the second-to-right byte of the integer, the second in the rightmost byte of the integer.
|
|
like add2Bytes()
|
|
Shift the content of the given integer left by 1 byte. Copy 1 byte in the rightmost byte of the integer.
|
|
The first read byte in the second-to-right byte of the integer, the second in the rightmost byte of the integer, where rightmost implies MSB for little endian machines and LSB for big endian machines (appropriate for bit operation mainly).
|
|
Stores, if successful, 2 bytes in the buffer
|
|
like get2Bytes()
|
|
Stores, if successful, 3 bytes in the buffer
|
|
like get2Bytes()
|
|
Stores, if successful, 4 bytes in the buffer
|
|
Stores in the buffer 1 byte in the rightmost byte of the integer, where rightmost implies MSB for little endian machines and LSB for big endian machines (appropriate for bit operation mainly).
|
|
Stores, if successful, a byte in the buffer.
|
|
Get a single byte for processing.
Implemented in PlainFileReader, and PlainRopeReader.
|