I can not understand what map is it. Should i write number of serialized elements in bytes array into it?
var bytes = new byte[65356];
var s = MessagePackBinary.WriteMapHeader(ref bytes, 0, 567);
var ss = MessagePackBinary.ReadMapHeader(bytes, 0, out s);
result is 567.
I use MessagePack-CSharp serializer.
At docs i found that:
Write/ReadMapHeader Write/Read map format header(element length).
But it is not clear for me.
And another question: how can i write End of Object
?
I need when i will deserealize object back.
But by object can be with different number of properties.