111,094
社区成员




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);