diff --git a/GameRes/ArcView.cs b/GameRes/ArcView.cs index 814236f1..b9a285da 100644 --- a/GameRes/ArcView.cs +++ b/GameRes/ArcView.cs @@ -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);