RandomAccessStream RandomAccessStream RandomAccessStream RandomAccessStream RandomAccessStream Class

Definition

Provides random access of data in input and output streams.

public : static class RandomAccessStream
static struct winrt::Windows::Storage::Streams::RandomAccessStream
public static class RandomAccessStream
Public Shared Class RandomAccessStream
// 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

For more info, see Quickstart: Reading and writing a file, which shows how to read and write bytes to a file by using a RandomAccessStream. To encode an image by using a stream, see Imaging.

Methods

CopyAndCloseAsync(IInputStream, IOutputStream) CopyAndCloseAsync(IInputStream, IOutputStream) CopyAndCloseAsync(IInputStream, IOutputStream) CopyAndCloseAsync(IInputStream, IOutputStream) CopyAndCloseAsync(IInputStream, IOutputStream)

Copies a source stream to a destination stream and waits for the copy operation to complete.

CopyAsync(IInputStream, IOutputStream) CopyAsync(IInputStream, IOutputStream) CopyAsync(IInputStream, IOutputStream) CopyAsync(IInputStream, IOutputStream) CopyAsync(IInputStream, IOutputStream)

Copies a source stream to a destination stream.

CopyAsync(IInputStream, IOutputStream, UInt64) CopyAsync(IInputStream, IOutputStream, UInt64) CopyAsync(IInputStream, IOutputStream, UInt64) CopyAsync(IInputStream, IOutputStream, UInt64) CopyAsync(IInputStream, IOutputStream, UInt64)

Copies the specified number of bytes from a source stream to a destination stream.

See Also