#include <ZStream_SHA1.h>
Inheritance diagram for ZStreamR_SHA1:
Public Member Functions | |
ZStreamR_SHA1 (uint8 oDigest[20], 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[20]; ZStreamR_SHA1(theDigest, sourceStream).Read(dest, destSize);
size_t ZStreamR_SHA1::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.