Guest User

Untitled

a guest
Sep 30th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public unsafe static void* BoxInt32(void* methodTable, uint classSize, int value)
  2. {
  3. Screen.Write((uint)value, 10, 2);
  4. void* memory = AllocateObject(methodTable, classSize);
  5.  
  6. uint* destination = (uint*)memory;
  7. destination[2] = (uint)value;
  8.  
  9. return memory;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment