mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
Added documentation for protocols.
This commit is contained in:
@@ -8,14 +8,18 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
/// Abstract archive class which supports unarchiving.
|
||||
public protocol Archive {
|
||||
|
||||
/// Abstract unarchive function.
|
||||
static func unarchive(archiveData: Data) throws -> Data
|
||||
|
||||
}
|
||||
|
||||
/// Abstract decompression algorithm class which supports decompression.
|
||||
public protocol DecompressionAlgorithm {
|
||||
|
||||
/// Abstract decompress function.
|
||||
static func decompress(compressedData: Data) throws -> Data
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user