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