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 FontAllocatorConstructors
| Name | Description |
|---|---|
| FontAllocator() |
FontAllocator()
protected FontAllocator()No documentation is available.
Properties
| Name | Description |
|---|---|
| Limit | Gets the maximum number of bytes that can be rented at the same time. |
Limit
Methods
| Name | Description |
|---|---|
| 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
lengthint- The length of the buffer, in bytes.
clearbooltrueto set the bytes to zero; otherwise their content is unspecified.
Returns
Exceptions
FontResourceLimitException- The buffers would exceed
FontAllocator.Limit.
Rent<T>(long)
FontAllocator.csRents a buffer of elements, set to zero.
public FontBuffer Rent<T>(long count) where T : unmanagedType parameters
T
Parameters
countlong
Returns
Exceptions
FontResourceLimitException- The buffer cannot be allocated, or the buffers would exceed
FontAllocator.Limit.