mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(ArcStream): added CreateStream method with single argument.
This commit is contained in:
@@ -165,6 +165,14 @@ namespace GameRes
|
|||||||
return new ArcStream (this);
|
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)
|
public ArcStream CreateStream (long offset, uint size)
|
||||||
{
|
{
|
||||||
return new ArcStream (this, offset, size);
|
return new ArcStream (this, offset, size);
|
||||||
|
|||||||
Reference in New Issue
Block a user