internal DecompressedBuffer(CompressedContainer container) { foreach (var chunk in container.CompressedChunks) { DecompressedChunks.Add(new DecompressedChunk(chunk)); } }
internal DecompressedBuffer(byte[] uncompressedData) { using (var reader = new BinaryReader(new MemoryStream(uncompressedData))) { while (reader.BaseStream.Position < reader.BaseStream.Length) { var chunk = new DecompressedChunk(reader); DecompressedChunks.Add(chunk); } } }