4 writes to _preReadData
System.ServiceModel.NetFramingBase (4)
System\ServiceModel\Channels\Connection.cs (4)
50
_preReadData
= initialData;
58
_preReadData
= Fx.AllocateByteArray(initialData.Length + _preReadData.Length);
64
_preReadData
= initialData;
74
_preReadData
= _preReadData.Slice(bytesToCopy);
9 references to _preReadData
System.ServiceModel.NetFramingBase (9)
System\ServiceModel\Channels\Connection.cs (9)
55
if (!
_preReadData
.IsEmpty)
57
Memory<byte> tempBuffer =
_preReadData
;
58
_preReadData = Fx.AllocateByteArray(initialData.Length +
_preReadData
.Length);
59
tempBuffer.CopyTo(
_preReadData
);
60
initialData.CopyTo(
_preReadData
.Slice(tempBuffer.Length));
70
if (!
_preReadData
.IsEmpty)
72
int bytesToCopy = Math.Min(buffer.Length,
_preReadData
.Length);
73
_preReadData
.Slice(0, bytesToCopy).CopyTo(buffer);
74
_preReadData =
_preReadData
.Slice(bytesToCopy);