migration to IBinaryStream interface.

This commit is contained in:
morkt
2016-10-15 09:34:46 +04:00
parent 0b96ef8f77
commit 503b734645
16 changed files with 264 additions and 332 deletions

View File

@@ -211,6 +211,14 @@ namespace GameRes
}
}
public IBinaryStream OpenBinaryEntry (Entry entry)
{
var input = OpenSeekableEntry (entry);
if (input is IBinaryStream)
return input as IBinaryStream;
return new BinaryStream (input, entry.Name);
}
public ArchiveFileSystem CreateFileSystem ()
{
if (m_interface.IsHierarchic)