C# Class SwiftClient.BufferedHTTPStream

Inheritance: Stream
ファイルを表示 Open project: vtfuture/SwiftClient

Public Methods

Method Description
BufferedHTTPStream ( Func streamFunc, Func lengthFunc, long bufferLength = 4096 ) : System
Flush ( ) : void
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

Private Methods

Method Description
EnsureNegativ ( long value, string name ) : void
EnsureNotDisposed ( ) : void
EnsureNotNull ( object obj, string name ) : void
EnsurePositiv ( int value, string name ) : void
EnsurePositiv ( long value, string name ) : void
ReadChunk ( long chunkNumberToRead ) : void
ReadNextChunk ( ) : void
Seek ( long offset ) : long

Method Details

BufferedHTTPStream() public method

public BufferedHTTPStream ( Func streamFunc, Func lengthFunc, long bufferLength = 4096 ) : System
streamFunc Func
lengthFunc Func
bufferLength long
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, int offset, int count ) : void
buffer byte
offset int
count int
return void