Serialize in C++ then deserialize in C#?

前端 未结 6 598
轮回少年
轮回少年 2020-12-15 09:40

Is there an easy way to serialize data in c++ (either to xml or binary), and then deserialize the data in C#?

I\'m working with some remote WINNT machines that won\

6条回答
  •  难免孤独
    2020-12-15 10:19

    I checked out all mentioned projects like prottocol buffers, json, xml, etc. but after I have found BSON I use this because of the following reasons:

    • Easy to use API
    • Available in many languages (C, C++, Haskell, Go, Erlang, Perl, PHP, Python, Ruby, C#, ...)
    • Binary therefore very space efficient and fast (less bytes->less time)
    • constistent over platforms (no problems with endianess, etc)
    • hierarchical. The data model is comparable to json (what the name suggests) so most data modelling tasks should be solvable.
    • No precompiler necessary
    • wideley used (Mongodb, many languages)

提交回复
热议问题