Table of Contents

Constructor MemoryBlock

Namespace
PaintDotNet
Assembly
PaintDotNet.Core.dll

MemoryBlock(long)

Creates a new MemoryBlock instance and allocates the requested number of bytes.

public MemoryBlock(long bytes)

Parameters

bytes long

MemoryBlock(long, MemoryBlockAllocFlags)

public MemoryBlock(long bytes, MemoryBlockAllocFlags flags)

Parameters

bytes long
flags MemoryBlockAllocFlags

MemoryBlock(MemoryBlock, long, long)

Creates a new MemoryBlock instance that refers to part of another MemoryBlock. The other MemoryBlock is the parent, and this new instance is the child.

public MemoryBlock(MemoryBlock parentBlock, long offset, long length)

Parameters

parentBlock MemoryBlock
offset long
length long