开发者

Boost serialization text archive are Cross-language?

Hy...I try to explain better my question... Im using boost serialization text archive before sending data over TCP connection... Now I need to pass the received data to a Java application...so I would know if the se开发者_JS百科rialized stream is composed only by the data or by the data + boost serialization(tag, code, etc.)... In this case my only chance to transfer the data to the java application, is to filter them before transfering?thanks...


As far as i know Boost serialization text archive uses custom formatting.

For instance it puts serialization archive version number in the output. So you will have to filter these kind of data with Java.

Even if you have used boost binary archive you would not be able to deserialize it with Java.

So the answer to your question is boost serialization mechanism and Java are not compatible.

Try using JSON as serialization format if you have to use text based communicatoin which makes life easier.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜