Is there a practical way to compress NSData?

后端 未结 7 1926
感情败类
感情败类 2020-12-14 11:40

I haven\'t seen any documentation on the topic, but that doesn\'t mean it doesn\'t exist.

7条回答
  •  心在旅途
    2020-12-14 12:07

    Swift 3 ready wrapper around libcompression. https://github.com/mw99/DataCompression

    Swift libcompression wrapper as an extension for the Data type (ZLIB, LZFSE, LZMA, LZ4, deflate, RFC-1950, RFC-1951)

    Interesting to play with in the playground: playground compression rates

提交回复
热议问题