Class MemoryPool<T>
Very basic object pool class.
Inherited Members
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class MemoryPool<T>
where T : class, new()
Type Parameters
Name | Description |
---|---|
T |
Constructors
MemoryPool()
Declaration
public MemoryPool()
Methods
Allocate()
Declaration
public T Allocate()
Returns
Type | Description |
---|---|
T |
FreeAll()
Declaration
public void FreeAll()
Return(T)
Declaration
public void Return(T obj)
Parameters
Type | Name | Description |
---|---|---|
T | obj |
ReturnAll()
Declaration
public void ReturnAll()