5 writes to _buffer
System.Private.DataContractSerialization (5)
System\Xml\XmlBufferReader.cs (5)
46_buffer = buffer; 90_buffer = buffer; 109_buffer = Array.Empty<byte>(); 231_buffer = newBuffer; 259_buffer = newBuffer;
50 references to _buffer
System.Private.DataContractSerialization (50)
System\Xml\XmlBufferReader.cs (50)
61return _buffer; 130return _buffer[offset]; 143return _buffer[_offset]; 150return _buffer; 166return _buffer; 173return _buffer; 180return _buffer; 194if (_offsetMax >= _buffer.Length) 199_buffer[_offsetMax++] = (byte)b; 226if (newOffsetMax > _buffer.Length) 228byte[] newBuffer = new byte[Math.Max(256, _buffer.Length * 2)]; 229System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _offsetMax); 236int read = _stream.ReadAtLeast(_buffer.AsSpan(_offsetMax, needed), needed, throwOnEndOfStream: false); 258System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _offsetMax); 262System.Buffer.BlockCopy(_buffer, _offset, _buffer, _offset + count, _offsetMax - _offset); 264System.Buffer.BlockCopy(buffer, offset, _buffer, _offset, count); 279System.Buffer.BlockCopy(_buffer, _offset, _buffer, windowOffset, _offsetMax - _offset); 514byte[] buffer = _buffer; 527byte[] buffer = _buffer; 547return XmlConverter.ToStringUnicode(_buffer, offset, length); 559byte[] buffer = _buffer; 640byte[] buffer = _buffer; 652byte[] buffer = _buffer; 664byte[] buffer = _buffer; 678byte[] buffer = _buffer; 691byte[] buffer = _buffer; 705byte[] buffer = _buffer; 724byte[] buffer = _buffer; 748byte[] buffer = _buffer; 784return XmlConverter.IsWhitespace(_buffer.AsSpan(offset, length)); 820byte[] buffer1 = _buffer; 833byte[] buffer1 = _buffer; 834byte[] buffer2 = bufferReader2._buffer; 849byte[] buffer = _buffer; 869byte[] buffer = _buffer; 917byte[] buffer = _buffer; 930return _buffer[offset]; 949=> MemoryMarshal.Read<T>(_buffer.AsSpan(offset, sizeof(T))); 964=> BinaryPrimitives.ReadSingleLittleEndian(_buffer.AsSpan(offset, sizeof(float))); 967=> BinaryPrimitives.ReadDoubleLittleEndian(_buffer.AsSpan(offset, sizeof(double))); 977ReadOnlySpan<byte> bytes = _buffer.AsSpan(offset, sizeof(decimal)); 991=> new UniqueId(_buffer, offset); 994=> new Guid(_buffer.AsSpan(offset, ValueHandleLength.Guid)); 998System.Buffer.BlockCopy(_buffer, srcOffset, buffer, dstOffset, count); 1230if (_buffer == null) 1239if (_buffer[i] == (byte)13 || _buffer[i] == (byte)10) 1241if (i + 1 < _offsetMax && _buffer[i + 1] == (byte)10)