我保留了内存 10 个 128 字节的项目
IntPtr dst = Marshal.AllocHGlobal (10 * 128);
IntPtr src1 = Marshal.AllocHGlobal (128);
// .... init scr1 from DLL
IntPtr src2 = Marshal.AllocHGlobal (128);
// .... init scr2 from DLL
我需要将 128 字节的元素复制到src1指定的偏移量。src2dst
Marshal.Copy不适合此类用途。由于src和dst在非托管内存区。