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