Skip to content

Swift 4 の Codable 対応用の MessagePack の Encoder をためしに実装

Notifications You must be signed in to change notification settings

mtakagi/MessagePackEncoder

Repository files navigation

MsgPackEncoder

Build Status codecov Join the chat at https://gitter.im/mtakagi/MessagePackEncoder

This project is experimental MessagePack Encoder like a Swift 4's Codable conform (JSON|PropertyList)Encoder class

Caution

Currently MessagePackEncoder is encode support only.

How to use

Simply instantiate MessagePackEncoder class and invoke encode method with Codable instance.

struct Sample : Codable {
    var name : String
}

let sample = Samle(name: "Sample")
let encoder = MessagePackEncoder()
let result = try! encoder.encode(sample)

About

Swift 4 の Codable 対応用の MessagePack の Encoder をためしに実装

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages