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
FontEnvironmentPooledFontEnvironment
Constructors
| Name | Description |
|---|---|
| PooledFontEnvironment(FontResourceLimits, long) | Initializes a new instance of the PooledFontEnvironment class. |
PooledFontEnvironment(FontResourceLimits, long)
PooledFontEnvironment.csInitializes a new instance of the PooledFontEnvironment class.
public PooledFontEnvironment(FontResourceLimits limits, long maxLiveAllocationBytes)Parameters
limitsFontResourceLimits- The limits that bound the work of the font code.
maxLiveAllocationByteslong- The largest number of bytes the temporary buffers of one operation may hold at the same time.
Properties
| Name | Description |
|---|---|
| Limits | Gets the limits. |
Limits
PooledFontEnvironment.csMethods
| Name | Description |
|---|---|
| CreateAllocator(string) | Creates the allocator of an operation: the temporary buffers of the operation are rented from it. |
CreateAllocator(string)
PooledFontEnvironment.csCreates the allocator of an operation: the temporary buffers of the operation are rented from it.
public override FontAllocator CreateAllocator(string name)