Table of Contents

Class ReadOnlyWrapperStream

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

Wrapper stream that only supports reading

public class ReadOnlyWrapperStream : WrapperStream, IDisposable, IAsyncDisposable
Inheritance
ReadOnlyWrapperStream
Implements
Derived
Inherited Members

Constructors

ReadOnlyWrapperStream(Stream)

public ReadOnlyWrapperStream(Stream baseStream)

Parameters

baseStream Stream

Properties

CanRead

Gets a value indicating whether the current stream supports reading. True if the stream supports reading; otherwise, false.

public override bool CanRead { get; }

Property Value

bool

CanSeek

Gets a value indicating whether the current stream supports seeking. True if the stream supports seeking; otherwise, false.

public override bool CanSeek { get; }

Property Value

bool

CanWrite

Gets a value indicating whether the current stream supports writing. True if the stream supports writing; otherwise, false.

public override bool CanWrite { get; }

Property Value

bool

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; set; }

Property Value

long

Methods

BeginWrite(byte[], int, int, AsyncCallback, object)

public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)

Parameters

buffer byte[]
offset int
count int
callback AsyncCallback
state object

Returns

IAsyncResult

EndWrite(IAsyncResult)

public override void EndWrite(IAsyncResult asyncResult)

Parameters

asyncResult IAsyncResult

Flush()

Clears all buffers for this stream and causes any buffered data to be written to the underlying device.

public override void Flush()

Seek(long, SeekOrigin)

public override long Seek(long offset, SeekOrigin origin)

Parameters

offset long
origin SeekOrigin

Returns

long

SetLength(long)

public override void SetLength(long value)

Parameters

value long

Write(byte[], int, int)

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

Parameters

buffer byte[]
offset int
count int