3 writes to _count
Microsoft.ML.Data (3)
DataLoadSave\Text\TextLoaderParser.cs (3)
352
_count
= 0;
375
_count
++;
403
_count
= _size;
26 references to _count
Microsoft.ML.Data (26)
DataLoadSave\Text\TextLoaderParser.cs (26)
335
Contracts.Assert(0 <=
_count
);
336
Contracts.Assert(
_count
<= _size);
337
Contracts.Assert(
_count
<= _values.Length);
339
if (
_count
< _size)
343
Contracts.Assert(
_count
<= _size / 2);
344
Contracts.Assert(
_count
<= _indices.Length);
364
if (
_count
< _size)
366
if (
_count
< _size / 2)
369
if (_values.Length <=
_count
)
370
Array.Resize(ref _values, 2 *
_count
);
371
if (_indices.Length <=
_count
)
372
Array.Resize(ref _indices, 2 *
_count
);
373
_values[
_count
] = tmp;
374
_indices[
_count
] = index;
383
Array.Clear(_values,
_count
, _size -
_count
);
386
if (_values.Length >
_count
)
387
Array.Clear(_values,
_count
, _values.Length -
_count
);
390
for (int ii =
_count
; --ii >= 0;)
408
Contracts.Assert(
_count
== _size);
419
if (
_count
== 0)
425
var editor = VBufferEditor.Create(ref dst, _size,
_count
);
426
_values.AsSpan(0,
_count
).CopyTo(editor.Values);
427
if (
_count
== _size)
433
_indices.AsSpan(0,
_count
).CopyTo(editor.Indices);