#include <verify_check.h>
Public Member Functions | |
virtual | ~input_verify_checksum () |
input_verify_checksum (input &deeper, unsigned long checksum) | |
long | read_inner (void *data, size_t nbytes) |
nstring | name () |
long | length () |
long | ftell_inner () |
bool | is_remote () const |
Private Member Functions | |
input_verify_checksum () | |
input_verify_checksum (const input_verify_checksum &) | |
input_verify_checksum & | operator= (const input_verify_checksum &) |
Private Attributes | |
input | deeper |
unsigned long | checksum_given |
unsigned long | checksum_calculated |
long | pos |
Definition at line 29 of file verify_check.h.
virtual input_verify_checksum::~input_verify_checksum | ( | ) | [virtual] |
The destructor.
input_verify_checksum::input_verify_checksum | ( | input & | deeper, | |
unsigned long | checksum | |||
) |
The constructor.
deeper | The source input stream that this filter uses to obtain its data. | |
checksum |
input_verify_checksum::input_verify_checksum | ( | ) | [private] |
The default constructor. Do not use.
input_verify_checksum::input_verify_checksum | ( | const input_verify_checksum & | ) | [private] |
The copy constructor. Do not use.
long input_verify_checksum::read_inner | ( | void * | data, | |
size_t | nbytes | |||
) | [virtual] |
The read_inner method is used to read unbuffered data from the given input stream. At most nbytes bytes will be read into data. The number of bytes actually read will be returned. At end-of-file, a value <= 0 will be returned, and data will be unchanged. All file read errors or format errors are fatal, and will cause the method to not return.
data | Where to put the results of the read. | |
nbytes | The maximum number of bytes to read. |
Implements input_ty.
nstring input_verify_checksum::name | ( | ) | [virtual] |
long input_verify_checksum::length | ( | ) | [virtual] |
long input_verify_checksum::ftell_inner | ( | ) | [virtual] |
bool input_verify_checksum::is_remote | ( | ) | const [virtual] |
input_verify_checksum& input_verify_checksum::operator= | ( | const input_verify_checksum & | ) | [private] |
The assignment operator. Do not use.
input input_verify_checksum::deeper [private] |
The deeper instance variable is sued to remember the source input stream that this filter uses to obtain its data.
Definition at line 67 of file verify_check.h.
unsigned long input_verify_checksum::checksum_given [private] |
The checksum_given instance variable is used to remember the checksum given to the constructor.
Definition at line 73 of file verify_check.h.
unsigned long input_verify_checksum::checksum_calculated [private] |
The checksum_calculated instance variable is used to remember the running checksum calculated from the data.
Definition at line 79 of file verify_check.h.
long input_verify_checksum::pos [private] |
The pos instance variable is used to remember the current file position.
Definition at line 85 of file verify_check.h.