Provides random access of data in input and output streams.
The RandomAccessStream class has these types of members:
The RandomAccessStream class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|CopyAndCloseAsync||Copies a source stream to a destination stream and waits for the copy operation to complete.|
|CopyAsync(IInputStream, IOutputStream)||Copies a source stream to a destination stream.|
|CopyAsync(IInputStream, IOutputStream, UInt64)||Copies the specified number of bytes from a source stream to a destination stream.|
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 How to encode a new image.
Minimum supported client
|Windows 8 [Windows Store apps only]|
Minimum supported server
|Windows Server 2012 [Windows Store apps only]|
Minimum supported phone
|Windows Phone 8|
- How to encode a new image
- Reading and writing data sample
Build date: 11/16/2013