C# Class Illumina.TerminalVelocity.SeekableNetworkStream

Seekable, optimized chunked download stream based on the SimpleByteRangeClient
Inheritance: Stream, IDisposable
显示文件 Open project: basespace/TerminalVelocity

Private Properties

Property Type Description
FinishAsyncRead bool
GetChunk void
GetSizeOfResource long
HandleResponse void
RefillBuffer void
ShouldPreFetch bool
TriggerRefillAsync void

Public Methods

Method Description
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SeekableNetworkStream ( string url, long resourceLength = null, uint cacheSize = NOM_CACHE ) : System
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
FinishAsyncRead ( ) : bool
GetChunk ( long start, long end, uint retryCount = 2 ) : void
GetSizeOfResource ( Uri url ) : long
HandleResponse ( SimpleHttpResponse response ) : void
RefillBuffer ( long minLength ) : void
ShouldPreFetch ( ) : bool
TriggerRefillAsync ( uint amount ) : void

Method Details

Dispose() protected method

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

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

SeekableNetworkStream() public method

public SeekableNetworkStream ( string url, long resourceLength = null, uint cacheSize = NOM_CACHE ) : System
url string
resourceLength long
cacheSize uint
return System

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