matlab-msgpack icon indicating copy to clipboard operation
matlab-msgpack copied to clipboard

The code is not working properly.

Open daoerb opened this issue 2 years ago • 1 comments

data = {'life, the universe, and everything', struct('the_answer', 42)}; bytes = dumpmsgpack(data) data = parsemsgpack(bytes) % returns: {'life, the universe, and everything', containers.Map('the_answer', 42)}

data = 1×2 cell 数组 {'life, the universe, and everything'} {1×1 containers.Map} image Matlab 2022a test failed!

daoerb avatar Dec 03 '24 10:12 daoerb

This is working as intended. Structs can not hold arbitrary strings, and are thus unsuited for MsgPack maps. As the readme and documentation states, we therefore use containers.Map instead.

bastibe avatar Dec 04 '24 06:12 bastibe