Table of Contents

Class PartialReadOnlyWrapperStream

Namespace
Amazon.Runtime.Internal.Util
Assembly
AWSSDK.Core.dll

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

baseStream Stream
size long

Properties

Length

Gets the length in bytes of the stream.

public override long Length { get; }

Property Value

long

Position

Gets or sets the position within the current stream.

public override long Position { get; }

Property Value

long

Methods

Read(byte[], int, int)

public override int Read(byte[] buffer, int offset, int count)

Parameters

buffer byte[]
offset int
count int

Returns

int

ReadAsync(byte[], int, int, CancellationToken)

public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)

Parameters

buffer byte[]
offset int
count int
cancellationToken CancellationToken

Returns

Task<int>