IronPython.Modules.MemoryHolder.CopyTo C# (CSharp) Method

CopyTo() public method

Copies memory from one location to another keeping the associated memory holders alive during the operation.
public CopyTo ( MemoryHolder destAddress, int writeOffset, int size ) : void
destAddress MemoryHolder
writeOffset int
size int
return void
        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);
        }