C#中获取数组指针再将其转换成IntPtr类型
(2016-08-31 22:10:06)
标签:
c |
分类: C#学习日记 |
byte outputData = new byte[2];
void* p;
IntPtr ptr;
fixed (byte* pc = outputReport)
{
p =
(void*)pc;
ptr = new IntPtr(p);
}
void* p;
IntPtr ptr;
fixed (byte* pc = outputReport)
{
}

加载中…