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