(StreamRegion): added leave_open argument to constructor.

This commit is contained in:
morkt 2015-10-19 09:02:53 +04:00
parent 5305c19354
commit c396b86c22

View File

@ -212,7 +212,8 @@ namespace GameRes.Formats
m_should_dispose = !leave_open; m_should_dispose = !leave_open;
} }
public StreamRegion (Stream main, long offset) : this (main, offset, main.Length-offset) public StreamRegion (Stream main, long offset, bool leave_open = false)
: this (main, offset, main.Length-offset, leave_open)
{ {
} }