// Copyright (c) 2017 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information import Foundation class SevenZipFileInfo { struct File { var isEmptyStream = false var isEmptyFile = false var isAntiFile = false var name: String? var cTime: UInt64? var mTime: UInt64? var aTime: UInt64? var winAttributes: UInt32? } let numFiles: Int var files = [File]() var unknownProperties = [SevenZipProperty]() init(_ bitReader: BitReader) throws { numFiles = bitReader.szMbd() for _ in 0..= propertySize else { throw SevenZipError.internalStructureError } bitReader.index += propertySize default: // Unknown property guard bitReader.size - bitReader.index >= propertySize else { throw SevenZipError.internalStructureError } unknownProperties.append(SevenZipProperty(propertyType, propertySize, bitReader.bytes(count: propertySize))) } } var emptyFileIndex = 0 for i in 0..