首页> 外国专利> 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.
机译:本公开的实施例提供了一种用于序列化和序列化结构的方法和装置。序列化方法包括:获取消息结构,并预处理消息结构以生成相应的目标版本号,其中具有不同内容的消息结构对应于不同的版本号,并且消息结构是由发送的状态信息的结构客户服务器;序列化要发送的信息以获得相应的字节流,其中要发送的信息携带状态信息和目标版本号的数据;并将字节流传输到客户端。根据本公开的实施例的消息结构的序列化和反序列化的方法和装置具有良好的版本控制,这可以避免程序运行不正确地由序列化和反序列化版本引起的问题。

著录项

  • 公开/公告号US11044140B2

    专利类型

  • 公开/公告日2021-06-22

    原文格式PDF

  • 申请/专利权人 MICROFUN CO. LTD;

    申请/专利号US201916695478

  • 发明设计人 CHI GAO;GUANGRONG SU;YINGJIE HAN;

    申请日2019-11-26

  • 分类号G06F15/16;H04L12/24;G06F16/958;H04L29/08;H04L29/06;

  • 国家 US

  • 入库时间 2024-06-14 21:41:51

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号