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