feature/ci (#1)
Consolidate data and config into separate folders that will be expected to be mapped in the container Reviewed-on: #1 Co-authored-by: Huy Nguyen <ecenshu@gmail.com> Co-committed-by: Huy Nguyen <ecenshu@gmail.com>
This commit was merged in pull request #1.
This commit is contained in:
@@ -25,7 +25,7 @@ public sealed class SeekableBufferedStream : Stream
|
||||
}
|
||||
|
||||
private readonly List<BufferBlock> _blocks = new();
|
||||
private readonly long _specifiedLength = 0;
|
||||
private readonly long _specifiedLength;
|
||||
private long _bufferedLength; // total number of bytes buffered so far
|
||||
private long _position; // current logical position in the stream
|
||||
private bool _eof; // true when the source stream has been exhausted
|
||||
@@ -66,7 +66,14 @@ public sealed class SeekableBufferedStream : Stream
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
|
||||
// SeekableBufferedStream.cs – Add IAsyncDisposable support
|
||||
public override async ValueTask DisposeAsync()
|
||||
{
|
||||
Dispose(true);
|
||||
await Task.CompletedTask;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region helpers
|
||||
@@ -244,6 +251,7 @@ public sealed class SeekableBufferedStream : Stream
|
||||
bytesRead += toCopy;
|
||||
}
|
||||
|
||||
await Task.CompletedTask;
|
||||
return bytesRead;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user