2 writes to _buffer
PresentationCore (2)
System\Windows\Media\RenderData.cs (2)
474
_buffer
= ArrayPool<byte>.Shared.Rent(cbRequiredSize);
503
_buffer
= newBuffer;
27 references to _buffer
PresentationCore (27)
System\Windows\Media\Generated\RenderData.cs (12)
553
Debug.Assert((
_buffer
!= null) || (_curOffset == 0));
556
Debug.Assert((
_buffer
== null) || (_curOffset <=
_buffer
.Length));
563
fixed (byte* pByte = this.
_buffer
)
1122
Debug.Assert((
_buffer
!= null) || (_curOffset == 0));
1125
Debug.Assert((
_buffer
== null) || (_curOffset <=
_buffer
.Length));
1131
fixed (byte* pByte = this.
_buffer
)
1462
Debug.Assert((
_buffer
!= null) || (_curOffset == 0));
1465
Debug.Assert((
_buffer
== null) || (_curOffset <=
_buffer
.Length));
1471
fixed (byte* pByte = this.
_buffer
)
System\Windows\Media\RenderData.cs (15)
103
if ((
_buffer
== null) || (newOffset >
_buffer
.Length))
110
Debug.Assert((
_buffer
!= null) && (
_buffer
.Length >= newOffset));
113
Debug.Assert(
_buffer
.Length > 0);
120
Marshal.Copy((IntPtr)(&header), this.
_buffer
, _curOffset, sizeof(RecordHeader));
121
Marshal.Copy((IntPtr)pbRecord, this.
_buffer
, _curOffset + sizeof(RecordHeader), cbRecordSize);
472
if (
_buffer
== null)
479
Debug.Assert(
_buffer
.Length < cbRequiredSize);
485
int newSize = Math.Max((
_buffer
.Length << 1) - (
_buffer
.Length >> 1), cbRequiredSize);
495
fixed (byte* pBuffer =
_buffer
)
498
Buffer.MemoryCopy(pBuffer, pNewBuffer,
_buffer
.Length,
_buffer
.Length);
502
var oldBuffer =
_buffer
;