3 writes to _indices
Microsoft.ML.Data (3)
Data\BufferBuilder.cs (3)
127_indices = new int[8]; 183Array.Resize(ref _indices, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 211Array.Resize(ref _indices, Math.Max(Math.Min(_length, checked(_count * 2)), 8));
28 references to _indices
Microsoft.ML.Data (28)
Data\BufferBuilder.cs (28)
83Contracts.Assert(_indices != null || _length == 0); 84Contracts.Assert(Utils.Size(_indices) >= _count); 126else if (_indices == null) 174Contracts.Assert(_indices != null); 182if (_indices.Length <= _count) 186_indices[_count] = index; 210if (_indices.Length <= _count) 213if (_count >= InsertThreshold && _indices[_count - InsertThreshold] > index) 216_indices[_count] = index; 229int diff = _indices[ivDst] - index; 240Contracts.Assert(ivDst < 0 || _indices[ivDst] < index); 242Contracts.Assert(ivDst == _count || _indices[ivDst] > index); 247_indices[i + 1] = _indices[i]; 250_indices[ivDst] = index; 267Array.Sort(_indices, _values, 0, _count); 286_indices[ivDst++] = _indices[ivSrc]; 290if (_indices[ivDst - 1] == _indices[ivSrc]) 299_indices[ivDst] = _indices[ivSrc]; 329int index = _indices[iivSrc]; 370int iv = Utils.FindIndexSorted(_indices, 0, _count, ifeat); 371Contracts.Assert(iv == 0 || ifeat > _indices[iv - 1]); 375Contracts.Assert(ifeat <= _indices[iv]); 376if (ifeat == _indices[iv]) 462_indices.AsSpan(0, _count).CopyTo(editor.Indices);