mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
15 lines
375 B
Swift
15 lines
375 B
Swift
// Copyright (c) 2026 Timofey Solomko
|
|
// Licensed under MIT License
|
|
//
|
|
// See LICENSE for license information
|
|
|
|
import Foundation
|
|
|
|
/// A type that provides an implementation of a particular decompression algorithm.
|
|
public protocol DecompressionAlgorithm {
|
|
|
|
/// Decompress data compressed with particular algorithm.
|
|
static func decompress(data: Data) throws -> Data
|
|
|
|
}
|