FontAllocator Class

The storage of the temporary buffers of an operation of the font code, bounded by a number of live bytes.

public abstract class FontAllocator

Constructors

NameDescription
FontAllocator()

FontAllocator()

protected FontAllocator()

No documentation is available.

Properties

NameDescription
LimitGets the maximum number of bytes that can be rented at the same time.

Limit

Gets the maximum number of bytes that can be rented at the same time.

public abstract long Limit { get; }

Property value

long

Methods

NameDescription
Rent(int, bool)Rents a buffer.
Rent<T>(long)Rents a buffer of elements, set to zero.

Rent overloads

Rent(int, bool)

Rents a buffer.

public abstract FontBuffer Rent(int length, bool clear)
Parameters
length int
The length of the buffer, in bytes.
clear bool
true to set the bytes to zero; otherwise their content is unspecified.
Returns

FontBuffer

Exceptions
FontResourceLimitException
The buffers would exceed FontAllocator.Limit.

Rent<T>(long)

FontAllocator.cs

Rents a buffer of elements, set to zero.

public FontBuffer Rent<T>(long count) where T : unmanaged
Type parameters
T
Parameters
count long
Returns

FontBuffer

Exceptions
FontResourceLimitException
The buffer cannot be allocated, or the buffers would exceed FontAllocator.Limit.