locked
C++ buffer 转化为byte数组

    Question

  •    DataReader dataReader = DataReader.FromBuffer(buffer);
                byte[] bytes = new byte[buffer.Length];
                dataReader.ReadBytes(bytes);
    上面的C# 代码用C++ 怎么写??
    Friday, June 13, 2014 7:40 AM

Answers

  • This is an English language forum. Please post your questions in English. There are Chinese language forums if you prefer to post in Chinese.

    Also please don't post the same question in multiple threads.

    That said, I suspect you're looking for the IBufferByteAccess  interface. 



    Friday, June 13, 2014 2:36 PM
    Owner