#include <ZStream_MD5.h>
Inheritance diagram for ZStreamR_MD5:
Public Member Functions | |
ZStreamR_MD5 (uint8 oDigest[16], const ZStreamR &iStreamSource) | |
Constructor for use inline. | |
virtual size_t | Imp_CountReadable () |
Returns the number of bytes guaranteed to be readable without blocking. |
Constructor for use inline.
This constructor remembers the address of oDigest, and when destroyed will place the digest in that array. This constructor is useful when a ZStreamR is already being used to read some data, but for which we would like to gather a digest. e.g. going from this:
sourceStream.Read(dest, destSize);
uint8 theDigest[16]; ZStreamR_MD5(theDigest, sourceStream).Read(dest, destSize);
size_t ZStreamR_MD5::Imp_CountReadable | ( | ) | [virtual] |
Returns the number of bytes guaranteed to be readable without blocking.
If the stream does not or cannot know this information it should return zero. A zero return thus does not mean no data is available, simply that a subsequent Read or Skip may block indefinitely.
Reimplemented from ZStreamR.