Ibuffer转byte[]

byte[] bytes=WindowsRuntimeBufferExtensions.ToArray(buffer,,(int)buffer.Length);

Byte[]转Ibuffer

WindowsRuntimeBufferExtensions.AsBuffer(bytes,,bytes.Length); 

IRandomAccessStream Stream

Stream stream=WindowsRuntimeStreamExtensions.AsStreamForRead(randomStream.GetInputStreamAt(0));
 

IbufferStream

Stream stream = WindowsRuntimeBufferExtensions.AsStream(buffer);
 
 
ByteStream
 
Stream stream = new MemoryStream(bytes);
 
 
IRandomAccessStreamFileInputStream
 
FileInputStream inputStream=randomStream.GetInputStreamAt(0) as FileInputStream;
 
 
IRandomAccessStreamFileOutputStream
 
FileOutputStream outStream= randomStream.GetOutputStreamAt(0) as FileOutputStream;
 
05-02 05:27