Method CopyBlock
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Core.dll
CopyBlock(MemoryBlock, long, MemoryBlock, long, long)
Copies bytes from one area of memory to another. Since this function works with MemoryBlock instances, it does bounds checking.
public static void CopyBlock(MemoryBlock dst, long dstOffset, MemoryBlock src, long srcOffset, long length)
Parameters
dstMemoryBlockThe MemoryBlock to copy bytes to.
dstOffsetlongThe offset within dst to copy bytes to.
srcMemoryBlockThe MemoryBlock to copy bytes from.
srcOffsetlongThe offset within src to copy bytes from.
lengthlongThe number of bytes to copy.