Messagepack-csharp: Serializing an object that has no member

Created on 14 Mar 2017  路  3Comments  路  Source: neuecc/MessagePack-CSharp

Hi, thank you for making useful library.

I wrote code like the below with MessagePack.CSharp v1.0.1.

[MessagePackObject]
public class Foo { }

var foo = new Foo();
var serialized = MessagePack.MessagePackSerializer.Serialize(foo);

// Output: 91C0 (fixarray[1], nil)
Debug.Log(string.Join("", serialized.Select(x => string.Format("{0:X}", x)).ToArray()));

I expected [] as output, but actually got [nil]. Is this behaviour what you intended?

Thanks.

Most helpful comment

I've fixed and released ver 1.0.2.
Thank you.

All 3 comments

Oh, it should be '[]'.
I'll check and fix it quickly.

I've fixed and released ver 1.0.2.
Thank you.

I confirmed the fix on my machine, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahmedalejo picture ahmedalejo  路  4Comments

Fisher-Joe picture Fisher-Joe  路  3Comments

williamkmlau picture williamkmlau  路  3Comments

elsmart picture elsmart  路  7Comments

cocowalla picture cocowalla  路  4Comments