Invention Grant
- Patent Title: Method and apparatus for serialization and deserialization of message structure
-
Application No.: US16695478Application Date: 2019-11-26
-
Publication No.: US11044140B2Publication Date: 2021-06-22
- Inventor: Chi Gao , Guangrong Su , Yingjie Han
- Applicant: MICROFUN CO., LTD
- Applicant Address: CN Beijing
- Assignee: MICROFUN CO., LTD
- Current Assignee: MICROFUN CO., LTD
- Current Assignee Address: CN Beijing
- Agency: Maier & Maier, PLLC
- Priority: CN201910682876.1 20190726
- Main IPC: G06F15/16
- IPC: G06F15/16 ; H04L12/24 ; G06F16/958 ; H04L29/08 ; H04L29/06

Abstract:
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.
Public/Granted literature
- US20210028970A1 METHOD AND APPARATUS FOR SERIALIZATION AND DESERIALIZATION OF MESSAGE STRUCTURE Public/Granted day:2021-01-28
Information query