mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-27 06:07:35 +08:00
ArcViewStream 64位
This commit is contained in:
@@ -214,9 +214,11 @@ namespace GameRes
|
||||
public ArcViewStream CreateStream (long offset)
|
||||
{
|
||||
var size = this.MaxOffset - offset;
|
||||
if (size > uint.MaxValue)
|
||||
throw new ArgumentOutOfRangeException ("Too large memory mapped stream");
|
||||
return new ArcViewStream (this, offset, (uint)size);
|
||||
if (size < 0)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(offset), "Greater than archive size");
|
||||
}
|
||||
return new ArcViewStream (this, offset, size);
|
||||
}
|
||||
|
||||
public ArcViewStream CreateStream (long offset, uint size, string name = null)
|
||||
|
||||
Reference in New Issue
Block a user