Method MemoryCopy
MemoryCopy(void*, void*, long, long)
Copies a number of bytes specified as a long integer value from one address in memory to another. .If some regions of the source area and the destination overlap, the function ensures that the original source bytes in the overlapping region are copied before being overwritten (将指定为长整型值的一些字节从内存中的一个地址复制到另一个地址. 如果源区域的某些区域与目标区域重叠, 函数可确保在覆盖之前复制重叠区域中的原始源字节).
[CLSCompliant(false)]
public static void MemoryCopy(void* source, void* destination, long destinationSizeInBytes, long sourceBytesToCopy)
Parameters
source
void*The address of the bytes to copy (要复制的字节的地址).
destination
void*The target address (目标地址).
destinationSizeInBytes
longThe number of bytes available in the destination memory block (目标内存块中可用的字节数).
sourceBytesToCopy
longThe number of bytes to copy (要复制的字节数).
Exceptions
- ArgumentOutOfRangeException
sourceBytesToCopy is greater than destinationSizeInBytes.
MemoryCopy(void*, void*, ulong, ulong)
Copies a number of bytes specified as a ulong integer value from one address in memory to another. .If some regions of the source area and the destination overlap, the function ensures that the original source bytes in the overlapping region are copied before being overwritten (将指定为无符号长整型值的一些字节从内存中的一个地址复制到另一个地址. 如果源区域的某些区域与目标区域重叠, 函数可确保在覆盖之前复制重叠区域中的原始源字节).
[CLSCompliant(false)]
public static void MemoryCopy(void* source, void* destination, ulong destinationSizeInBytes, ulong sourceBytesToCopy)
Parameters
source
void*The address of the bytes to copy (要复制的字节的地址).
destination
void*The target address (目标地址).
destinationSizeInBytes
ulongThe number of bytes available in the destination memory block (目标内存块中可用的字节数).
sourceBytesToCopy
ulongThe number of bytes to copy (要复制的字节数).
Exceptions
- ArgumentOutOfRangeException
sourceBytesToCopy is greater than destinationSizeInBytes.