1 write to MinimumSegmentSize
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\MemoryBufferWriterTests.cs (1)
22MinimumSegmentSize = buffer.Length;
34 references to MinimumSegmentSize
Microsoft.AspNetCore.SignalR.Common.Tests (34)
Internal\Protocol\MemoryBufferWriterTests.cs (34)
81var inputSize = MinimumSegmentSize; 84using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 100var inputSize = MinimumSegmentSize; 103using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 164var inputSize = MinimumSegmentSize * 2; 167using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 180var inputSize = MinimumSegmentSize * 2; 183using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 198var inputSize = (MinimumSegmentSize * 2) + 1; 201using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 214var inputSize = (MinimumSegmentSize * 2) + 1; 217using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 231var inputSize = MinimumSegmentSize * 2; 234using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 250var inputSize = (MinimumSegmentSize * 2) + 1; 253using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 268var inputSize = MinimumSegmentSize * 2; 271using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 288var inputSize = MinimumSegmentSize * 2; 291using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 315var inputSize = (MinimumSegmentSize * 2) + 1; 318using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 335var inputSize = (MinimumSegmentSize * 2) + 1; 338using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 403using (var bufferWriter = new MemoryBufferWriter(MinimumSegmentSize)) 405var data = new byte[MinimumSegmentSize]; 409bufferWriter.Write(data.AsSpan(0, MinimumSegmentSize / 2)); 412var buffer = bufferWriter.GetMemory(MinimumSegmentSize); 413Assert.Equal(MinimumSegmentSize, buffer.Length); 419var expectedOutput = new byte[MinimumSegmentSize + (MinimumSegmentSize / 2)]; 420data.AsSpan(0, MinimumSegmentSize / 2).CopyTo(expectedOutput.AsSpan(0, MinimumSegmentSize / 2)); 421data.CopyTo(expectedOutput, MinimumSegmentSize / 2);