4 writes to _topBuffer
Microsoft.AspNetCore.WebSockets.Tests (4)
16 references to _topBuffer
Microsoft.AspNetCore.WebSockets.Tests (16)
BufferStream.cs (16)
118if (_topBuffer.Count <= 0)
133int actualCount = Math.Min(count, _topBuffer.Count);
134Buffer.BlockCopy(_topBuffer.Array, _topBuffer.Offset, buffer, offset, actualCount);
135_topBuffer = new ArraySegment<byte>(_topBuffer.Array,
136_topBuffer.Offset + actualCount,
137_topBuffer.Count - actualCount);
142while (count > 0 && (_topBuffer.Count > 0 || !_bufferedData.IsEmpty));
182if (_topBuffer.Count <= 0)
197var actualCount = Math.Min(count, _topBuffer.Count);
198Buffer.BlockCopy(_topBuffer.Array, _topBuffer.Offset, buffer, offset, actualCount);
199_topBuffer = new ArraySegment<byte>(_topBuffer.Array,
200_topBuffer.Offset + actualCount,
201_topBuffer.Count - actualCount);
206while (count > 0 && (_topBuffer.Count > 0 || !_bufferedData.IsEmpty));