Example #1
0
 public void Invoke(byte *ptr)
 {
     if (method != 0)
     {
         Caller.CallCode(method, null);// (uint)ptr);
     }
 }
Example #2
0
 public static void Update()
 {
     if (UpdatePointer == 0)
     {
         Utils.memcpy(Settings.DisplayVRam, Settings.DisplayBuffer, Settings.DisplayWidth * Settings.DisplayHeight);
     }
     else
     {
         Caller.CallCode(UpdatePointer, null);
     }
 }
Example #3
0
 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]);
     }
 }