mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(ArcStream): added CreateStream method with single argument.
This commit is contained in:
parent
dc30eb0083
commit
83e4414ffc
@ -165,6 +165,14 @@ namespace GameRes
|
||||
return new ArcStream (this);
|
||||
}
|
||||
|
||||
public ArcStream CreateStream (long offset)
|
||||
{
|
||||
var size = this.MaxOffset - offset;
|
||||
if (size > uint.MaxValue)
|
||||
throw new ArgumentOutOfRangeException ("Too large memory mapped stream");
|
||||
return new ArcStream (this, offset, (uint)size);
|
||||
}
|
||||
|
||||
public ArcStream CreateStream (long offset, uint size)
|
||||
{
|
||||
return new ArcStream (this, offset, size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user