public void UnzipSaveFileObjects(Stream src, Stream dest) { while (src.Position < src.Length) { SaveFileChunkHeader header = ReadNextSaveFileChunkHeader(src); long start = src.Position; unzip(src, dest); src.Position = start + header.currentChunkCompressedLength; } }
public SaveFileChunkHeader ReadNextSaveFileChunkHeader(Stream src) { SaveFileChunkHeader header = new SaveFileChunkHeader(); header.packageFileTag = ReadNextInt64(src); header.maxChunkSize = ReadNextInt64(src); header.currentChunkCompressedLength = ReadNextInt64(src); header.currentChunkUncompressedLength = ReadNextInt64(src); header.currentChunkCompressedLength2 = ReadNextInt64(src); header.currentChunkUncompressedLength2 = ReadNextInt64(src); return(header); }