mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
21 lines
400 B
Swift
21 lines
400 B
Swift
// Copyright (c) 2026 Timofey Solomko
|
|
// Licensed under MIT License
|
|
//
|
|
// See LICENSE for license information
|
|
|
|
import Foundation
|
|
|
|
/// Represents an entry from the ZIP container.
|
|
public struct ZipEntry: ContainerEntry {
|
|
|
|
public let info: ZipEntryInfo
|
|
|
|
public let data: Data?
|
|
|
|
init(_ entryInfo: ZipEntryInfo, _ data: Data?) {
|
|
self.info = entryInfo
|
|
self.data = data
|
|
}
|
|
|
|
}
|