Visitar URL original
Trouble deserializing c++ vector · Issue #315 · msgpack/msgpack-cli · GitHub
Skip to content

Trouble deserializing c++ vector #315

Description

@benlemond

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

Activity

  1. yfakariya commented on Feb 3, 2019

    @yfakariya
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions