mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Streams should be able to seek past the end
This commit is contained in:
parent
38dca5c526
commit
dcb25713ba
@ -65,7 +65,7 @@ namespace libhac.Streams
|
||||
get => _position;
|
||||
set
|
||||
{
|
||||
if (value < 0 || value >= Length)
|
||||
if (value < 0)
|
||||
throw new ArgumentOutOfRangeException(nameof(value));
|
||||
|
||||
_position = value;
|
||||
|
@ -42,7 +42,7 @@ namespace libhac.Streams
|
||||
get => BaseStream.Position - Offset;
|
||||
set
|
||||
{
|
||||
if (value < 0 || value >= Length)
|
||||
if (value < 0)
|
||||
throw new ArgumentOutOfRangeException(nameof(value));
|
||||
|
||||
BaseStream.Position = Offset + value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user