1 write to PagedByteBuffer
Microsoft.AspNetCore.WebUtilities (1)
FileBufferingWriteStream.cs (1)
55
PagedByteBuffer
= new PagedByteBuffer(ArrayPool<byte>.Shared);
13 references to PagedByteBuffer
Microsoft.AspNetCore.WebUtilities (13)
FileBufferingWriteStream.cs (13)
76
public override long Length =>
PagedByteBuffer
.Length + (FileStream?.Length ?? 0);
119
var allowMemoryBuffer = (_memoryThreshold - count) >=
PagedByteBuffer
.Length;
123
PagedByteBuffer
.Add(buffer, offset, count);
124
Debug.Assert(
PagedByteBuffer
.Length <= _memoryThreshold);
133
PagedByteBuffer
.MoveTo(FileStream);
158
var allowMemoryBuffer = (_memoryThreshold - buffer.Length) >=
PagedByteBuffer
.Length;
162
PagedByteBuffer
.Add(buffer);
163
Debug.Assert(
PagedByteBuffer
.Length <= _memoryThreshold);
172
await
PagedByteBuffer
.MoveToAsync(FileStream, cancellationToken);
211
await
PagedByteBuffer
.MoveToAsync(destination, cancellationToken);
237
await
PagedByteBuffer
.MoveToAsync(destination, cancellationToken);
247
PagedByteBuffer
.Dispose();
259
PagedByteBuffer
.Dispose();