Class PartialReadOnlyWrapperStream
Partial wrapper stream that only supports reading
public class PartialReadOnlyWrapperStream : ReadOnlyWrapperStream, IDisposable, IAsyncDisposable
  - Inheritance
 - 
      
      
      
      
      
      PartialReadOnlyWrapperStream
 
- Implements
 
- Inherited Members
 
Constructors
PartialReadOnlyWrapperStream(Stream, long)
public PartialReadOnlyWrapperStream(Stream baseStream, long size)
  Parameters
Properties
Length
Gets the length in bytes of the stream.
public override long Length { get; }
  Property Value
Position
Gets or sets the position within the current stream.
public override long Position { get; }
  Property Value
Methods
Read(byte[], int, int)
public override int Read(byte[] buffer, int offset, int count)
  Parameters
Returns
ReadAsync(byte[], int, int, CancellationToken)
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
  Parameters
bufferbyte[]offsetintcountintcancellationTokenCancellationToken