Skip to content

Theraot.Collections.ThreadSafe.ArrayReservoir

Alfonso J. Ramos edited this page Nov 10, 2015 · 2 revisions

ArrayReservoir<T>

This class is internally used as array pool. But since there is no way to enforce correct use* - the buplic interface only offers the EmptyArray property, which will return an array of zero capacity.

*: There is no way to guarantee that you don't keep references to the arrays that has been added to the pool.