C# 클래스 Cimbalino.Phone.Toolkit.Helpers.ChunkedStream

Creates a stream that helps dividing data in fixed size chunks.
상속: Stream
파일 보기 프로젝트 열기: Cimbalino/Cimbalino-Phone-Toolkit 1 사용 예제들

공개 메소드들

메소드 설명
ChunkedStream ( int chunkSize, Action chunkReadyAction ) : System

Initializes a new instance of the ChunkedStream class.

Close ( ) : void

Closes the current stream and releases all resources.

Flush ( ) : void

Overrides Stream.Flush so that no action is performed.

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

This method is not supported.

Seek ( long offset, SeekOrigin origin ) : long

This method is not supported.

SetLength ( long value ) : void

This method is not supported.

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

Writes a block of bytes to the current stream using data read from a buffer.

비공개 메소드들

메소드 설명
SendChunks ( ) : void

메소드 상세

ChunkedStream() 공개 메소드

Initializes a new instance of the ChunkedStream class.
public ChunkedStream ( int chunkSize, Action chunkReadyAction ) : System
chunkSize int The chunk size.
chunkReadyAction Action The to perform when a chunk is ready.
리턴 System

Close() 공개 메소드

Closes the current stream and releases all resources.
public Close ( ) : void
리턴 void

Flush() 공개 메소드

Overrides Stream.Flush so that no action is performed.
public Flush ( ) : void
리턴 void

Read() 공개 메소드

This method is not supported.
public Read ( byte buffer, int offset, int count ) : int
buffer byte The buffer.
offset int The offset.
count int The count.
리턴 int

Seek() 공개 메소드

This method is not supported.
public Seek ( long offset, SeekOrigin origin ) : long
offset long The offset.
origin SeekOrigin The origin.
리턴 long

SetLength() 공개 메소드

This method is not supported.
public SetLength ( long value ) : void
value long The value.
리턴 void

Write() 공개 메소드

Writes a block of bytes to the current stream using data read from a buffer.
public Write ( byte buffer, int offset, int count ) : void
buffer byte The buffer to write data from.
offset int The zero-based byte offset in at which to begin copying bytes to the current stream.
count int The maximum number of bytes to write.
리턴 void