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