Skip to content

Instantly share code, notes, and snippets.

@neuecc
Created August 30, 2015 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neuecc/ce13a93645247bbdd419 to your computer and use it in GitHub Desktop.
Save neuecc/ce13a93645247bbdd419 to your computer and use it in GitHub Desktop.
with msgpack-cli
SerializationContext context = new SerializationContext()
{
SerializationMethod = SerializationMethod.Array,
EnumSerializationMethod = EnumSerializationMethod.ByUnderlyingValue
};
var intSerializer = context.GetSerializer<int>();
var result = intSerializer.PackSingleObject(100);
var resultV = intSerializer.UnpackSingleObject(result);
Debug.Log(resultV);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment