InMemoryRandomAccessStream 클래스

정의

디스크가 아닌 메모리에 저장된 입력 및 출력 스트림의 데이터에 대한 임의 액세스를 제공합니다.

public ref class InMemoryRandomAccessStream sealed : IClosable, IRandomAccessStream
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class InMemoryRandomAccessStream final : IClosable, IRandomAccessStream
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class InMemoryRandomAccessStream final : IClosable, IRandomAccessStream
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class InMemoryRandomAccessStream : System.IDisposable, IRandomAccessStream
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class InMemoryRandomAccessStream : System.IDisposable, IRandomAccessStream
function InMemoryRandomAccessStream()
Public NotInheritable Class InMemoryRandomAccessStream
Implements IDisposable, IRandomAccessStream
상속
Object Platform::Object IInspectable InMemoryRandomAccessStream
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

예제

DataReader 항목의 코드 예제를 참조하세요.

생성자

InMemoryRandomAccessStream()

InMemoryRandomAccessStream 클래스의 새 instance 만듭니다.

속성

CanRead

스트림을 읽을 수 있는지 여부를 나타내는 값을 가져옵니다.

CanWrite

스트림을 쓸 수 있는지 여부를 나타내는 값을 가져옵니다.

Position

스트림의 바이트 오프셋을 가져옵니다.

Size

임의 액세스 스트림의 크기를 가져오거나 설정합니다.

메서드

CloneStream()

현재 스트림과 동일한 리소스에 대해 IRandomAccessStream의 새 instance 만듭니다.

Close()

현재 스트림을 닫고 시스템 리소스를 해제합니다.

Dispose()

관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 애플리케이션 정의 작업을 수행합니다.

FlushAsync()

순차 스트림에서 데이터를 비동기적으로 플러시합니다.

GetInputStreamAt(UInt64)

스트림의 지정된 위치에 있는 입력 스트림을 반환합니다.

GetOutputStreamAt(UInt64)

스트림의 지정된 위치에 출력 스트림을 반환합니다.

ReadAsync(IBuffer, UInt32, InputStreamOptions)

비동기 바이트 판독기 개체를 반환합니다.

Seek(UInt64)

스트림의 위치를 지정된 값으로 설정합니다.

WriteAsync(IBuffer)

순차 스트림에 데이터를 비동기적으로 씁니다.

적용 대상