110,536
社区成员
发帖
与我相关
我的任务
分享
public static extern int AddData(IntPtr data);
byte[] a = new byte[] { 44, 55, 66};
IntPtr temp = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(byte) ) *
a.Length);
Marshal.Copy(a, 0, temp, a.Length);
AddData(temp);
Marshal.FreeCoTaskMem(temp);
private static extern int Test(Byte[] map, int size);