C# Class Metropass.Core.PCL.Hashing.HashedBlockStream

Inheritance: Stream
Mostra file Open project: TheAngryByrd/MetroPass Class Usage Examples

Public Properties

Property Type Description
m_sBaseStream Stream

Public Methods

Method Description
Close ( ) : void
Flush ( ) : void
HashedBlockStream ( Stream sBaseStream, bool bWriting, ICanSHA256Hash SHA256Hasher ) : System
HashedBlockStream ( Stream sBaseStream, bool bWriting, int nBufferSize, ICanSHA256Hash SHA256Hasher ) : System
HashedBlockStream ( Stream sBaseStream, bool bWriting, int nBufferSize, bool bVerify, ICanSHA256Hash sha256Hasher ) : System
Read ( byte pbBuffer, int nOffset, int nCount ) : int
Seek ( long lOffset, SeekOrigin soOrigin ) : long
SetLength ( long lValue ) : void
Write ( byte pbBuffer, int nOffset, int nCount ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ReadHashedBlock ( ) : bool
WriteHashedBlock ( ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

HashedBlockStream() public method

public HashedBlockStream ( Stream sBaseStream, bool bWriting, ICanSHA256Hash SHA256Hasher ) : System
sBaseStream Stream
bWriting bool
SHA256Hasher ICanSHA256Hash
return System

HashedBlockStream() public method

public HashedBlockStream ( Stream sBaseStream, bool bWriting, int nBufferSize, ICanSHA256Hash SHA256Hasher ) : System
sBaseStream Stream
bWriting bool
nBufferSize int
SHA256Hasher ICanSHA256Hash
return System

HashedBlockStream() public method

public HashedBlockStream ( Stream sBaseStream, bool bWriting, int nBufferSize, bool bVerify, ICanSHA256Hash sha256Hasher ) : System
sBaseStream Stream
bWriting bool
nBufferSize int
bVerify bool
sha256Hasher ICanSHA256Hash
return System

Read() public method

public Read ( byte pbBuffer, int nOffset, int nCount ) : int
pbBuffer byte
nOffset int
nCount int
return int

Seek() public method

public Seek ( long lOffset, SeekOrigin soOrigin ) : long
lOffset long
soOrigin SeekOrigin
return long

SetLength() public method

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

Write() public method

public Write ( byte pbBuffer, int nOffset, int nCount ) : void
pbBuffer byte
nOffset int
nCount int
return void

Property Details

m_sBaseStream public_oe property

public Stream m_sBaseStream
return Stream