mirror of
https://github.com/SabreTools/SabreTools.IO.git
synced 2026-11-17 01:21:53 +00:00
Fix seeking issue in composite streams
This commit is contained in:
@@ -200,7 +200,7 @@ namespace SabreTools.IO.Streams
|
||||
{
|
||||
case SeekOrigin.Begin: _position = offset; break;
|
||||
case SeekOrigin.Current: _position += offset; break;
|
||||
case SeekOrigin.End: _position = _length - offset - 1; break;
|
||||
case SeekOrigin.End: _position = _length + offset - 1; break;
|
||||
default: throw new ArgumentException($"Invalid value for {nameof(origin)}");
|
||||
}
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user