Base:
31 references to Length
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonRequestHelpers.cs (1)
355
var data = new byte[fs.
Length
];
Microsoft.AspNetCore.WebUtilities (2)
FileBufferingReadStream.cs (2)
221
else if (!_completelyBuffered && origin == SeekOrigin.Current && offset + Position >
Length
)
226
else if (!_completelyBuffered && origin == SeekOrigin.Begin && offset >
Length
)
Microsoft.AspNetCore.WebUtilities.Tests (28)
FileBufferingReadStreamTests.cs (28)
29
Assert.Equal(0, stream.
Length
); // Nothing buffered yet
49
Assert.Equal(read0, stream.
Length
);
56
Assert.Equal(read0 + read1, stream.
Length
);
63
Assert.Equal(read0 + read1 + read2, stream.
Length
);
82
Assert.Equal(read0, stream.
Length
);
89
Assert.Equal(read0 + read1, stream.
Length
);
96
Assert.Equal(read0 + read1 + read2, stream.
Length
);
116
Assert.Equal(read0, stream.
Length
);
123
Assert.Equal(read0 + read1, stream.
Length
);
132
Assert.Equal(read0 + read1 + read2, stream.
Length
);
154
Assert.Equal(read0, stream.
Length
);
177
Assert.Equal(read0, stream.
Length
);
184
Assert.Equal(read0 + read1, stream.
Length
);
211
Assert.Equal(read0, stream.
Length
);
218
Assert.Equal(read0 + read1, stream.
Length
);
225
Assert.Equal(read0 + read1 + read2, stream.
Length
);
244
Assert.Equal(read0, stream.
Length
);
251
Assert.Equal(read0 + read1, stream.
Length
);
258
Assert.Equal(read0 + read1 + read2, stream.
Length
);
278
Assert.Equal(read0, stream.
Length
);
285
Assert.Equal(read0 + read1, stream.
Length
);
294
Assert.Equal(read0 + read1 + read2, stream.
Length
);
316
Assert.Equal(inner.Length, stream.
Length
);
338
Assert.Equal(read0 + read1 + read2 + read3, stream.
Length
);
357
Assert.Equal(read0, stream.
Length
);
380
Assert.Equal(read0, stream.
Length
);
387
Assert.Equal(read0 + read1, stream.
Length
);
614
Assert.Equal(read0, stream.
Length
);