C# Class Raven.Munin.Util.PooledMemoryStream

Inheritance: Stream
显示文件 Open project: hibernating-rhinos/Raven.Light Class Usage Examples

Public Methods

Method Description
ComputeHash ( ) : byte[]
Flush ( ) : void
From ( Stream stream, int length ) : PooledMemoryStream
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
EnsureCapacity ( int count ) : void

Method Details

ComputeHash() public method

public ComputeHash ( ) : byte[]
return byte[]

Dispose() protected method

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

Flush() public method

public Flush ( ) : void
return void

From() public static method

public static From ( Stream stream, int length ) : PooledMemoryStream
stream Stream
length int
return PooledMemoryStream

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, int offset, int count ) : void
buffer byte
offset int
count int
return void