2 writes to _initialReadBuffer
System.ServiceModel.Http (2)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (2)
887
_initialReadBuffer
= initialBuffer;
1223
_initialReadBuffer
= new ArraySegment<byte>(_initialReadBuffer.Array, _initialReadBuffer.Offset + bytesToCopy, _initialReadBuffer.Count - bytesToCopy);
10 references to _initialReadBuffer
System.ServiceModel.Http (10)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (10)
1005
if (
_initialReadBuffer
.Count != 0)
1221
int bytesToCopy =
_initialReadBuffer
.Count > count ? count :
_initialReadBuffer
.Count;
1222
Buffer.BlockCopy(
_initialReadBuffer
.Array,
_initialReadBuffer
.Offset, buffer, offset, bytesToCopy);
1223
_initialReadBuffer = new ArraySegment<byte>(
_initialReadBuffer
.Array,
_initialReadBuffer
.Offset + bytesToCopy,
_initialReadBuffer
.Count - bytesToCopy);
1244
_webSocket.ReceiveAsync(new ArraySegment<byte>(
_initialReadBuffer
.Array), cancelToken);
1266
_bufferManager.ReturnBuffer(
_initialReadBuffer
.Array);