阅读背景:

当内存中的类对象已经是二进制(C/ c++)时,为什么要序列化?

来源:互联网 

My guess is that data is scattered in physical memory (even the data of a class object is sequential in virtual memory), so in order to send the data correctly it needs to be reassembled, and to be able to send over the network, one additional step is the transformation of host byte order to network byte order. Is it correct? My guess is that data is scattered in physical




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: