106

GitHub - Flight-School/MessagePack: A MessagePack encoder and decoder for Codabl...

 7 years ago
source link: https://github.com/Flight-School/MessagePack
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

README.md

MessagePack

A MessagePack encoder and decoder for Codable types.

This functionality is discussed in Chapter 7 of Flight School Guide to Swift Codable.

MessagePackEncoder

let encoder = MessagePackEncoder()
let value = try! encoder.encode(["a": 1, "b": 2, "c": 3])
// [0x83, 0xA1, 0x62, 0x02, 0xA1, 0x61, 0x01, 0xA1, 0x63, 0x03]

MessagePackDecoder

(Implementation coming soon!)

License

MIT

Contact

Mattt (@mattt)


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK