mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Streams should be able to seek past the end
This commit is contained in:
parent
38dca5c526
commit
dcb25713ba
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue