2 writes to _buffer
PresentationCore (2)
System\Windows\Media\RenderData.cs (2)
463
_buffer
= ArrayPool<byte>.Shared.Rent(cbRequiredSize);
492
_buffer
= newBuffer;
27 references to _buffer
PresentationCore (27)
System\Windows\Media\Generated\RenderData.cs (12)
540
Debug.Assert((
_buffer
!= null) || (_curOffset == 0));
543
Debug.Assert((
_buffer
== null) || (_curOffset <=
_buffer
.Length));
550
fixed (byte* pByte = this.
_buffer
)
1109
Debug.Assert((
_buffer
!= null) || (_curOffset == 0));
1112
Debug.Assert((
_buffer
== null) || (_curOffset <=
_buffer
.Length));
1118
fixed (byte* pByte = this.
_buffer
)
1449
Debug.Assert((
_buffer
!= null) || (_curOffset == 0));
1452
Debug.Assert((
_buffer
== null) || (_curOffset <=
_buffer
.Length));
1458
fixed (byte* pByte = this.
_buffer
)
System\Windows\Media\RenderData.cs (15)
92
if ((
_buffer
== null) || (newOffset >
_buffer
.Length))
99
Debug.Assert((
_buffer
!= null) && (
_buffer
.Length >= newOffset));
102
Debug.Assert(
_buffer
.Length > 0);
109
Marshal.Copy((IntPtr)(&header), this.
_buffer
, _curOffset, sizeof(RecordHeader));
110
Marshal.Copy((IntPtr)pbRecord, this.
_buffer
, _curOffset + sizeof(RecordHeader), cbRecordSize);
461
if (
_buffer
== null)
468
Debug.Assert(
_buffer
.Length < cbRequiredSize);
474
int newSize = Math.Max((
_buffer
.Length << 1) - (
_buffer
.Length >> 1), cbRequiredSize);
484
fixed (byte* pBuffer =
_buffer
)
487
Buffer.MemoryCopy(pBuffer, pNewBuffer,
_buffer
.Length,
_buffer
.Length);
491
var oldBuffer =
_buffer
;