MsgPack-SML

this is StandardML library for serialization along msgpack format.

Serialize sample

  let val xs = MP.pack $ MP.fromInt 12345
  in
    print $ MP.fmt StringCvt.HEX xs
  end
  - CD3039

Deserialize sample

  let val xs = Vector.fromList [ Word8.fromInt 0xFE ]
  in
    MP.unpack xs
  end
  - NFNum ~2

Last edited Jun 21, 2011 at 10:28 AM by eldesh, version 3

Comments

No comments yet.