WindowsRuntimeBufferExtensions.GetWindowsRuntimeBuffer Method (MemoryStream)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns a Windows.Storage.Streams.IBuffer interface that represents the same memory as the specified memory stream.
Assembly: System.Runtime.WindowsRuntime (in System.Runtime.WindowsRuntime.dll)
[CLSCompliantAttribute(false)] public static IBuffer GetWindowsRuntimeBuffer( this MemoryStream underlyingStream )
- Type: System.IO.MemoryStream
The stream that provides the backing memory for the IBuffer.
Return ValueType: Windows.Storage.Streams.IBuffer
A Windows.Storage.Streams.IBuffer interface that is backed by the same memory that backs the specified memory stream.