GithubHelp home page GithubHelp logo

dev1an / msgpack Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 2.0 38 KB

MessagePack encoder for types conforming to Swift 4's Encodable protocol

License: MIT License

Swift 98.95% Objective-C 1.05%
swift swift4 codable serialization marshalling msgpack messagepack serializer

msgpack's Introduction

Usage

import MsgPack

// Encode standard types
let encoder = Encoder()
try encoder.encode("Hello world")
try encoder.encode("๐Ÿ˜‡")
try encoder.encode(0x0102030405060708)
try encoder.encode(["Some strings", "in an array"])

// Encode custom types with Encodable ๐ŸŽ‰
struct Point: Encodable {
  let x: Int
  let y: Int
}
try encoder.encode(Point(x: 90, y: 45))

Take a look at the playground for more examples.

msgpack's People

Contributors

dev1an avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

msgpack's Issues

What is the status on this project ?

Hi !
Thanks for sharing your implementation of messagePack with the new swift4 Codable protocols, I was looking for exactly this ๐Ÿ‘

Is it something I could use in a production environment ? I can see you are referenced on the message pack website, but I don't know if you plan on spending time maintaining the project.

Cheers

License

Hi @Dev1an !

Thank you for sharing your implementation of messagePack. But can I use this code in my commercial project? If so, on what terms?

If it's not too much trouble, could you add a license to the project that covers the code.

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.