1 write to _internalBuffer
Microsoft.AspNetCore.Http.Connections.Tests (1)
TestWebSocketConnectionFeature.cs (1)
148_internalBuffer = message;
12 references to _internalBuffer
Microsoft.AspNetCore.Http.Connections.Tests (12)
TestWebSocketConnectionFeature.cs (12)
134if (_internalBuffer.Buffer == null || _internalBuffer.Buffer.Length == 0) 152var length = _internalBuffer.Buffer.Length; 153if (buffer.Count - buffer.Offset < _internalBuffer.Buffer.Length) 155length = Math.Min(buffer.Count - buffer.Offset, _internalBuffer.Buffer.Length); 156Buffer.BlockCopy(_internalBuffer.Buffer, 0, buffer.Array, buffer.Offset, length); 160Buffer.BlockCopy(_internalBuffer.Buffer, 0, buffer.Array, buffer.Offset, length); 163var endOfMessage = _internalBuffer.EndOfMessage; 167_internalBuffer.Buffer = _internalBuffer.Buffer.AsMemory().Slice(length).ToArray(); 168endOfMessage = _internalBuffer.Buffer.Length == 0 && endOfMessage; 171return new WebSocketReceiveResult(length, _internalBuffer.MessageType, endOfMessage);