2 writes to Buffer
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\MemoryStreamAdapter.cs (2)
100adapter.Buffer = innerBuffer.Array; 104adapter.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)
62byte[] buffer = value.Buffer!; // we don't expect this to be null, but if it is we'll throw NRE below 63Span<byte> slicedBuffer = value.Buffer.AsSpan(value.Origin, value.Length - value.Origin);