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