首页>
外国专利>
Method and apparatus for serialization and deserialization of message structure
Method and apparatus for serialization and deserialization of message structure
展开▼
机译:消息结构序列化和反序列化的方法和装置
展开▼
页面导航
摘要
著录项
相似文献
摘要
Embodiments of the present disclosure provide a method and an apparatus for serialization and deserialization of a message structure. The method for serialization includes: acquiring a message structure, and pre-processing the message structure to generate a corresponding target version number, wherein message structures with different contents correspond to different version numbers, and the message structure is a structure of status information transmitted by a server to a client; serializing information to be transmitted to obtain a corresponding byte stream, wherein the information to be transmitted carries data of the status information and the target version number; and transmitting the byte stream to the client. The method and apparatus for serialization and deserialization of a message structure according to the embodiments of the present disclosure have good version control, which can avoid the problem that the program runs incorrectly caused by inconsistency of the versions of the serialization and deserialization.
展开▼