Files
SWCompression/Sources/Common/CompressionAlgorithm.swift
2021-01-11 11:20:57 +02:00

15 lines
356 B
Swift

// Copyright (c) 2021 Timofey Solomko
// Licensed under MIT License
//
// See LICENSE for license information
import Foundation
/// A type that provides an implementation of a particular compression algorithm.
public protocol CompressionAlgorithm {
/// Compress data with particular algorithm.
static func compress(data: Data) throws -> Data
}