C# 클래스 NSupport.StreamTaskParallelism

Provides Task Parallel Library usage to wrap Asynchronous Programming Model pattern.
파일 보기 프로젝트 열기: jittuu/NSupport

공개 메소드들

메소드 설명
ReadAsync ( this stream, byte buffer, int offset, int count ) : Task

Begins an asynchronous read operation.

WriteAsync ( this stream, byte buffer, int offset, int count ) : System.Threading.Tasks.Task

Begins an asynchronous write operation.

메소드 상세

ReadAsync() 공개 정적인 메소드

Begins an asynchronous read operation.
public static ReadAsync ( this stream, byte buffer, int offset, int count ) : Task
stream this A instance.
buffer byte The buffer to read the data into.
offset int The byte offset in buffer at which to begin writing data read from the stream.
count int The maximum number of bytes to read.
리턴 Task

WriteAsync() 공개 정적인 메소드

Begins an asynchronous write operation.
public static WriteAsync ( this stream, byte buffer, int offset, int count ) : System.Threading.Tasks.Task
stream this
buffer byte The buffer to write data from.
offset int The byte offset in buffer from which to begin writing.
count int The maximum number of bytes to write.
리턴 System.Threading.Tasks.Task