1 write to _pools
Microsoft.ML.Data (1)
DataLoadSave\Binary\MemoryStreamPool.cs (1)
47
_pools
= new MemoryStreamPool[IndexFor(int.MaxValue) + 1];
5 references to _pools
Microsoft.ML.Data (5)
DataLoadSave\Binary\MemoryStreamPool.cs (5)
51
/// Given a byte size, returns an appropriate index to <see cref="
_pools
"/>.
63
Contracts.Assert(0 <= index && index <
_pools
.Length);
64
if (
_pools
[index] == null)
65
Interlocked.CompareExchange(ref
_pools
[index], new MemoryStreamPool(), null);
66
return
_pools
[index];