Пример #1
0
 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);
     }
 }
Пример #2
0
        public static void *Malloc(long size)
        {
            var result = new PinnedArray <byte>(size);

            _pointers[(long)result.Ptr] = result;

            return(result.Ptr);
        }