1 write to _length
Microsoft.ML.Data (1)
Data\BufferBuilder.cs (1)
110_length = length;
27 references to _length
Microsoft.ML.Data (27)
Data\BufferBuilder.cs (27)
55public int Length => _length; 76Contracts.Assert(0 <= _ifeatCur && 0 <= _cfeatCur && _ifeatCur <= _length - _cfeatCur); 79Contracts.Assert(_count == _length); 83Contracts.Assert(_indices != null || _length == 0); 119if (_values.Length < _length) 120_values = new T[_length]; 122Array.Clear(_values, 0, _length); 124_count = _length; 145Contracts.Assert(0 <= ifeat && 0 <= cfeat && ifeat <= _length - cfeat); 177if (_count < _length) 181Array.Resize(ref _values, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 183Array.Resize(ref _indices, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 200if (_count >= _length / 2 - 1) 209Array.Resize(ref _values, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 211Array.Resize(ref _indices, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 309if (_count >= _length / 2) 322if (_values.Length < _length) 323Array.Resize(ref _values, _length); 325int ivDst = _length; 340_count = _length; 395Contracts.Check(0 <= index && index <= _length - buffer.Length); 439VBufferUtils.Resize(ref buffer, _length, 0); 447if (!_dense && _count >= _length / 2) 453var editor = VBufferEditor.Create(ref buffer, _length); 454_values.AsSpan(0, _length).CopyTo(editor.Values); 459Contracts.Assert(_count < _length); 460var editor = VBufferEditor.Create(ref buffer, _length, _count);