2 writes to Buffer
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\MemoryStreamAdapter.cs (2)
100
adapter.
Buffer
= innerBuffer.Array;
104
adapter.
Buffer
??= memoryStream.ToArray(); // couldn't get the inner buffer; clone it now
2 references to Buffer
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\MemoryStreamAdapter.cs (2)
62
byte[] buffer = value.
Buffer
!; // we don't expect this to be null, but if it is we'll throw NRE below
63
Span<byte> slicedBuffer = value.
Buffer
.AsSpan(value.Origin, value.Length - value.Origin);