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

Serializing device and serializing method

A serialization and deserialization technology, applied in the direction of program control design, instrumentation, electrical digital data processing, etc., can solve the problems of poor versatility of binary serializers, achieve the effect of improving efficiency, improving versatility, and reducing storage space

Active Publication Date: 2013-03-20
YONYOU UP INFORMATION TECH
View PDF3 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] In this technical solution, the user can judge the type of the source object to be serialized according to the preset simple type and the preset complex type, and the preset simple type and the preset complex type can be set as the common basic Data type, and the serialized data can be stored in the form of byte stream, and byte is the basic unit of calculation, storage and transmission of data. Various programming languages ​​can recognize bytes, so as to solve the general problem of binary serializer sex problem

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
  • Serializing device and serializing method
  • Serializing device and serializing method
  • Serializing device and serializing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.

[0032] In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described here. Therefore, the protection scope of the present invention is not limited by the specific details disclosed below. EXAMPLE LIMITATIONS.

[0033] figure 1 A block diagram of a serialization device according to an embodiment of the present invention is shown.

[0034] Such as figure 1 As shown, the serialization device 100 according t...

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 provides a serializing device. The serializing device comprises a first judgment unit, a first conversion unit, a first acquisition unit, a calculation unit and a memory unit, wherein the first judgment unit is used for judging whether a source object belongs to a preset simple type; when the source object belongs to the preset simple type, the state information of the source object is converted into to-be-stored data by the first conversion unit; when the source object belongs to a preset complex type, the first acquisition unit is used for acquiring non-empty attributes in the source object, generating relative description data according to the attributes and buffering the description data to a temporary byte stream; the calculation unit is used for calculating the sum of the byte stream length of the description data and the byte stream length of result data; and the memory unit is used for saving the to-be-stored data to a target byte stream, serializing the byte stream length of the source object to the target byte stream and saving the description data and the result data to the target byte stream. The invention further provides a serializing method. Through the technical scheme of the invention, the serializing universality can be improved, the serializing efficiency is increased, and memory space occupied by the data after serializing is reduced.

Description

technical field [0001] The present invention relates to the technical field of serialization and deserialization, in particular, to a serialization device and a serialization method. Background technique [0002] Each programming language provides its own serialization and deserialization methods. After serialization through the methods provided by these programming languages, the data occupies a relatively large space, and after serialization, only the deserialization of the corresponding language can be used. method for deserialization. [0003] The current serialization devices are mainly divided into two categories, one is a binary serializer, and the other is an XML (Extensible Markup Language) serializer. [0004] The advantage of the binary serializer is that the serialization efficiency is high, but the readability of the binary data is poor, and the format of the serialized data must be known to be deserialized, and the format of the object serialization will be di...

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/45
Inventor 蒋生锋
Owner YONYOU UP INFORMATION TECH
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