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