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
dst
MemoryBlockThe MemoryBlock to copy bytes to.
dstOffset
longThe offset within dst to copy bytes to.
src
MemoryBlockThe MemoryBlock to copy bytes from.
srcOffset
longThe offset within src to copy bytes from.
length
longThe number of bytes to copy.