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