RandomAccessStreamOverStream RandomAccessStreamOverStream RandomAccessStreamOverStream RandomAccessStreamOverStream RandomAccessStreamOverStream Class

Definition

Provides a Windows Runtime random access stream for an IStream base implementation.

public : sealed class RandomAccessStreamOverStream : IClosable, IInputStream, IOutputStream, IRandomAccessStream
struct winrt::Windows::Storage::Streams::RandomAccessStreamOverStream : IClosable, IInputStream, IOutputStream, IRandomAccessStream
public sealed class RandomAccessStreamOverStream : IDisposable, IInputStream, IOutputStream, IRandomAccessStream
Public NotInheritable Class RandomAccessStreamOverStream Implements IDisposable, IInputStream, IOutputStream, IRandomAccessStream
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The InputStreamOverStream, OutputStreamOverStream, and RandomAccessStreamOverStream classes are interop helpers to convert between the Windows Runtime stream types, which are natively asynchronous, and the Component Object Model (COM) IStream types, which are natively synchronous.

These helper classes make it easier for to reuse legacy code when you transition to the Windows Runtime stream types.

Properties

CanRead CanRead CanRead CanRead CanRead

Gets a value that indicates whether the stream can be read from.

CanWrite CanWrite CanWrite CanWrite CanWrite

Gets a value that indicates whether the stream can be written to.

Position Position Position Position Position

Gets the byte offset of the stream.

Size Size Size Size Size

Gets or sets the size of the random access stream.

Methods

CloneStream() CloneStream() CloneStream() CloneStream() CloneStream()

Creates a new instance of a IRandomAccessStream over the same resource as the current stream.

Close() Close() Close() Close() Close()

Closes the current stream and releases system resources.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FlushAsync() FlushAsync() FlushAsync() FlushAsync() FlushAsync()

Flushes data asynchronously in a sequential stream.

GetInputStreamAt(UInt64) GetInputStreamAt(UInt64) GetInputStreamAt(UInt64) GetInputStreamAt(UInt64) GetInputStreamAt(UInt64)

Returns an input stream at a specified location in a stream.

GetOutputStreamAt(UInt64) GetOutputStreamAt(UInt64) GetOutputStreamAt(UInt64) GetOutputStreamAt(UInt64) GetOutputStreamAt(UInt64)

Returns an output stream at a specified location in a stream.

ReadAsync(IBuffer, UInt32, InputStreamOptions) ReadAsync(IBuffer, UInt32, InputStreamOptions) ReadAsync(IBuffer, UInt32, InputStreamOptions) ReadAsync(IBuffer, UInt32, InputStreamOptions) ReadAsync(IBuffer, UInt32, InputStreamOptions)

Returns an asynchronous byte reader object.

Seek(UInt64) Seek(UInt64) Seek(UInt64) Seek(UInt64) Seek(UInt64)

Sets the position of the stream to the specified value.

WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer)

Writes data asynchronously in a sequential stream.

See Also