2 writes to buffer
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (2)
274this.buffer = null; 307Array.Resize(ref this.buffer, newSize);
19 references to buffer
System.Private.CoreLib (19)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (19)
99Debug.Assert(buffer != null); 103this.buffer[oldPos] = pb[i]; 134Debug.Assert(buffer != null); 138Marshal.Copy((IntPtr)p, buffer, oldPos, size); 173Debug.Assert(buffer != null); 177Marshal.Copy((IntPtr)p, buffer, oldPos, size); 214Debug.Assert(value != null && buffer != null); 215Buffer.BlockCopy(value, 0, this.buffer, oldPos, size); 239Debug.Assert(buffer != null); 240this.buffer[bookmark - 2] = unchecked((byte)count); 241this.buffer[bookmark - 1] = unchecked((byte)(count >> 8)); 272Debug.Assert(buffer != null); 273this.PinArray(this.buffer, this.bufferPos); 282if (this.buffer == null || this.buffer.Length < required) 291if (this.buffer == null || this.buffer.Length < required) 299int newSize = this.buffer == null ? 64 : this.buffer.Length;