Table of Contents

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 MemoryBlock

The MemoryBlock to copy bytes to.

dstOffset long

The offset within dst to copy bytes to.

src MemoryBlock

The MemoryBlock to copy bytes from.

srcOffset long

The offset within src to copy bytes from.

length long

The number of bytes to copy.