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