Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble deserializing c++ vector #315

Open
benlemond opened this issue Feb 2, 2019 · 1 comment
Open

Trouble deserializing c++ vector #315

benlemond opened this issue Feb 2, 2019 · 1 comment
Labels

Comments

@benlemond
Copy link

Is there a recommended way to deserialize (in c#) a message pack object packed in c++ containing a std::vector<sometype>?

I tried public List<sometype> but that doesn't seem to be working

@yfakariya
Copy link
Member

Sorry, I have no idea about best practice for C++'s implementation for std:vector<SomeType>.
In general, it is more important that what actual serialized binary is.

I guess that the C++ implementation serializes the vector<T> as array of sometype, so it should be deserialized as List<sometype>. It is possible that this is caused by the declaration of the sometype.
Could you put the code of:

  • Sample deserialization code that you ran.
  • Sample serialized binary (such as HEX format string)
  • The declaration of the sometype as you wrote.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants