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