Ejemplo n.º 1
0
        public static void DebugSetMemoryState(DebugMemoryType type, byte[] data)
        {
            GCHandle handle = GCHandle.Alloc(data, GCHandleType.Pinned);

            try {
                InteropEmu.DebugSetMemoryStateWrapper(type, handle.AddrOfPinnedObject());
            } finally {
                handle.Free();
            }
        }