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 のバッキング メモリを提供するストリーム。

戻り値

指定したメモリ ストリームをサポートしているのと同じメモリによってサポートされている 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 は使用できるバイトだけを表します。

戻り値

指定したメモリ ストリームをサポートするメモリ内の領域によってサポートされる Windows.Storage.Streams.IBuffer インターフェイス。

属性

例外

underlyingStream が null です。

positionInStream または length が 0 (ゼロ) 未満です。

positionInStreamsource の末尾を超えています。

underlyingStream は、基になるメモリ バッファーを公開することはできません。

underlyingStream が閉じられました。

適用対象