4 writes to _bytes
Microsoft.ML.Data (4)
Utils\SequencePool.cs (4)
58
_bytes
= new byte[40];
75
_bytes
= reader.ReadByteArray(_start[_idLim]);
79
Array.Resize(ref
_bytes
, 40);
262
Array.Resize(ref
_bytes
, size);
12 references to _bytes
Microsoft.ML.Data (12)
Utils\SequencePool.cs (12)
78
if (Utils.Size(
_bytes
) < 40)
98
int count = Leb128ToUIntArray(
_bytes
, _start[id], _start[id + 1], ref sequence);
123
writer.WriteBytesNoCount(
_bytes
, _start[_idLim]);
138
Contracts.Assert(0 <= _start[_idLim] && Math.Max(40, _start[_idLim]) <= Utils.Size(
_bytes
));
181
var success = TryDecodeOne(
_bytes
, ref ibCur, _start[idCur + 1], out decoded);
257
if (ibLim >
_bytes
.Length - cbMax)
259
Contracts.Check(
_bytes
.Length != Utils.ArrayMaxSize, "Cannot allocate memory for the sequence pool");
260
long newSize = Math.Max((long)
_bytes
.Length +
_bytes
.Length / 2, ibLim + cbMax);
265
Contracts.Assert(ibLim <=
_bytes
.Length - cbMax);
273
UIntArrayToLeb128(sequence, min, lim,
_bytes
, ref _start[_idLim]);
303
return Leb128ToUIntArray(
_bytes
, _start[id], _start[id + 1], ref sequence);