MessagePack is an efficient binary serialization format. It lets you exchange data among multiple languages like JSON. But it's faster and smaller. Small integers are encoded into a single byte, and typical short strings require only one extra byte in addition to the strings themselves.
import MessagePack
let packed = pack(.UInt(42))
//packed is [0x2a]
let unpacked = try? unpack([0x2a])
//unpacked is 42
let packed = pack([0, 1, 2, 3, 4])
//packed is [0x95, 0x00, 0x01, 0x02, 0x03, 0x04]
...
//you can find more examples in Tests folder
import PackageDescription
let package = Package(
dependencies: [
.Package(url: "https://github.com/Zewo/MessagePack.git", majorVersion: 0, minor: 5),
]
)
If you need any help you can join our Slack and go to the #help channel. Or you can create a Github issue in our main repository. When stating your issue be sure to add enough details, specify what module is causing the problem and reproduction steps.
The entire Zewo code base is licensed under MIT. By contributing to Zewo you are contributing to an open and engaged community of brilliant Swift programmers. Join us on Slack to get to know us!
This project is released under the MIT license. See LICENSE for details.