Created
August 30, 2015 07:57
-
-
Save neuecc/ce13a93645247bbdd419 to your computer and use it in GitHub Desktop.
with msgpack-cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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