2 writes to Spans
Microsoft.ML.Data (2)
DataLoadSave\Text\TextLoaderParser.cs (2)
613
Spans
= new ReadOnlyMemory<char>[8];
643
Array.Resize(ref
Spans
, size);
15 references to Spans
Microsoft.ML.Data (15)
DataLoadSave\Text\TextLoaderParser.cs (15)
620
Contracts.AssertValue(
Spans
);
622
Contracts.Assert(0 <= Count && Count <= Indices.Length && Indices.Length <=
Spans
.Length);
628
Contracts.AssertValue(
Spans
);
642
if (
Spans
.Length < size)
652
Array.Clear(
Spans
, 0, Count);
818
bldr.AddFeature(indexBase + srcCur, ReadOnlyMemoryUtils.TrimWhiteSpace(header.
Spans
[isrc]));
999
Fields.
Spans
[Fields.Count] = scan.Span;
1005
Fields.
Spans
[Fields.Count] = _blank;
1045
Fields.
Spans
[Fields.Count] = scan.Span;
1071
var spanT = Fields.
Spans
[Fields.Count - 1];
1125
Fields.
Spans
[Fields.Count] = scan.Span;
1431
if (!v.Consume(irow, indexBase + srcCur, ref fields.
Spans
[isrc]))
1434
throw Contracts.Except($"Could not parse value {fields.
Spans
[isrc]} in slot {indexBase + srcCur} of column {info.Name} in line {line}");
1467
if (!v.Consume(irow, 0, ref vs.
Spans
[isrc]))
1470
throw Contracts.Except($"Could not parse value {vs.
Spans
[isrc]} in line {line}, column {info.Name}");