mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
Restore conformance to Container protocol of SevenZipContainer
Somehow I forgot to this...
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
import Foundation
|
||||
|
||||
/// Provides open functions for 7-Zip containers.
|
||||
public class SevenZipContainer {
|
||||
public class SevenZipContainer: Container {
|
||||
|
||||
static let signatureHeaderSize = 32
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ import Foundation
|
||||
|
||||
public struct ZipEntryInfo: ContainerEntryInfo {
|
||||
|
||||
let cdEntry: ZipCentralDirectoryEntry
|
||||
let localHeader: ZipLocalHeader
|
||||
|
||||
// MARK: ContainerEntryInfo
|
||||
|
||||
/// Name of the file or directory.
|
||||
@@ -43,6 +40,9 @@ public struct ZipEntryInfo: ContainerEntryInfo {
|
||||
public let fileSystemType: FileSystemType?
|
||||
|
||||
public let compressionMethod: CompressionMethod
|
||||
|
||||
let cdEntry: ZipCentralDirectoryEntry
|
||||
let localHeader: ZipLocalHeader
|
||||
|
||||
// We don't use `DataWithPointer` as argument, because it doesn't work well in asynchronous environment.
|
||||
init(_ data: Data, _ offset: Int, _ currentDiskNumber: UInt32) throws {
|
||||
|
||||
Reference in New Issue
Block a user