9 references to ArraySegment
System (2)
net\System\Net\WebSockets\WebSocketBase.cs (1)
891
new
ArraySegment
<byte>(new byte[WebSocketBuffer.MinReceiveBufferSize]);
net\System\Net\WebSockets\WebSocketBuffer.cs (1)
665
return new
ArraySegment
<byte>(new byte[internalBufferSize]);
System.Runtime.Serialization (2)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
181
new
ArraySegment
<byte>(ValidatingUTF8.GetBytes(GetEncoding(dataEnc).GetChars(buffer, offset, count)));
System\Xml\EncodingStreamWrapper.cs (1)
524
seg = new
ArraySegment
<byte>(ValidatingUTF8.GetBytes(GetEncoding(declEnc).GetChars(buffer, offset, count)));
System.ServiceModel (4)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
381
new
ArraySegment
<byte>(internalBuffer));
System\ServiceModel\Channels\HttpRequestContext.cs (1)
807
new
ArraySegment
<byte>(this.webSocketInternalBuffer)).Upcast<HttpListenerWebSocketContext, WebSocketContext>();
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
1468
Task<WebSocketReceiveResult> receiveTask = this.webSocket.ReceiveAsync(new
ArraySegment
<byte>(this.initialReadBuffer.Array), CancellationToken.None);
System\ServiceModel\Security\EncryptedData.cs (1)
43
this.buffer = new
ArraySegment
<byte>(CryptoHelper.EmptyBuffer);
System.Web (1)
WebSockets\AspNetWebSocket.cs (1)
256
ArraySegment<byte> buffer = new
ArraySegment
<byte>(new byte[_maxCloseMessageByteCount]);