Summary
Convenience methods for accessing
Animancer.ObjectPool`1
.- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["ObjectPool"]
class Type type-node
Syntax
public static class ObjectPool
Fields
Name | Constant Value | Summary |
---|---|---|
NotClearError | They must be cleared before being released to the pool and not modified after that. |
An error message for when something has been modified after being released to the pool.
static
|
Methods
Name | Value | Summary |
---|---|---|
Acquire |
T |
Returns a spare item if there are any, or creates a new one.
static
|
Acquire |
void |
Returns a spare
System.Collections.Generic.HashSet`1 if there are any, or creates a new one.static
|
Acquire |
void |
Returns a spare
System.Collections.Generic.List`1 if there are any, or creates a new one.static
|
Acquire |
void |
Returns a spare `item` if there are any, or creates a new one.
static
|
AcquireList |
List |
Returns a spare
System.Collections.Generic.List`1 if there are any, or creates a new one.static
|
AcquireSet |
HashSet |
Returns a spare
System.Collections.Generic.HashSet`1 if there are any, or creates a new one.static
|
AcquireStringBuilder |
StringBuilder |
Returns a spare
System.Text.StringBuilder if there are any, or creates a new one.static
|
Release |
void |
Sets the
System.Text.StringBuilder.Length = 0 and adds it to the list of spares so it can be reused.static
|
Release |
void |
Clears the `set` and adds it to the list of spares so it can be reused.
static
|
Release |
void |
Clears the `set`, adds it to the list of spares so it can be reused, and sets it to
null .static
|
Release |
void |
Clears the `list` and adds it to the list of spares so it can be reused.
static
|
Release |
void |
Clears the `list`, adds it to the list of spares so it can be reused, and sets it to
null .static
|
Release |
void |
Adds the `item` to the list of spares so it can be reused.
static
|
Release |
void |
Adds the `item` to the list of spares so it can be reused and sets it to
null .static
|
ReleaseToString |
string |
[Animancer Extension] Calls
System.Text.StringBuilder.ToString and Animancer.ObjectPool.Release(System.Text.StringBuilder) .static
|