Table of Contents

Class SimpleGcMemoryAllocator

Namespace
SixLabors.ImageSharp.Memory
Assembly
SixLabors.ImageSharp.dll

Implements MemoryAllocator by newing up managed arrays on every allocation request.

public sealed class SimpleGcMemoryAllocator : MemoryAllocator
Inheritance
SimpleGcMemoryAllocator
Inherited Members
Extension Methods

Constructors

SimpleGcMemoryAllocator()

public SimpleGcMemoryAllocator()

Methods

Allocate<T>(int, AllocationOptions)

public override IMemoryOwner<T> Allocate<T>(int length, AllocationOptions options = AllocationOptions.None) where T : struct

Parameters

length int
options AllocationOptions

Returns

IMemoryOwner<T>

Type Parameters

T

GetBufferCapacityInBytes()

protected override int GetBufferCapacityInBytes()

Returns

int