4 writes to Buffer
Microsoft.AspNetCore.TestHost (4)
11 references to Buffer
Microsoft.AspNetCore.TestHost (11)
TestWebSocket.cs (11)
141int count = Math.Min(buffer.Count, receiveMessage.Buffer.Count);
142bool endOfMessage = count == receiveMessage.Buffer.Count;
143Array.Copy(receiveMessage.Buffer.Array!, receiveMessage.Buffer.Offset, buffer.Array!, buffer.Offset, count);
146receiveMessage.Buffer = new ArraySegment<byte>(receiveMessage.Buffer.Array!, receiveMessage.Buffer.Offset + count, receiveMessage.Buffer.Count - count);
290var array = new byte[message.Buffer.Count];
291Array.Copy(message.Buffer.Array!, message.Buffer.Offset, array, 0, message.Buffer.Count);