PooledFontEnvironment Class

The environment of a caller that has no allocation scopes of its own: the temporary buffers of an operation are rented from the shared array pool, and their live bytes are bounded per operation.

public sealed class PooledFontEnvironment : FontEnvironment
Inheritance
FontEnvironment PooledFontEnvironment

Constructors

NameDescription
PooledFontEnvironment(FontResourceLimits, long)Initializes a new instance of the PooledFontEnvironment class.

PooledFontEnvironment(FontResourceLimits, long)

PooledFontEnvironment.cs

Initializes a new instance of the PooledFontEnvironment class.

public PooledFontEnvironment(FontResourceLimits limits, long maxLiveAllocationBytes)

Parameters

limits FontResourceLimits
The limits that bound the work of the font code.
maxLiveAllocationBytes long
The largest number of bytes the temporary buffers of one operation may hold at the same time.

Properties

NameDescription
LimitsGets the limits.

Gets the limits.

public override FontResourceLimits Limits { get; }

Property value

FontResourceLimits

Methods

NameDescription
CreateAllocator(string)Creates the allocator of an operation: the temporary buffers of the operation are rented from it.

CreateAllocator(string)

PooledFontEnvironment.cs

Creates the allocator of an operation: the temporary buffers of the operation are rented from it.

public override FontAllocator CreateAllocator(string name)

Parameters

name string
The name of the operation, for diagnostics.

Returns

FontAllocator