8 writes to _entries
Microsoft.ML.Core (8)
Utilities\BigArray.cs (8)
98
_entries
= new T[0][];
110
_entries
= new T[blockCount][];
220
_entries
= new T[0][];
233
_entries
= new T[newBlockCount][];
252
Array.Resize(ref
_entries
, newBlockCount);
280
Array.Resize(ref
_entries
, newBlockCount);
307
Array.Resize(ref
_entries
, maMax + 1);
332
Utils.EnsureSize(ref
_entries
, maMax + 1, BlockSize);
48 references to _entries
Microsoft.ML.Core (48)
Utilities\BigArray.cs (48)
76
return
_entries
[bI][idx];
83
_entries
[bI][idx] = value;
112
_entries
[i] = new T[BlockSize];
114
_entries
[blockCount - 1] = new T[lastBlockSize];
128
manip(index, ref
_entries
[bI][idx]);
153
var block =
_entries
[bI];
182
var block =
_entries
[bI];
235
_entries
[i] = new T[BlockSize];
237
_entries
[newBlockCount - 1] = new T[newLastBlockLength];
242
int curBlockCount =
_entries
.GetLength(0);
244
int curLastBlockSize = Utils.Size(
_entries
[curBlockCount - 1]);
253
Array.Resize(ref
_entries
[newBlockCount - 1], newLastBlockLength);
266
Contracts.Assert(
_entries
.Length == 1);
267
Array.Resize(ref
_entries
[0], Math.Min(BlockSize, Math.Max(2 * curLastBlockSize, newLastBlockLength)));
272
Array.Resize(ref
_entries
[newBlockCount - 1], BlockSize);
281
Array.Resize(ref
_entries
[curBlockCount - 1], BlockSize);
283
_entries
[bI] = new T[BlockSize];
296
Contracts.Assert(Utils.Size(
_entries
) == 0);
304
Contracts.Assert(0 < miLim && miLim <= Utils.Size(
_entries
[maMax]));
305
if (Utils.Size(
_entries
[maMax]) != miLim)
306
Array.Resize(ref
_entries
[maMax], miLim);
338
Utils.EnsureSize(ref
_entries
[maMax], maMax >= FullAllocationBeyond ? BlockSize : miLim, BlockSize);
339
src.CopyTo(
_entries
[maMax].AsSpan(miMin));
344
Utils.EnsureSize(ref
_entries
[maMin], BlockSize, BlockSize);
346
src.Slice(0, firstSubArrayCapacity).CopyTo(
_entries
[maMin].AsSpan(miMin));
347
Contracts.Assert(
_entries
[maMax] == null);
348
Utils.EnsureSize(ref
_entries
[maMax], maMax >= FullAllocationBeyond ? BlockSize : miLim, BlockSize);
349
src.Slice(firstSubArrayCapacity, miLim).CopyTo(
_entries
[maMax]);
356
Utils.EnsureSize(ref
_entries
[maMin], BlockSize, BlockSize);
358
src.Slice(0, srcSoFar).CopyTo(
_entries
[maMin].AsSpan(miMin));
362
Contracts.Assert(
_entries
[major] == null);
363
_entries
[major] = new T[BlockSize];
364
src.Slice(srcSoFar, BlockSize).CopyTo(
_entries
[major]);
370
Contracts.Assert(
_entries
[maMax] == null);
371
Utils.EnsureSize(ref
_entries
[maMax], maMax >= FullAllocationBeyond ? BlockSize : miLim, BlockSize);
372
src.Slice(srcSoFar, miLim).CopyTo(
_entries
[maMax]);
407
Contracts.Assert(miLim <= Utils.Size(
_entries
[maMax]));
408
_entries
[maMax].AsSpan(miMin, length).CopyTo(dst);
413
Contracts.Assert(BlockSize <= Utils.Size(
_entries
[maMin]));
414
_entries
[maMin].AsSpan(miMin, BlockSize - miMin).CopyTo(dst);
415
Contracts.Assert(miLim <= Utils.Size(
_entries
[maMax]));
416
_entries
[maMax].AsSpan(0, miLim).CopyTo(dst.Slice(BlockSize - miMin));
423
Contracts.Assert(BlockSize <= Utils.Size(
_entries
[maMin]));
425
_entries
[maMin].AsSpan(miMin, dstSoFar).CopyTo(dst);
429
Contracts.Assert(BlockSize <= Utils.Size(
_entries
[major]));
430
_entries
[major].AsSpan(0, BlockSize).CopyTo(dst.Slice(dstSoFar));
436
Contracts.Assert(miLim <= Utils.Size(
_entries
[maMax]));
437
_entries
[maMax].AsSpan(0, miLim).CopyTo(dst.Slice(dstSoFar));