Object serialization method, terminal device, and computer-readable storage medium

A technology of object and object identification, which is applied in the direction of program control design, calculation, program control device, etc., and can solve the problem that the serialization method cannot serialize data, etc.

Pending Publication Date: 2019-03-19
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides an object serialization method, a terminal device, and a computer-readable storage medium to solve the problem that the existing serialization methods are often not efficient and streamlined when faced with complicated data types. The problem of serializing these data

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
  • Object serialization method, terminal device, and computer-readable storage medium
  • Object serialization method, terminal device, and computer-readable storage medium
  • Object serialization method, terminal device, and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

[0023] In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

[0024] see figure 1 , figure 1 It is a flow chart of the object serialization method provided by Embodiment 1 of the present invention. The execution subject of the object serialization method in this embodiment is the terminal. Terminals include, but are not limite...

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 is applicable to the technical field of computer application, and provides an object serialization method, a terminal device and a computer-readable storage medium. The method comprisesthe following steps: obtaining an object identification of an object to be serialized, an attribute name and an attribute value of each attribute in the object; creating at least one attribute node inthe form of an array of bytes according to each attribute name and attribute value of the object; according to the preset relationship between each attribute and all attribute nodes in the object, the object node tree is constructed and the object is serialized. The object node tree is used to represent the attribute values and preset relationships for each attribute in the object. By acquiring and determining the object identifier, attribute name and attribute value of the object to be serialized, and constructing the object node tree through the preset relationship between each attribute, the serialization of the object is realized efficiently through the object node tree, and the attribute value of each attribute of the object to be serialized and the preset relationship among the attribute names are clearly represented.

Description

technical field [0001] The invention belongs to the field of computer application technology, and in particular relates to an object serialization method, a terminal device and a computer-readable storage medium. Background technique [0002] In some distributed development programs, in order to facilitate the use and data communication, it is necessary to convert the state information of the object into a form that can be kept or transmitted. This process is serialization, and its reverse process is called deserialization. The two processes combine to easily store and transfer data. In order to pass formatted data across processes, when two processes communicate remotely, they can send various types of data to each other. No matter what type of data, it will be transmitted on the network in the form of sequence. The sender needs to convert this object into a sequence of bytes before it can be transmitted on the network; the receiver needs to convert the sequence of bytes ...

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): G06F9/448
CPCG06F9/4488
Inventor 许剑勇
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products