System.IO.Compression.DeflateStream.BeginRead C# (CSharp) Method

BeginRead() public method

public BeginRead ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
buffer byte
offset int
count int
asyncCallback AsyncCallback
asyncState object
return IAsyncResult
        public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState) =>
            TaskToApm.Begin(ReadAsync(buffer, offset, count, CancellationToken.None), asyncCallback, asyncState);

Usage Example

Example #1
0
 public override IAsyncResult BeginRead(byte[] array, int offset, int count, AsyncCallback asyncCallback, object asyncState)
 {
     if (deflateStream == null)
     {
         throw new InvalidOperationException(SR.GetString(SR.ObjectDisposed_StreamClosed));
     }
     return(deflateStream.BeginRead(array, offset, count, asyncCallback, asyncState));
 }
All Usage Examples Of System.IO.Compression.DeflateStream::BeginRead