4 writes to _start
Microsoft.ML.Data (4)
Utils\SequencePool.cs (4)
56_start = new int[11]; 72_start = reader.ReadIntArray(_idLim + 1); 77Array.Resize(ref _start, 11); 241Array.Resize(ref _start, size);
32 references to _start
Microsoft.ML.Data (32)
Utils\SequencePool.cs (32)
73Contracts.CheckDecode(Utils.Size(_start) > 0 && _start[0] == 0); 74Contracts.CheckDecode(_start[_idLim] >= 0); 75_bytes = reader.ReadByteArray(_start[_idLim]); 94var cb = _start[_idLim]; 97Contracts.CheckDecode(_start[id] <= _start[id + 1] && _start[id + 1] <= cb); 98int count = Leb128ToUIntArray(_bytes, _start[id], _start[id + 1], ref sequence); 120Contracts.Assert(_start[id] <= _start[id + 1]); 122writer.WriteIntsNoCount(_start.AsSpan(0, _idLim + 1)); 123writer.WriteBytesNoCount(_bytes, _start[_idLim]); 134Contracts.Assert(0 <= _idLim && Math.Max(10, _idLim) <= Utils.Size(_start) - 1); 137Contracts.Assert(_start[0] == 0); 138Contracts.Assert(0 <= _start[_idLim] && Math.Max(40, _start[_idLim]) <= Utils.Size(_bytes)); 165var ibCur = _start[idCur]; 166var ibLim = _start[idCur + 1]; 181var success = TryDecodeOne(_bytes, ref ibCur, _start[idCur + 1], out decoded); 235if (_idLim + 1 >= _start.Length) 237Contracts.Check(_start.Length != Utils.ArrayMaxSize, "Cannot allocate memory for the sequence pool"); 238Contracts.Assert(_idLim + 1 == _start.Length); 239long newSize = (long)_start.Length + _start.Length / 2; 256var ibLim = _start[_idLim]; 272_start[_idLim] = _start[_idLim - 1]; 273UIntArrayToLeb128(sequence, min, lim, _bytes, ref _start[_idLim]); 303return Leb128ToUIntArray(_bytes, _start[id], _start[id + 1], ref sequence);