C# Class System.IO.Tests.ManuallyReleaseAsyncOperationsStream

Inheritance: MemoryStream
显示文件 Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
FlushAsync ( CancellationToken cancellationToken ) : Task
ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
Release ( ) : void
SetCanSeek ( bool canSeek ) : void
WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task

Method Details

FlushAsync() public method

public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

ReadAsync() public method

public ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
return Task

Release() public method

public Release ( ) : void
return void

SetCanSeek() public method

public SetCanSeek ( bool canSeek ) : void
canSeek bool
return void

WriteAsync() public method

public WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
return Task