2 writes to buffer
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (2)
273this.buffer = null; 306Array.Resize(ref this.buffer, newSize);
19 references to buffer
System.Private.CoreLib (19)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (19)
98Debug.Assert(buffer != null); 102this.buffer[oldPos] = pb[i]; 133Debug.Assert(buffer != null); 137Marshal.Copy((IntPtr)p, buffer, oldPos, size); 172Debug.Assert(buffer != null); 176Marshal.Copy((IntPtr)p, buffer, oldPos, size); 213Debug.Assert(value != null && buffer != null); 214Buffer.BlockCopy(value, 0, this.buffer, oldPos, size); 238Debug.Assert(buffer != null); 239this.buffer[bookmark - 2] = unchecked((byte)count); 240this.buffer[bookmark - 1] = unchecked((byte)(count >> 8)); 271Debug.Assert(buffer != null); 272this.PinArray(this.buffer, this.bufferPos); 281if (this.buffer == null || this.buffer.Length < required) 290if (this.buffer == null || this.buffer.Length < required) 298int newSize = this.buffer == null ? 64 : this.buffer.Length;