CopyMemory() private method

private CopyMemory ( IntPtr destination, IntPtr source, IntPtr Length ) : void
destination System.IntPtr
source System.IntPtr
Length System.IntPtr
return void
 /// <summary>
 /// Copies memory from one location to another keeping the associated memory holders alive during the
 /// operation.
 /// </summary>
 public void CopyTo(MemoryHolder /*!*/ destAddress, int writeOffset, int size)
 {
     NativeFunctions.CopyMemory(destAddress._data.Add(writeOffset), _data, new IntPtr(size));
     GC.KeepAlive(destAddress);
     GC.KeepAlive(this);
 }
 /// <summary>
 /// Copies the data in data into this MemoryHolder.
 /// </summary>
 public void CopyFrom(IntPtr source, IntPtr size)
 {
     NativeFunctions.CopyMemory(_data, source, size);
     GC.KeepAlive(this);
 }