2 writes to initialReadBuffer
System.ServiceModel (2)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (2)
1056
this.
initialReadBuffer
= initialBuffer;
1449
this.
initialReadBuffer
= new ArraySegment<byte>(this.initialReadBuffer.Array, this.initialReadBuffer.Offset + bytesToCopy, this.initialReadBuffer.Count - bytesToCopy);
11 references to initialReadBuffer
System.ServiceModel (11)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (11)
1173
if (this.
initialReadBuffer
.Count != 0)
1244
if (this.
initialReadBuffer
.Count != 0)
1447
int bytesToCopy = this.
initialReadBuffer
.Count > count ? count : this.
initialReadBuffer
.Count;
1448
Buffer.BlockCopy(this.
initialReadBuffer
.Array, this.
initialReadBuffer
.Offset, buffer, offset, bytesToCopy);
1449
this.initialReadBuffer = new ArraySegment<byte>(this.
initialReadBuffer
.Array, this.
initialReadBuffer
.Offset + bytesToCopy, this.
initialReadBuffer
.Count - bytesToCopy);
1468
Task<WebSocketReceiveResult> receiveTask = this.webSocket.ReceiveAsync(new ArraySegment<byte>(this.
initialReadBuffer
.Array), CancellationToken.None);
1488
this.bufferManager.ReturnBuffer(this.
initialReadBuffer
.Array);