Functions
The following functions are available globally.
- 
                  
                  Compresses the given data using the specified compression method. Throws An error if the compression process fails.DeclarationSwift public func compressData(_ data: Data, method: CompressionMethod) throws -> DataParametersdataThe data to be compressed. methodThe compression method to use. Return ValueThe compressed data. 
- 
                  
                  Decompresses the given data using the specified compression method. Throws An error if the decompression process fails.DeclarationSwift public func decompressData(_ data: Data, method: CompressionMethod) throws -> DataParametersdataThe compressed data to be decompressed. methodThe compression method used to compress the data. Return ValueThe decompressed data. 
 View on GitHub
View on GitHub Functions  Reference
        Functions  Reference