James Jackson-South
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
src/ImageSharp/IO/DoubleBufferedStreamReader.cs
|
|
|
@ -42,6 +42,7 @@ namespace SixLabors.ImageSharp.IO |
|
|
|
public DoubleBufferedStreamReader(MemoryAllocator memoryAllocator, Stream stream) |
|
|
|
{ |
|
|
|
this.stream = stream; |
|
|
|
this.Position = (int)stream.Position; |
|
|
|
this.length = (int)stream.Length; |
|
|
|
this.managedBuffer = memoryAllocator.AllocateManagedByteBuffer(ChunkLength, AllocationOptions.Clean); |
|
|
|
this.bufferChunk = this.managedBuffer.Array; |
|
|
|
|