Access memory address in c#

前端 未结 4 1237
孤城傲影
孤城傲影 2021-02-04 19:34

I am interfacing with an ActiveX component that gives me a memory address and the number of bytes.

How can I write a C# program that will access the bytes starting at

4条回答
  •  野性不改
    2021-02-04 20:14

    You can use Marshal.Copy to copy the data from native memory into an managed array. This way you can then use the data in managed code without using unsafe code.

提交回复
热议问题