Method and apparatus for serialization and deserialization of message structure
US11044140B2 · kind B2 · utility
Assignee
Inventors
Key dates
| Filing date | Nov 26, 2019 |
| Grant date | Jun 22, 2021 |
| Priority date | — |
| Expiry date | Nov 26, 2039 |
Classification
- Technology area (CPC H)Electricity
- CPC primaryH04L41/0266
- WIPO fieldDigital communication
- WIPO sectorElectrical engineering
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.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.