IBinaryStream migration.

This commit is contained in:
morkt
2016-10-16 09:22:53 +04:00
parent d0c1d5da01
commit bb18303eb4
251 changed files with 3277 additions and 3630 deletions

View File

@@ -200,7 +200,7 @@ namespace GameRes.Formats.CaramelBox
using (input)
{
var data = UnpackLze (input, a3ent.UnpackedSize);
return new MemoryStream (data);
return new BinMemoryStream (data, entry.Name);
}
}

View File

@@ -130,7 +130,7 @@ namespace GameRes.Formats.CaramelBox
return input;
using (input)
using (var tz = new TzCompression (input))
return new MemoryStream (tz.Unpack());
return new BinMemoryStream (tz.Unpack(), entry.Name);
}
static int ReadInt24 (byte[] data, int pos)