Getting an array of bytes out of Windows::Storage::Streams::IBuffer

后端 未结 7 1243
囚心锁ツ
囚心锁ツ 2020-12-01 11:22

I have an object that implements the interface Windows::Storage::Streams::IBuffer, and I want to get an array of bytes out of it, however while looking at the d

7条回答
  •  有刺的猬
    2020-12-01 11:51

    Use the extension method like a static method:

    IBuffer *buffer;
    array^ result= System::Runtime::InteropServices::WindowsRuntime::WindowsRuntimeBufferExtensions::ToArray(buffer);
    

提交回复
热议问题