Pool that lends values of type T.
More...
|
T | Borrow () |
| Borrows a value from the pool. More...
|
|
Disposable< T > | BorrowDisposable () |
| Borrows a wrapped value from the pool. More...
|
|
| Pool (DelegateFunc< T > create, DelegateAction< T > reset) |
| Creates a new pool with the specified value creation and reset delegates. More...
|
|
void | Release (T value) |
| Relinquishes ownership of the specified value and returns it to the pool. More...
|
|
Pool that lends values of type T.
Smooth.Pools.Pool< T >.Pool |
( |
DelegateFunc< T > |
create, |
|
|
DelegateAction< T > |
reset |
|
) |
| |
|
inline |
Creates a new pool with the specified value creation and reset delegates.
T Smooth.Pools.Pool< T >.Borrow |
( |
| ) |
|
|
inline |
Borrows a value from the pool.
Disposable<T> Smooth.Pools.Pool< T >.BorrowDisposable |
( |
| ) |
|
|
inline |
Borrows a wrapped value from the pool.
void Smooth.Pools.Pool< T >.Release |
( |
T |
value | ) |
|
|
inline |
Relinquishes ownership of the specified value and returns it to the pool.
int Smooth.Pools.Pool< T >.Allocated |
|
get |
int Smooth.Pools.Pool< T >.Size |
|
get |
The documentation for this class was generated from the following file:
- KSP/Assets/Scripts/Util Scripts/SmoothFoundations/Pools/Pool.cs