public void Invoke(byte *ptr) { if (method != 0) { Caller.CallCode(method, null);// (uint)ptr); } }
public static void Update() { if (UpdatePointer == 0) { Utils.memcpy(Settings.DisplayVRam, Settings.DisplayBuffer, Settings.DisplayWidth * Settings.DisplayHeight); } else { Caller.CallCode(UpdatePointer, null); } }
public static void CallRaw(byte[] aData) { unsafe { byte *data = (byte *)Cosmos.Core.Heap.MemAlloc((uint)aData.Length); for (int i = 0; i < aData.Length; i++) { data[i] = aData[i]; } Caller call = new Caller(); call.CallCode((uint)&data[0]); } }