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)
61
return
_buffer
;
130
return
_buffer
[offset];
143
return
_buffer
[_offset];
150
return
_buffer
;
166
return
_buffer
;
173
return
_buffer
;
180
return
_buffer
;
194
if (_offsetMax >=
_buffer
.Length)
199
_buffer
[_offsetMax++] = (byte)b;
226
if (newOffsetMax >
_buffer
.Length)
228
byte[] newBuffer = new byte[Math.Max(256,
_buffer
.Length * 2)];
229
System.Buffer.BlockCopy(
_buffer
, 0, newBuffer, 0, _offsetMax);
236
int read = _stream.ReadAtLeast(
_buffer
.AsSpan(_offsetMax, needed), needed, throwOnEndOfStream: false);
258
System.Buffer.BlockCopy(
_buffer
, 0, newBuffer, 0, _offsetMax);
262
System.Buffer.BlockCopy(
_buffer
, _offset,
_buffer
, _offset + count, _offsetMax - _offset);
264
System.Buffer.BlockCopy(buffer, offset,
_buffer
, _offset, count);
279
System.Buffer.BlockCopy(
_buffer
, _offset,
_buffer
, windowOffset, _offsetMax - _offset);
514
byte[] buffer =
_buffer
;
527
byte[] buffer =
_buffer
;
547
return XmlConverter.ToStringUnicode(
_buffer
, offset, length);
559
byte[] buffer =
_buffer
;
640
byte[] buffer =
_buffer
;
652
byte[] buffer =
_buffer
;
664
byte[] buffer =
_buffer
;
678
byte[] buffer =
_buffer
;
691
byte[] buffer =
_buffer
;
705
byte[] buffer =
_buffer
;
724
byte[] buffer =
_buffer
;
748
byte[] buffer =
_buffer
;
784
return XmlConverter.IsWhitespace(
_buffer
.AsSpan(offset, length));
820
byte[] buffer1 =
_buffer
;
833
byte[] buffer1 =
_buffer
;
834
byte[] buffer2 = bufferReader2.
_buffer
;
849
byte[] buffer =
_buffer
;
869
byte[] buffer =
_buffer
;
917
byte[] buffer =
_buffer
;
930
return
_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)));
977
ReadOnlySpan<byte> bytes =
_buffer
.AsSpan(offset, sizeof(decimal));
991
=> new UniqueId(
_buffer
, offset);
994
=> new Guid(
_buffer
.AsSpan(offset, ValueHandleLength.Guid));
998
System.Buffer.BlockCopy(
_buffer
, srcOffset, buffer, dstOffset, count);
1230
if (
_buffer
== null)
1239
if (
_buffer
[i] == (byte)13 ||
_buffer
[i] == (byte)10)
1241
if (i + 1 < _offsetMax &&
_buffer
[i + 1] == (byte)10)