2 writes to Length
Microsoft.AspNetCore.WebUtilities (2)
PagedByteBuffer.cs (2)
57Length += copyLength; 133Length = 0;
17 references to Length
Microsoft.AspNetCore.WebUtilities (5)
FileBufferingWriteStream.cs (5)
76public override long Length => PagedByteBuffer.Length + (FileStream?.Length ?? 0); 119var allowMemoryBuffer = (_memoryThreshold - count) >= PagedByteBuffer.Length; 124Debug.Assert(PagedByteBuffer.Length <= _memoryThreshold); 158var allowMemoryBuffer = (_memoryThreshold - buffer.Length) >= PagedByteBuffer.Length; 163Debug.Assert(PagedByteBuffer.Length <= _memoryThreshold);
Microsoft.AspNetCore.WebUtilities.Tests (12)
FileBufferingWriteStreamTests.cs (6)
60Assert.Equal(2, pageBuffer.Length); 85Assert.Equal(0, pageBuffer.Length); 108Assert.Equal(0, pageBuffer.Length); 171Assert.Equal(2, pageBuffer.Length); 196Assert.Equal(0, pageBuffer.Length); 219Assert.Equal(0, pageBuffer.Length);
PagedByteBufferTest.cs (6)
24Assert.Equal(input.Length, buffer.Length); 42Assert.Equal(10, buffer.Length); 58Assert.Equal(3, buffer.Length); 76Assert.Equal(PagedByteBuffer.PageSize, buffer.Length); 92Assert.Equal(PagedByteBuffer.PageSize + 10, buffer.Length); 161Assert.Equal(0, buffer.Length);