Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Safe serialization and deserialization data transmission method

A technology for deserialization and data transmission. It is applied in the field of data transmission and can solve the problems of not supporting C++Tuple tuple serialization and not using C++14.

Active Publication Date: 2022-06-28
北京睿芯高通量科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] 3. The patent was published in 2015. Since mainstream C++ compilers such as gcc support the C++14 standard after 2016, the serialization method of this patent must not use the features of C++14
[0015] 4. Does not support C++Tuple serialization

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Safe serialization and deserialization data transmission method
  • Safe serialization and deserialization data transmission method
  • Safe serialization and deserialization data transmission method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0082] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention. In addition, it should be further emphasized here that the preferred technical solutions provided by the following specific embodiments can be used in cooperation with each other or in combination.

[0083] First, some background concepts required by the present invention are briefly explained:

[0084] POD type is a common concept in C++, used to describe the properties of classes / structures, specifically, it refers to classes / structures that are not d...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a safe serialization and deserialization data transmission method, which comprises the following steps of: S1, when a structural body is serialized, sequentially serializing according to an element sequence in the structural body; s2, automatically deducing the types of the elements by using template characteristics of C + +, wherein the template characteristics automatically enter a serialization function set for each type of element according to the types of the elements; and S3, when the character stream is deserialized to the structural body of the determined type, the C + + template automatically derives the element type to be deserialized according to the element type in the structural body, so that a deserialization function set for each type of element is automatically entered, and the character stream is deserialized into the field of the structural body. According to the invention, a serialization method supporting POD type, string, STL container and Tuple tuple type is realized based on C + + 14 template characteristics.

Description

technical field [0001] The present invention relates to the technical field of data transmission, in particular to a method for safe serialization and deserialization of transmission data. Background technique [0002] Cloud-native architecture is now popular, but many computing services are still written in C++. Some edge processing capabilities are relatively weak, and the calculated results need to be uploaded to the server for post-processing; some are due to the requirements of the distributed architecture, so that different modules only undertake some types of computing tasks; therefore, this often requires web services Scheduling from it will involve data communication between cross-platform services. [0003] And for some applications there are figure 1 architectural requirements [0004] Traditional C++ services can directly transfer structured memory character streams between different computing services; however, because ordinary web servers only accept seriali...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L67/565H04L67/02H04L9/40G06F8/30G06F8/35G06F8/41G06F8/53
CPCH04L67/02H04L63/0428G06F8/315G06F8/355G06F8/41G06F8/53Y02D10/00
Inventor 刘德贵罗鑫王达
Owner 北京睿芯高通量科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products