8 writes to _entries
Microsoft.ML.Core (8)
Utilities\BigArray.cs (8)
98_entries = new T[0][]; 110_entries = new T[blockCount][]; 220_entries = new T[0][]; 233_entries = new T[newBlockCount][]; 252Array.Resize(ref _entries, newBlockCount); 280Array.Resize(ref _entries, newBlockCount); 307Array.Resize(ref _entries, maMax + 1); 332Utils.EnsureSize(ref _entries, maMax + 1, BlockSize);
48 references to _entries
Microsoft.ML.Core (48)
Utilities\BigArray.cs (48)
76return _entries[bI][idx]; 83_entries[bI][idx] = value; 112_entries[i] = new T[BlockSize]; 114_entries[blockCount - 1] = new T[lastBlockSize]; 128manip(index, ref _entries[bI][idx]); 153var block = _entries[bI]; 182var block = _entries[bI]; 235_entries[i] = new T[BlockSize]; 237_entries[newBlockCount - 1] = new T[newLastBlockLength]; 242int curBlockCount = _entries.GetLength(0); 244int curLastBlockSize = Utils.Size(_entries[curBlockCount - 1]); 253Array.Resize(ref _entries[newBlockCount - 1], newLastBlockLength); 266Contracts.Assert(_entries.Length == 1); 267Array.Resize(ref _entries[0], Math.Min(BlockSize, Math.Max(2 * curLastBlockSize, newLastBlockLength))); 272Array.Resize(ref _entries[newBlockCount - 1], BlockSize); 281Array.Resize(ref _entries[curBlockCount - 1], BlockSize); 283_entries[bI] = new T[BlockSize]; 296Contracts.Assert(Utils.Size(_entries) == 0); 304Contracts.Assert(0 < miLim && miLim <= Utils.Size(_entries[maMax])); 305if (Utils.Size(_entries[maMax]) != miLim) 306Array.Resize(ref _entries[maMax], miLim); 338Utils.EnsureSize(ref _entries[maMax], maMax >= FullAllocationBeyond ? BlockSize : miLim, BlockSize); 339src.CopyTo(_entries[maMax].AsSpan(miMin)); 344Utils.EnsureSize(ref _entries[maMin], BlockSize, BlockSize); 346src.Slice(0, firstSubArrayCapacity).CopyTo(_entries[maMin].AsSpan(miMin)); 347Contracts.Assert(_entries[maMax] == null); 348Utils.EnsureSize(ref _entries[maMax], maMax >= FullAllocationBeyond ? BlockSize : miLim, BlockSize); 349src.Slice(firstSubArrayCapacity, miLim).CopyTo(_entries[maMax]); 356Utils.EnsureSize(ref _entries[maMin], BlockSize, BlockSize); 358src.Slice(0, srcSoFar).CopyTo(_entries[maMin].AsSpan(miMin)); 362Contracts.Assert(_entries[major] == null); 363_entries[major] = new T[BlockSize]; 364src.Slice(srcSoFar, BlockSize).CopyTo(_entries[major]); 370Contracts.Assert(_entries[maMax] == null); 371Utils.EnsureSize(ref _entries[maMax], maMax >= FullAllocationBeyond ? BlockSize : miLim, BlockSize); 372src.Slice(srcSoFar, miLim).CopyTo(_entries[maMax]); 407Contracts.Assert(miLim <= Utils.Size(_entries[maMax])); 408_entries[maMax].AsSpan(miMin, length).CopyTo(dst); 413Contracts.Assert(BlockSize <= Utils.Size(_entries[maMin])); 414_entries[maMin].AsSpan(miMin, BlockSize - miMin).CopyTo(dst); 415Contracts.Assert(miLim <= Utils.Size(_entries[maMax])); 416_entries[maMax].AsSpan(0, miLim).CopyTo(dst.Slice(BlockSize - miMin)); 423Contracts.Assert(BlockSize <= Utils.Size(_entries[maMin])); 425_entries[maMin].AsSpan(miMin, dstSoFar).CopyTo(dst); 429Contracts.Assert(BlockSize <= Utils.Size(_entries[major])); 430_entries[major].AsSpan(0, BlockSize).CopyTo(dst.Slice(dstSoFar)); 436Contracts.Assert(miLim <= Utils.Size(_entries[maMax])); 437_entries[maMax].AsSpan(0, miLim).CopyTo(dst.Slice(dstSoFar));