Skip to content

Commit

Permalink
CryptoStream Memory-based ReadAsync/WriteAsync overrides
Browse files Browse the repository at this point in the history
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Jeremy Barton <[email protected]>
  • Loading branch information
3 people authored Feb 26, 2021
1 parent d0616f8 commit a7669a7
Show file tree
Hide file tree
Showing 2 changed files with 185 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public CryptoStream(System.IO.Stream stream, System.Security.Cryptography.ICrypt
public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback? callback, object? state) { throw null; }
public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback? callback, object? state) { throw null; }
public void Clear() { }
public override void CopyTo(System.IO.Stream destination, int bufferSize) { throw null; }
public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; }
protected override void Dispose(bool disposing) { }
public override System.Threading.Tasks.ValueTask DisposeAsync() { throw null; }
public override int EndRead(System.IAsyncResult asyncResult) { throw null; }
Expand All @@ -86,11 +88,13 @@ public void FlushFinalBlock() { }
public System.Threading.Tasks.ValueTask FlushFinalBlockAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public override int Read(byte[] buffer, int offset, int count) { throw null; }
public override System.Threading.Tasks.Task<int> ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
public override System.Threading.Tasks.ValueTask<int> ReadAsync(System.Memory<byte> buffer, System.Threading.CancellationToken cancellationToken = default) { throw null; }
public override int ReadByte() { throw null; }
public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; }
public override void SetLength(long value) { }
public override void Write(byte[] buffer, int offset, int count) { }
public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; }
public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken = default) { throw null; }
public override void WriteByte(byte value) { }
}
public enum CryptoStreamMode
Expand Down
Loading

0 comments on commit a7669a7

Please sign in to comment.