serialize in .NET, deserialize in C++

前端 未结 7 952
死守一世寂寞
死守一世寂寞 2021-02-13 20:03

I have a .NET application which serializes an object in binary format. this object is a struct consisting of a few fields.

I must deserialize and use this object in a C+

7条回答
  •  南笙
    南笙 (楼主)
    2021-02-13 20:33

    Both boost and Google have libraries for serialization. However, if your struct is pretty trivial, you might consider managing the serialization yourself by writing bytes out from C# and then reading the data in C++ with fread.

提交回复
热议问题