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