MessagePack serializer implementation for Haxe / msgpack.org[Haxe] http://msgpack.org/
Haxe
Switch branches/tags
Latest commit 79b732e Dec 7, 2015 @aaulia Merge pull request #15 from underscorediscovery/patch-2
Fix outdated Haxe naming

README.md

MIT License Haxelib Version

msgpack-haxe

MessagePack (http://msgpack.org) serialization library for Haxe

How to install:

Simply use haxelib git to use this github repo or haxelib install msgpack-haxe to use the one in the haxelib repository.

Supported Type:

  • Null
  • Bool
  • Int
  • Float
  • Object
  • Bytes
  • String
  • Array
  • IntMap/StringMap

Example code:

package;
import org.msgpack.MsgPack;

class Example {
    public static function main() {
        var i = { a: 1, b: 2, c: "Hello World!" };
        var m = MsgPack.encode(i);
        var o = MsgPack.decode(m);

        trace(i);
        trace(m.toHex());
        trace(o);
    }
}