CopyFrom() public method

Copies the data in data into this MemoryHolder.
public CopyFrom ( IntPtr source, IntPtr size ) : void
source System.IntPtr
size System.IntPtr
return void
Beispiel #1
0
        public static object CreateMemoryHolder(IntPtr data, int size)
        {
            var res = new MemoryHolder(size);

            res.CopyFrom(data, new IntPtr(size));
            return(res);
        }
Beispiel #2
0
 public static object CreateMemoryHolder(IntPtr data, int size) {
     var res = new MemoryHolder(size);
     res.CopyFrom(data, new IntPtr(size));
     return res;
 }