How to deserialize [[doubles], [ints]] array with C# MsgPack?
So msgpack-c provides me with objects as arrays. Say I serialized a a C++ message alike this: template <class T> struct Message { std::vector<T> data; std::vector<int> shape; MSGPACK_DEFINE(data, shape); }; and had T == double. If deserialised to json in C++ it would have internals like [[1.23,3.01,44.02,33],[2,2]]. Now I want to deserialize it in C# with MessagePack-CSharp. If I try to turn it into json string I get an empty string, when I try var msg = MessagePackSerializer.Deserialize<List<List<double>>>(e.RawData); I get System.InvalidOperationException: code is invalid. code:0 format:posi
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.