Data
struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes
-
Compresses the data using the zlib deflate algorithm.
Note
Fixed at compression level 5 (best trade off between speed and time)Declaration
Swift
func deflate() -> Data?
Return Value
raw deflated data according to RFC-1951.
-
Decompresses the data using the zlib deflate algorithm. Self is expected to be a raw deflate stream according to RFC-1951.
Declaration
Swift
func inflate() -> Data?
Return Value
uncompressed data