Marshal.Copy将指针拷贝给数组
lpStatuss是一个UNITSTATUS*的指针类型实例,并包含SensorDust字段//定义一个数组类型byte[] SensorDust = new byte[30]//将指针类型拷贝到数组Marshal.Copy(SensorDust, 0, new IntPtr(lpStatus->SensorDust), SensorDust.Length);转载于:https...