Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.Streams.HashingStream

Summary

Calculates MD5 checksum of all values that are read/written via this stream.

Constructors

HashingStream(Stream stream, HashAlgorithm hasher)
Initialises a hash calculation stream, with the specified stream as the underlying stream.

Instance methods

void
  • Overrides: Stream.Flush()
This member is not documented.
int
Read(byte[] buffer, int offset, int count)
  • Overrides: Stream.Read(byte[], int, int)
Reads data from the underlying stream. Updates the hash with the bytes read.
long
Seek(long offset, SeekOrigin origin)
  • Overrides: Stream.Seek(long, SeekOrigin)
Seeking is ignored (but propagated to the underlying stream). All the bytes seeked over will be ignored.
void
SetLength(long value)
  • Overrides: Stream.SetLength(long)
This member is not documented.
void
Write(byte[] buffer, int offset, int count)
  • Overrides: Stream.Write(byte[], int, int)
Writes data to the underlying stream. Updates the hash with the bytes written.

Instance properties

Stream This is the underlying stream. All reads/writes and most other operations on this class are performed on this underlying stream.
bool
  • Overrides: Stream.CanRead
These members are not documented.
bool
  • Overrides: Stream.CanSeek
bool
  • Overrides: Stream.CanWrite
byte[] Retrieves the hash of all data that has been read/written through this stream so far. Due to the implementation of the underlying hash algorithm this must be called only after all data has been hashed. No further calls to Read/Write are allowed after a single call to this.
long
  • Overrides: Stream.Length
These members are not documented.
long
  • Overrides: Stream.Position