Exemple #1
0
 internal DecompressedBuffer(CompressedContainer container)
 {
     foreach (var chunk in container.CompressedChunks)
     {
         DecompressedChunks.Add(new DecompressedChunk(chunk));
     }
 }
Exemple #2
0
 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);
         }
     }
 }