2 writes to chunks
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (2)
106
this.
chunks
= chunks;
264
chunks
= null!;
17 references to chunks
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (17)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (17)
169
var result =
chunks
[CurrentChunkIndex][CurrentChunkOffset];
181
var totalCopyCount = Read(this.
chunks
, this.position, this.length, buffer, index, count);
218
Read(this.
chunks
, 0, this.length, array, 0, array.Length);
231
var chunk =
chunks
[chunkIndex];
257
if (
chunks
!= null)
259
foreach (var chunk in
chunks
)
311
for (var i = this.
chunks
.Count; i <= nextIndex; i++)
316
chunks
.Add(chunk);
338
Array.Clear(
chunks
[chunkIndex], chunkOffset,
chunks
[chunkIndex].Length - chunkOffset);
341
for (var i = trimIndex; i <
chunks
.Count; i++)
342
SharedPools.ByteArray.Free(
chunks
[i]);
344
chunks
.RemoveRange(trimIndex,
chunks
.Count - trimIndex);
362
chunks
[currentIndex][currentOffset] = value;
380
var chunk =
chunks
[CurrentChunkIndex];
400
var temp = this.
chunks
;