C# Class GitSharp.Core.Util.DigestOutputStream

A light version of a std Java class that updates a hash while writing bytes to a stream.
Inheritance: Stream
Show file Open project: stschake/GitSharp Class Usage Examples

Public Methods

Method Description
DigestOutputStream ( Stream stream, MessageDigest digest ) : System
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer ) : void
Write ( byte buffer, int offset, int count ) : void

Method Details

DigestOutputStream() public method

public DigestOutputStream ( Stream stream, MessageDigest digest ) : System
stream Stream
digest MessageDigest
return System

Flush() public method

public Flush ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer ) : void
buffer byte
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void