WindowsRuntimeBufferExtensions.GetWindowsRuntimeBuffer 메서드

정의

오버로드

GetWindowsRuntimeBuffer(MemoryStream)

지정된 메모리 스트림과 동일한 메모리를 나타내는 Windows.Storage.Streams.IBuffer 인터페이스를 반환합니다.

GetWindowsRuntimeBuffer(MemoryStream, Int32, Int32)

지정된 메모리 스트림을 나타내는 메모리 내 영역을 나타내는 Windows.Storage.Streams.IBuffer 인터페이스를 반환합니다.

GetWindowsRuntimeBuffer(MemoryStream)

중요

이 API는 CLS 규격이 아닙니다.

지정된 메모리 스트림과 동일한 메모리를 나타내는 Windows.Storage.Streams.IBuffer 인터페이스를 반환합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Windows::Storage::Streams::IBuffer ^ GetWindowsRuntimeBuffer(System::IO::MemoryStream ^ underlyingStream);
[System.CLSCompliant(false)]
public static Windows.Storage.Streams.IBuffer GetWindowsRuntimeBuffer (this System.IO.MemoryStream underlyingStream);
[<System.CLSCompliant(false)>]
static member GetWindowsRuntimeBuffer : System.IO.MemoryStream -> Windows.Storage.Streams.IBuffer
<Extension()>
Public Function GetWindowsRuntimeBuffer (underlyingStream As MemoryStream) As IBuffer

매개 변수

underlyingStream
MemoryStream

IBuffer의 백업 메모리를 제공하는 스트림입니다.

반환

IBuffer

지정된 메모리 스트림을 백업하는 동일한 메모리가 지원되는 Windows.Storage.Streams.IBuffer 인터페이스입니다.

특성

적용 대상

GetWindowsRuntimeBuffer(MemoryStream, Int32, Int32)

중요

이 API는 CLS 규격이 아닙니다.

지정된 메모리 스트림을 나타내는 메모리 내 영역을 나타내는 Windows.Storage.Streams.IBuffer 인터페이스를 반환합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Windows::Storage::Streams::IBuffer ^ GetWindowsRuntimeBuffer(System::IO::MemoryStream ^ underlyingStream, int positionInStream, int length);
[System.CLSCompliant(false)]
public static Windows.Storage.Streams.IBuffer GetWindowsRuntimeBuffer (this System.IO.MemoryStream underlyingStream, int positionInStream, int length);
[<System.CLSCompliant(false)>]
static member GetWindowsRuntimeBuffer : System.IO.MemoryStream * int * int -> Windows.Storage.Streams.IBuffer
<Extension()>
Public Function GetWindowsRuntimeBuffer (underlyingStream As MemoryStream, positionInStream As Integer, length As Integer) As IBuffer

매개 변수

underlyingStream
MemoryStream

IBuffer와 메모리를 공유하는 스트림입니다.

positionInStream
Int32

underlyingStream에서 공유 메모리 영역의 위치입니다.

length
Int32

공유 메모리 영역의 최대 크기입니다. positionInStream에서 시작하는 underlyingStream의 바이트 수가 length보다 작은 경우 반환되는 IBuffer는 사용 가능한 바이트만 나타냅니다.

반환

IBuffer

지정된 메모리 스트림을 백업하는 메모리 내의 영역에 의해 지원되는 Windows.Storage.Streams.IBuffer 인터페이스입니다.

특성

예외

underlyingStream가 null입니다.

positionInStream 또는 length가 0보다 작은 경우

positionInStreamsource의 끝을 벗어났습니다.

underlyingStream은 기본 메모리 버퍼를 노출할 수 없습니다.

underlyingStream이 닫힌 경우

적용 대상