public static void MemMove(void *a, void *b, long size) { using (var temp = new PinnedArray <byte>(size)) { Memcpy(temp.Ptr, b, size); Memcpy(a, temp.Ptr, size); } }
public static void *Malloc(long size) { var result = new PinnedArray <byte>(size); _pointers[(long)result.Ptr] = result; return(result.Ptr); }