C# Class System.Net.BufferedReadStream

Inheritance: System.Net.DelegatedStream
Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
EndRead ( IAsyncResult asyncResult ) : int
Read ( byte buffer, int offset, int count ) : int
ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
ReadByte ( ) : int

Private Methods

Method Description
Append ( byte buffer, int offset, int count ) : void
BufferedReadStream ( Stream stream ) : System
BufferedReadStream ( Stream stream, bool readMore ) : System
Push ( byte buffer, int offset, int count ) : void
ReadMoreAsync ( int bytesAlreadyRead, byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task

Method Details

BeginRead() public method

public BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
return IAsyncResult

EndRead() public method

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

Read() public method

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

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

ReadByte() public method

public ReadByte ( ) : int
return int