CN115630614B - Data transmission method, device, electronic equipment and medium - Google Patents
Data transmission method, device, electronic equipment and medium Download PDFInfo
- Publication number
- CN115630614B CN115630614B CN202211660518.9A CN202211660518A CN115630614B CN 115630614 B CN115630614 B CN 115630614B CN 202211660518 A CN202211660518 A CN 202211660518A CN 115630614 B CN115630614 B CN 115630614B
- Authority
- CN
- China
- Prior art keywords
- data
- serialized
- positive
- preset
- format
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/126—Character encoding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention relates to the technical field of communication, and discloses a data transmission method, a data transmission device, electronic equipment and a medium. The method comprises the steps of obtaining a data object to be serialized, and determining the data type of the data object to be serialized; serializing the data objects to be serialized on the basis of the data types and the preset coding formats corresponding to the data types to obtain corresponding serialized data; the preset coding format is used for representing serialization modes of data objects aiming at different data types; determining receiving equipment corresponding to a data object to be serialized, and storing and/or transmitting the serialized data to the receiving equipment; thereby realizing cross-platform storage or network data transmission of data.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, electronic device, and medium.
Background
When data interaction is performed between different computer systems or services, data objects to be interacted need to be converted into data transmission data in a transmittable format through data transmission, and the data transmission data can be binary data streams, so that operations such as holding or transmitting the data transmission data can be performed. The application scenarios of serialization and deserialization in actual development include: (1) The object needs to be serialized before network transmission (such as remote method call (RPC)), and deserialization needs to be performed after the serialized object is received; (2) When the object is stored in the file, serialization is needed, and when the object is read from the file, deserialization is needed; (3) Serialization is needed when objects are stored in a cache database (such as Redis), and deserialization is needed when the objects are read out from the cache database.
Serialization refers in the data processing of computer science to the process of converting a data structure or object state into an accessible format (e.g., as a file, in a buffer, or sent over a network) for subsequent restoration of the original state in the same or another computer environment. When the result of retrieving bytes in a serialized format, it can be used to generate a copy of the same semantics as the original object. For many objects, such as complex objects using a large number of references, this process of serialized reconstruction is not easy. Object serialization in object-oriented does not generalize the functions that the original objects previously had in relation to. This process is also referred to as object grouping. The reverse operation, which extracts a data structure from a series of bytes, is deserialization (also known as de-marshalling).
At present, the serialization and deserialization methods have poor flexibility, lack a serialization flow sending strategy corresponding to a corresponding scene, and have low data transmission and processing efficiency.
Disclosure of Invention
The invention mainly aims to provide a data transmission method, a data transmission device, electronic equipment and a medium, and aims to realize cross-platform storage or network data transmission of data.
In order to achieve the above object, the present invention provides a data transmission method, which includes the following steps:
acquiring a data object to be serialized, and determining the data type of the data object to be serialized;
serializing the data objects to be serialized on the basis of the data types and the preset coding formats corresponding to the data types to obtain corresponding serialized data; the preset coding format is used for representing serialization modes of data objects aiming at different data types;
and determining a receiving device corresponding to the data object, and storing and/or transmitting the serialized data to the receiving device.
Preferably, the step of serializing the data object to be serialized based on the data type and the encoding format corresponding to the data type to obtain corresponding serialized data includes:
determining a preset coding format corresponding to the data type according to the data type; the data types comprise one or more of positive numbers, negative numbers, byte arrays, single-precision floating point numbers, double-precision floating point numbers and character strings, and each data type corresponds to a specific coding format;
and serializing the data objects to be serialized according to a preset coding format to obtain corresponding serialized data.
Preferably, the data type includes a positive number, and the step of serializing the data object to be serialized according to a preset encoding format to obtain corresponding serialized data includes:
determining a positive number encoding format corresponding to the positive number under the condition that the data type comprises the positive number;
converting the data object to be serialized into corresponding binary data based on the positive number coding format, and performing reverse order separation on the binary data according to a preset decomposition mode to obtain positive number separation data; the positive number separating data comprises first tuple data and a plurality of second tuple data;
respectively filling high-order bits of the first tuple data and the second tuple data based on a preset filling mode to obtain filled positive data, and converting the filled positive data into corresponding hexadecimal format data;
and arranging the hexadecimal format data according to a small-end mode to obtain arranged positive data, and inserting a positive declaration into a preset position of the arranged positive data to obtain corresponding serialized data.
Preferably, the data type includes a byte array, and the step of serializing the data object to be serialized according to a preset encoding format to obtain corresponding serialized data includes:
determining a byte array encoding format corresponding to a byte array under the condition that the data type comprises the byte array;
based on the byte array coding format, arranging the data objects to be serialized according to a small-end mode to obtain an arranged byte array;
serializing the arranged byte arrays according to a preset positive number coding format to obtain corresponding serialized data; wherein a positive number declaration character, a tuple start character and a tuple end character are inserted into preset positions of the serialized data.
Preferably, the data type includes a floating point number, and the step of serializing the data object to be serialized according to a preset encoding format to obtain corresponding serialized data includes:
under the condition that the data type comprises a floating point number, determining a floating point number encoding format corresponding to the floating point number; wherein the floating point number comprises a single precision or a double precision floating point number;
based on the floating point number coding format, reading the data object to be serialized in an integral or long-integral mode in an internal memory, and serializing the data object to be serialized according to a positive or negative number coding format to obtain corresponding serialized data; wherein a declaration of a positive number or a negative number is inserted into a preset position of the serialized data.
Preferably, the data type includes a character string, and the step of serializing the data object to be serialized according to a preset encoding format to obtain corresponding serialized data includes:
determining a character string encoding format corresponding to the character string under the condition that the data type comprises the character string;
serializing the data object to be serialized based on the byte array coding format to obtain corresponding serialized data; wherein the byte array encoding format comprises ASCII encoding or UTF-8 encoding; and a character declaration symbol is inserted into a preset position of the serialized data.
Preferably, after the step of determining a receiving device corresponding to the data object and storing and/or transmitting the serialized data to the receiving device, the method further includes:
and determining a declaration identifier to which the serialized data belongs, and deserializing the serialized data based on a preset decoding format corresponding to the declaration identifier to obtain a data object corresponding to the serialized data.
In addition, to achieve the above object, the present invention further provides a data transmission device, including:
the device comprises a determining module, a determining module and a processing module, wherein the determining module is used for acquiring a data object to be serialized and determining the data type of the data object to be serialized;
the coding module is used for serializing the data object to be serialized to obtain corresponding serialized data based on the data type and a preset coding format corresponding to the data type; the preset coding format is used for representing serialization modes of data objects aiming at different data types;
and the transmission module is used for determining the receiving equipment corresponding to the data object and storing and/or transmitting the serialized data to the receiving equipment.
In addition, to achieve the above object, the present invention also provides an electronic device including: a memory, a processor and a data transmission program stored on the memory and executable on the processor, the data transmission program, when executed by the processor, implementing the steps of the data transmission method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a data transmission program, which when executed by a processor, implements the steps of the data transmission method as described above.
The invention provides a data transmission method, a data transmission device, electronic equipment and a medium. The method comprises the steps of obtaining a data object to be serialized, and determining the data type of the data object to be serialized; determining a preset coding format corresponding to the data type according to the data type, and serializing the data object to be serialized according to the preset coding format to obtain corresponding serialized data; the preset coding format is used for representing serialization modes of data objects aiming at different data types; determining receiving equipment corresponding to a data object to be serialized, and storing and/or transmitting the serialized data to the receiving equipment; thereby realizing cross-platform storage or network data transmission of data.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a data transmission method according to a first embodiment of the present invention;
FIG. 3 is a sub-flowchart of a first embodiment of a data transmission method according to the present invention;
FIG. 4 is a schematic diagram illustrating the effect of continuous encoding of data objects to be serialized according to the first embodiment of the data transmission method of the present invention;
FIG. 5 is a flowchart illustrating a data transmission method according to a second embodiment of the present invention;
FIG. 6 is a diagram illustrating serialization in the case that the data object to be serialized is a positive number according to the second embodiment of the data transmission method of the present invention;
FIG. 7 is a diagram illustrating the serialization process in the case where the data object to be serialized is a negative number according to the second embodiment of the data transmission method of the present invention;
FIG. 8 is a flowchart illustrating a data transmission method according to a third embodiment of the present invention;
FIG. 9 is a schematic diagram of serialization in a third embodiment of the data transmission method according to the present invention, where the data object to be serialized is a byte array;
FIG. 10 is a flowchart illustrating a data transmission method according to a fourth embodiment of the present invention;
fig. 11 is a flowchart illustrating a data transmission method according to a fifth embodiment of the invention;
fig. 12 is a schematic diagram of serialization in the case that the data object to be serialized is a character string according to the third embodiment of the data transmission method of the present invention;
fig. 13 is a functional block diagram of a data transmission device according to a first embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The electronic equipment of the embodiment of the invention can be mobile terminal or server equipment.
As shown in fig. 1, the electronic device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a data transmission program.
The operating system is a program for managing and controlling electronic equipment and software resources, and supports the running of a network communication module, a user interface module, a data transmission program and other programs or software; the network communication module is used for managing and controlling the network interface 1002; the user interface module is used to manage and control the user interface 1003.
In the electronic device shown in fig. 1, the electronic device calls a data transfer program stored in a memory 1005 by a processor 1001 and performs operations in various embodiments of a data transfer method described below.
Based on the hardware structure, the embodiment of the data transmission method is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a data transmission method of the present invention, where the data transmission method includes:
step S10, acquiring a data object to be serialized, and determining the data type of the data object to be serialized;
s20, serializing the data objects to be serialized on the basis of the data types and the preset coding formats corresponding to the data types to obtain corresponding serialized data; the preset coding format is used for representing serialization modes of data objects aiming at different data types;
and step 30, determining a receiving device corresponding to the data object, and storing and/or transmitting the serialized data to the receiving device.
In this embodiment, a data object to be serialized is obtained, and a data type to which the data object to be serialized belongs is determined; determining a preset coding format corresponding to the data type according to the data type, and serializing the data object to be serialized according to the preset coding format to obtain corresponding serialized data; determining receiving equipment corresponding to a data object to be serialized, and storing and/or transmitting the serialized data to the receiving equipment; thereby realizing cross-platform storage or network data transmission of data.
The respective steps will be described in detail below:
step S10, acquiring a data object to be serialized, and determining the data type of the data object to be serialized.
In this embodiment, for data interaction of different computer systems, for example, the computer system a needs to transmit a data object to the computer system B, and in order to facilitate data transmission between the computer system a and the computer system B, the computer system a needs to serialize different types of data objects to obtain serialized data, where the serialized data may be a binary data stream. The computer system A then transmits the serialized data to the computer system B, and the computer system B deserializes the serialized data to restore the data object.
Acquiring data objects to be serialized from different channels, and identifying data types corresponding to the data objects to be serialized; the data type of the data object to be serialized comprises one or more of positive number, negative number, byte array, single-precision floating point number, double-precision floating point number and character string.
For example, the data objects to be serialized are: BSTP1, NON, POST, QOS0, "/data/carry";
the data objects to be serialized are: "accept", [ "bank/bsc", "bank/bst" ], "Content-Type", "bank/bsc", "Length",72, "Date", 1646817997; the data objects to be serialized are: "GETCMD",187ED5333168, [69, 10, 19, ec, b0,4c, dc, ec,9d, e5, b8, 16,7c, d4, 25, 86]; the data objects to be serialized are: 35, 1, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114.
In the above example, the data object to be serialized is divided into corresponding elementary units by different delimiters; the separator includes: comma (Comma) delimiters ",", delimiters for separating one unit;
semicolon separators "; ", a delimiter for separating a set of elementary units;
the bracket separator "[ ]", the elements in the square brackets are tuples, and the elements in the tuples are separated by comma separators;
the quotation mark separator "" is used, characters in quotation marks are a character string, and reserved keywords are not separated by quotation marks.
S20, serializing the data objects to be serialized on the basis of the data types and the preset coding formats corresponding to the data types to obtain corresponding serialized data; the preset encoding format is used for representing serialization modes of data objects aiming at different data types.
In an embodiment, according to the data type of the data object to be serialized, a preset encoding format corresponding to the data type is determined, and the data object to be serialized is serialized according to the preset encoding format to obtain corresponding serialized data; the preset encoding format is used for representing the serialization mode of the data objects aiming at different data types. For example, if we want to transport a house from one place to another, serialization is that i tear down the house into bricks one by one and put them in a car, then leave a drawing of the original structure of the house, and deserialization is the process of reducing a brick into the original face of the house according to the drawing after we transport the house to the destination.
In addition, comparing the coding format of the data transmission method with the direct coding mode, the byte length of the serialized data obtained by adopting the data transmission method can be detected to be smaller than the byte length of the message data obtained by adopting the direct coding mode, namely, the data transmission method can also reduce the data volume of the transmitted data.
As an example, a segment of message content is extracted as original message data, where the original message data is:
02801408004E0000000000010001010400AF000000000000113000000000038400000BB8000000000000586862A00002F10C000000000000E7BABFE8B7AF310000000000000000000000000000000000;
the definition in the reference message can resolve the actual meaning of the message as shown in the following table:
the message content after BSTP coding is as follows:
FC82800288508E0180808180818404AF02808080B0448080840E80B82E8080A00A43060B8C4417808080FBE7BABFE8B7AF3100FF
the comparison shows that the length of the original message data is 80 bytes, and the length of the original message data converted into the coded message data of the data transmission method is 52 bytes.
Further, in an embodiment, referring to fig. 3, step S20 includes:
step S21, determining a preset coding format corresponding to the data type according to the data type; the data types comprise one or more of positive numbers, negative numbers, byte arrays, single-precision floating point numbers, double-precision floating point numbers and character strings, and each data type corresponds to a specific coding format;
and S22, serializing the data object to be serialized according to a preset coding format to obtain corresponding serialized data.
In this embodiment, according to the data type of the data object to be serialized, a preset encoding format corresponding to the data type is determined. The data type comprises one or more of positive numbers, negative numbers, byte arrays, single-precision floating point numbers, double-precision floating point numbers and character strings, and each data type corresponds to a specific coding format.
Specifically, the preset encoding format includes but is not limited to: positive number encoding format, negative number encoding format, byte array encoding format, single precision floating point encoding format, double precision floating point encoding format, and string encoding format.
After the preset coding format is determined, serializing the data object to be serialized through the preset coding format to obtain corresponding serialized data. Thereby improving the serialization efficiency of the data.
In addition, a declaration identifier corresponding to each data type is inserted into a preset position in the serialized data. For example, when the data object to be serialized is a positive number, a positive number declaration (AC) is inserted at the forefront position in the corresponding serialized data. For example, the serialized data is: FC AC 66 7D, where FC is a positive number specifier.
Referring to table 1, table 1 is a description of reserved keys for serialized data.
Furthermore, since the above-described encoding has a self-partitioning property, in the case where a data object to be serialized triggers sequential encoding, if the same data type exists in the data object to be serialized, the encoding type identifier can be omitted starting from the second data of the same data type. Referring to fig. 4, fig. 4 is a schematic diagram illustrating the effect of continuous coding; the process of data compression by successive encoding "meter", "W/h",2200, 6400, 486, 12 is shown in fig. 4.
And step 30, determining a receiving device corresponding to the data object, and storing and/or transmitting the serialized data to the receiving device.
In this embodiment, a receiving device corresponding to a data object to be serialized is determined, and the serialized data is stored and/or transmitted to the receiving device; wherein the receiving device comprises a computer device or system; thereby realizing cross-platform storage or network data transmission of data.
Further, in an embodiment, after the step S30, the method further includes: and determining a declaration identifier to which the serialized data belongs, and deserializing the serialized data based on a preset decoding format corresponding to the declaration identifier to obtain a data object corresponding to the serialized data.
In this embodiment, after the receiving device obtains the corresponding serialized data, the declaration identifier described in the serialized data is determined; and then, determining a preset decoding format according to the declaration identifier, and then deserializing the serialized data through the preset decoding format to obtain a data object corresponding to the serialized data. Therefore, the serialized data can be restored to the original data object (namely, the data object to be serialized) content through the deserialization operation.
Wherein, the declaration identifier can be used for identifying the data type corresponding to each serialized data, and the declaration identifier is located at the front part of the serialized data; for example, the serialized data is FC AC 66 7D, where FC is the declarative identifier of the serialized data and FC indicates that the serialized data is a positive number.
Each declaration identifier corresponds to a particular (i.e., unique) preset decoding format.
In the embodiment, the data object to be serialized is obtained, and the data type of the data object to be serialized is determined; determining a preset coding format corresponding to the data type according to the data type, and serializing the data object to be serialized according to the preset coding format to obtain corresponding serialized data; determining receiving equipment corresponding to a data object to be serialized, and storing and/or transmitting the serialized data to the receiving equipment; thereby realizing cross-platform storage or network data transmission of data.
Further, a second embodiment of the data transmission method of the present invention is proposed based on the first embodiment of the data transmission method of the present invention.
The difference between the second embodiment of the data transmission method and the first embodiment of the data transmission method is that in this embodiment, for step S22, the data object to be serialized is serialized according to a preset coding format, so as to obtain refinement of corresponding serialized data, and referring to fig. 5, this step specifically includes:
step A10, determining a positive number encoding format corresponding to a positive number under the condition that the data type comprises the positive number;
step A20, based on the positive number coding format, converting the data object to be serialized into corresponding binary data, and performing reverse order separation on the binary data according to a preset decomposition mode to obtain positive number separation data; wherein the positive number separating data comprises a first tuple data and a plurality of second tuple data;
step A30, based on a preset filling mode, respectively filling the high order of the first tuple data and each second tuple data to obtain filled positive data, and converting the filled positive data into corresponding hexadecimal format data;
and A40, arranging the hexadecimal format data according to a small-end mode to obtain arranged positive data, and inserting a positive declaration into a preset position of the arranged positive data to obtain corresponding serialized data.
In the embodiment, in the case that the data type includes a positive number, a positive number encoding format corresponding to the positive number is determined; converting a data object to be serialized into corresponding binary data based on a positive number coding format, and performing reverse order separation on the binary data according to a preset decomposition mode to obtain positive number separation data; the positive number separating data comprises first tuple data and a plurality of second tuple data; respectively filling the high order of the first tuple data and each second tuple data based on a preset filling mode to obtain filled positive data, and converting the filled positive data into corresponding hexadecimal format data; arranging the hexadecimal format data according to a small-end mode to obtain arranged positive data, and inserting a positive declaration into a preset position of the arranged positive data to obtain corresponding serialized data; thereby realizing positive number serialization and improving positive number serialization efficiency.
The respective steps will be described in detail below:
step A10, under the condition that the data type comprises a positive number, determining a positive number coding format corresponding to the positive number.
In this embodiment, in the case that the data type of the data object to be serialized is determined to be a positive number, a positive number encoding format corresponding to the positive number is determined. And the data object to be serialized can be serialized according to the positive number coding format, so that positive number serialization is realized, and the positive number serialization efficiency is improved. Referring to fig. 6, fig. 6 is a schematic diagram of serialization in the case where the data object to be serialized is a positive number; FIG. 6 shows the process of encoding a positive number 1030572, resulting in an encoding of FC AC 66 7D, where FC is the positive number specifier.
Step A20, based on the positive number coding format, converting the data object to be serialized into corresponding binary data, and performing reverse order separation on the binary data according to a preset decomposition mode to obtain positive number separation data; the positive number separation data comprises first tuple data and a plurality of second tuple data.
In this embodiment, a data object to be serialized is expanded in a binary format according to a positive number encoding format and converted into binary data corresponding to the data object to be serialized; then, carrying out reverse order separation on the binary data in a 6bit + n × 7bit mode to obtain positive number separation data; the positive number separating data comprises first tuple data and a plurality of second tuple data. The first tuple data is 6-bit data, and the second tuple data is 7-bit data.
Fig. 6 shows the process of encoding 1030572 in the case where the data object to be serialized is a positive number 1030572, and finally the encoded FC AC 66 7D is obtained.
Converting 1030572 into binary data of 00001111 10111001 10101100 in the step (1);
step (2) the binary data is divided into two parts according to the method of 7n + 6: 1111101 1100110 101100. Wherein "101100" is the first tuple data, and "1111101" are the second tuple data.
And step A30, respectively filling the high order of the first tuple data and each second tuple data based on a preset filling mode to obtain filled positive data, and converting the filled positive data into corresponding hexadecimal format data.
In this embodiment, 10 is inserted into the upper bits of the first tuple data (i.e., 6-bit data), and 0 is complemented into the upper bits of the second tuple data (i.e., the remaining 7-bit data), so as to obtain the filled positive data, and convert the filled positive data into the corresponding hexadecimal format data.
Fig. 6 shows the process of encoding 1030572 in the case where the data object to be serialized is a positive number 1030572, and finally the encoded FC AC 66 7D is obtained.
Supplementing high bits, wherein the positive data after filling is as follows: 01111101 01100110 10101100;
step (4) converting the filled positive number data into hexadecimal, wherein the hexadecimal format data is as follows: 7D 66 AC.
And A40, arranging the hexadecimal format data according to a small-end mode to obtain arranged positive data, and inserting a positive declaration into a preset position of the arranged positive data to obtain corresponding serialized data.
In this embodiment, after obtaining the data in the hexadecimal format, the data in the hexadecimal format is arranged according to a small-end mode to obtain arranged positive data; then, a positive number declaration symbol is inserted into the top of the arranged positive number data, and corresponding serialized data is obtained. The small-end mode refers to an arrangement mode of hexadecimal format data according to low byte data in front and high byte data in back; the preset position is the foremost position of the arranged positive data.
Referring to fig. 6, fig. 6 shows a process of encoding 1030572 in a case where a data object to be serialized is a positive number 1030572, and finally obtaining an encoded FC AC 66 7D.
Arranging the hexadecimal format data according to a small-end mode, wherein the arranged positive data is as follows: AC 66 7D;
step (6) indicates the coding domain, specifically, a positive number declaration is inserted at a preset position of the arranged positive number data, and the serialized data is: FC (positive declaration) AC 66 7D.
In addition, in the case that the data type includes a negative number, determining a negative number encoding format corresponding to the negative number; then, serializing the data object to be serialized according to the negative number encoding format; specifically, the data object to be serialized is converted into a positive number after being inverted, and the inverted data object to be serialized is serialized according to a positive number coding format, so that negative number serialization is realized, and the negative number serialization efficiency is improved.
Referring to FIG. 7, FIG. 7 is a schematic diagram of serialization in the case where the data object to be serialized is a negative number; FIG. 7 shows the encoding process of negative numbers (-708492), and the resulting code is FD 8C 3E 56, where FD is the negative number declaration.
Step (1), inverting (namely, taking an absolute value) 708492 and converting the inverted value into a binary system, wherein binary data is 1010 11001111 10001100;
step (2) separating the binary data according to a mode of 7n +6, and filling high bits, wherein negative data after filling are as follows: 01010110 00111110 10001100. Wherein, "001100" is the first tuple data, "1010110" and "0111110" are the second tuple data;
and (3) converting the filled positive number data into hexadecimal, and arranging according to a small-end mode, wherein the arranged negative number data is as follows: 8C 3E 56;
step (4) indicates the coding field, specifically, a negative number declaration is inserted in a preset position of the arranged negative number data, and the serialized data is as follows: FD (negative declaration) 8C 3E 56.
In the embodiment, in the case that the data type includes a positive number, a positive number encoding format corresponding to the positive number is determined; based on the positive number coding format, converting a data object to be serialized into corresponding binary data, and performing reverse order separation on the binary data according to a preset decomposition mode to obtain positive number separation data; the positive number separating data comprises first tuple data and a plurality of second tuple data; respectively filling high-order bits of the first tuple data and the second tuple data based on a preset filling mode to obtain filled positive data, and converting the filled positive data into corresponding hexadecimal format data; arranging the hexadecimal format data according to a small-end mode to obtain arranged positive data, and inserting a positive declaration into a preset position of the arranged positive data to obtain corresponding serialized data; thereby realizing positive number serialization and improving positive number serialization efficiency.
Further, based on the first and second embodiments of the data transmission method of the present invention, a third embodiment of the data transmission method of the present invention is provided.
The third embodiment of the data transmission method is different from the first and second embodiments of the data transmission method in that in this embodiment, for step S22, the data object to be serialized is serialized according to a preset coding format, so as to obtain refinement of corresponding serialized data, and referring to fig. 8, the step specifically includes:
step B10, under the condition that the data type comprises a byte array, determining a byte array coding format corresponding to the byte array;
step B20, based on the byte array coding format, arranging the data objects to be serialized according to a small-end mode to obtain an arranged byte array;
step B30, obtaining corresponding serialized data for the arranged byte arrays according to a preset positive number coding format; wherein a positive number declaration, a tuple start character and a tuple end character are inserted into preset positions of the serialized data.
In this embodiment, a byte array encoding format corresponding to a byte array is determined by determining the byte array encoding format when the data type includes the byte array; arranging the data objects to be serialized according to a small-end mode based on the byte array coding format and the byte array coding format to obtain an arranged byte array; serializing the arranged byte arrays according to a preset positive number coding format to obtain corresponding serialized data; wherein a positive number declaration character, a tuple start character and a tuple end character are inserted into preset positions of the serialized data; thereby realizing byte array serialization and improving byte array serialization efficiency.
The respective steps will be described in detail below:
and B10, determining a byte array coding format corresponding to the byte array under the condition that the data type comprises the byte array.
In this embodiment, when the data type of the data object to be serialized is determined to be a byte array, a byte array encoding format corresponding to the byte array is determined. And the data object to be serialized can be serialized according to the byte array coding format, so that byte array serialization is realized, and byte array serialization efficiency is improved. Referring to fig. 9, fig. 9 is a schematic diagram of serialization in the case where the data object to be serialized is a byte array; FIG. 9 shows the process of byte array (56H, 1FH,30H,67H,9AH, 6CH) encoding, and the final result is encoded as FC AC 96 7D 00 73 4C 26 FE, where FC is positive number declaration symbol, AC is tuple start symbol, and FE is tuple end symbol.
And step B20, based on the byte array coding format, arranging the data objects to be serialized according to a small-end mode to obtain an arranged byte array.
In this embodiment, according to the byte array encoding format, the data objects to be serialized are arranged according to a small-end mode, and the arranged byte arrays; and then transmitting the plurality of groups of the partitioned data according to a positive number coding format to obtain the serialized data corresponding to the byte array.
FIG. 9 shows the process of byte array (56H, 1FH,30H,67H,9AH, 6CH) encoding, and the final result is encoded as FC AC 96 7D 00 73 4C 26 FE, where FC is positive number declaration symbol, AC is tuple start symbol, and FE is tuple end symbol.
Step (1) arranging the data objects to be serialized according to a small-end mode, wherein the arranged byte array is as follows: 6C 9A 67 30 1F 56;
b30, serializing the arranged byte arrays according to a preset positive number coding format to obtain corresponding serialized data; wherein a positive number declaration, a tuple start character and a tuple end character are inserted into preset positions of the serialized data.
In this embodiment, after the arranged byte array is obtained, the arranged byte array is serialized according to a positive number encoding format to obtain corresponding serialized data; wherein, a positive number declaration character, a tuple start character and a tuple end character are inserted into preset positions of the serialized data. Referring specifically to fig. 9, fig. 9 shows the process of encoding the byte array (56h, 1fh,30h,67h,9ah, 6ch), and the resultant code is FC AC 96 7D 00 73 4C 26 FE, where FC is the positive number specifier, AC is the tuple start, and FE is the tuple end.
FIG. 9 shows the process of byte array (56H, 1FH,30H,67H,9AH, 6CH) encoding, and the final result is encoded as FC AC 96 7D 00 73 4C 26 FE, where FC is positive number declaration symbol, AC is tuple start symbol, and FE is tuple end symbol.
Step (2) the arranged byte array is converted into binary system, and the binary data is 01101101100 11010 01100111 00110000 000011111 01010110;
step (3) separating the binary data by 7n +6 and filling high bits, wherein the filled byte array is as follows: 00110110 00110110 01001100 01110011 00000000 001111101 10010110. Wherein "010110" is first tuple data, "0110110110", "0110110", "1001100", "1110011", "0000000", "001111101", and "010110" is second tuple data;
converting the filled byte array into hexadecimal data, and arranging the hexadecimal data according to a small-end mode, wherein the arranged byte array is as follows: 96 7d 00 73 c 26;
step (5) indicates the encoding domain, the encoding start and the encoding end, specifically, a positive number declaration symbol, a tuple start symbol and a tuple end symbol are inserted into a preset position of the arranged negative number data, and the serialized data is as follows: and the FC AC 96 7D 00 73C 26 FE, wherein FC is a positive number declaration character, AC is a tuple start character, and FE is a tuple end character.
In this embodiment, when the data type includes a byte array, a byte array encoding format corresponding to the byte array is determined; arranging the data objects to be serialized according to a small-end mode based on the byte array coding format and the byte array coding format to obtain an arranged byte array; serializing the arranged byte arrays according to a preset positive number coding format to obtain corresponding serialized data; wherein a positive number declaration character, a tuple start character and a tuple end character are inserted into preset positions of the serialized data; thereby realizing byte array serialization and improving byte array serialization efficiency.
Further, based on the first, second, and third embodiments of the data transmission method of the present invention, a fourth embodiment of the data transmission method of the present invention is provided.
The fourth embodiment of the data transmission method is different from the first, second, and third embodiments of the data transmission method in that in this embodiment, for step S22, the data object to be serialized is serialized according to a preset coding format, so as to obtain refinement of corresponding serialized data, and referring to fig. 10, the step specifically includes:
step C10, under the condition that the data type comprises a floating point number, determining a floating point number coding format corresponding to the floating point number; wherein the floating point number comprises a single precision or a double precision floating point number;
step C20, based on the floating-point number coding format, reading the data objects to be serialized in the memory in an integer or long integer mode, and serializing the data objects to be serialized in a positive number or negative number coding format to obtain corresponding serialized data; wherein a declaration of a positive number or a negative number is inserted into a preset position of the serialized data.
In this embodiment, a floating point number encoding format corresponding to a floating point number is determined by determining, when the data type includes the floating point number; wherein the floating point number comprises a single precision or double precision floating point number; reading the data objects to be serialized in an integer or long integer mode in the memory based on a floating point number coding format, and serializing the data objects to be serialized according to a positive number or negative number coding format to obtain corresponding serialized data; wherein, a declaration symbol of positive number or negative number is inserted in a preset position of the serialized data; thereby realizing floating-point number serialization and improving the floating-point number serialization efficiency.
The respective steps will be described in detail below:
step C10, under the condition that the data type comprises a floating point number, determining a floating point number coding format corresponding to the floating point number; wherein the floating point number comprises a single precision or a double precision floating point number.
In this embodiment, when the data type of the data object to be serialized is determined to be a floating point number, a floating point number encoding format corresponding to the floating point number is determined. And then the data objects to be serialized can be serialized according to the floating-point number encoding format, so that floating-point number serialization is realized, and the floating-point number serialization efficiency is improved.
The floating point number comprises a single-precision floating point number or a double-precision floating point number;
the length of the single-precision floating point number is 4 bytes, the single-precision floating point number is read in an integral mode in an internal memory and then processed in a positive number/negative number mode;
the double-precision floating point number is 8 bytes in length, is read in a memory in a long integer mode and is processed in a positive/negative number mode.
Step C20, based on the floating-point number coding format, reading the data objects to be serialized in the memory in an integer or long integer mode, and serializing the data objects to be serialized in a positive number or negative number coding format to obtain corresponding serialized data; wherein a declaration of a positive number or a negative number is inserted into a preset position of the serialized data.
In this embodiment, when it is determined that the data type of the data object to be serialized is a single-precision floating point number, reading the data object to be serialized in the memory in an integer manner according to the floating point number encoding format, and serializing the data object to be serialized according to the encoding format of a positive number or a negative number to obtain corresponding serialized data; wherein, the declaration symbol of positive number or negative number is inserted in the preset position of the serialized data.
If so, reading the data object to be serialized in the memory in an integer mode according to the floating-point number coding format, and serializing the data object to be serialized according to the positive number coding format to obtain corresponding serialized data; wherein a positive number declaration is inserted into a predetermined position of the serialized data.
Reading the data objects to be serialized in the memory in an integer mode according to the floating point number coding format, and serializing the data objects to be serialized according to the negative number coding format to obtain corresponding serialized data; wherein a negative number declaration is inserted into a preset position of the serialized data.
Under the condition that the data type of the data object to be serialized is determined to be a double-precision floating point number, reading the data object to be serialized in the internal memory in a long integer mode according to the encoding format of the floating point number, and serializing the data object to be serialized according to the encoding format of a positive number or a negative number to obtain corresponding serialized data; wherein the declaration of positive or negative number is inserted into the preset position of the serialized data.
In this embodiment, a floating point number encoding format corresponding to a floating point number is determined by determining, when the data type includes the floating point number; wherein the floating point number comprises a single precision or double precision floating point number; reading the data objects to be serialized in an integer or long integer mode in the memory based on a floating point number coding format, and serializing the data objects to be serialized according to a positive number or negative number coding format to obtain corresponding serialized data; wherein, a declaration symbol of positive number or negative number is inserted in the preset position of the serialized data; thereby realizing floating-point number serialization and improving the floating-point number serialization efficiency.
Further, a fifth embodiment of the data transmission method of the present invention is provided based on the first, second, third, and fourth embodiments of the data transmission method of the present invention.
The fifth embodiment of the data transmission method is different from the first, second, third, and fourth embodiments of the data transmission method in that in this embodiment, for step S22, the data object to be serialized is serialized according to a preset coding format, so as to obtain refinement of corresponding serialized data, referring to fig. 11, the step specifically includes:
step D10, determining a character string encoding format corresponding to the character string under the condition that the data type comprises the character string;
step D20, serializing the data object to be serialized based on the byte array coding format to obtain corresponding serialized data; wherein the byte array encoding format comprises ASCII encoding or UTF-8 encoding; and a character declaration symbol is inserted into a preset position of the serialized data.
In the embodiment, under the condition that the data type comprises the character string, the character string encoding format corresponding to the character string is determined; serializing the data object to be serialized based on the byte array coding format to obtain corresponding serialized data; the byte array coding format comprises ASCII coding or UTF-8 coding; inserting a character declaration symbol in a preset position of the serialized data; thereby realizing the serialization of the character string and improving the efficiency of the serialization of the character string.
The respective steps will be described in detail below:
and D10, determining a character string encoding format corresponding to the character string under the condition that the data type comprises the character string.
In this embodiment, in the case that the data type of the data object to be serialized is determined as a character string, a character string encoding format corresponding to the character string is determined. And then the data objects to be serialized can be serialized according to the character string coding format, thereby realizing character string serialization and improving the character string serialization efficiency.
Step D20, serializing the data object to be serialized based on the byte array coding format to obtain corresponding serialized data; wherein the byte array encoding format comprises ASCII encoding or UTF-8 encoding; and a character declaration character is inserted into a preset position of the serialized data.
In this embodiment, the character string supports ASCII code or UTF-8 encoding, and serializes the data object to be serialized in ASCII code or UTF-8 encoding format to obtain corresponding serialized data; wherein, the preset position of the serialized data is inserted with a character declaration character.
Wherein, the character string must be ended in 00H, if the end of the character string has no 00H (character ending identifier), the character string is ended by the need of supplementing 00H. The character string is coded without any change, and only the character string identifier FBH is inserted in front. As shown below, a process of encoding the character string "mantunsci".
Referring to fig. 12, fig. 12 shows the process of encoding the character string "mantunsci", and the result is encoded to FB 6D 61 6E 74 6E 73 63 69 00, where FB is the character string specifier and 00 is the character string end identifier.
In this embodiment, in a case where the data type includes a character string, a character string encoding format corresponding to the character string is determined; serializing the data object to be serialized based on the byte array coding format to obtain corresponding serialized data; wherein, the byte array coding format comprises ASCII coding or UTF-8 coding; inserting a character declaration symbol in a preset position of the serialized data; thereby realizing the serialization of the character string and improving the efficiency of the serialization of the character string.
The present invention also provides a data transmission apparatus, referring to fig. 13, the data transmission apparatus including:
a determining module 10, configured to receive a data object to be serialized and determine a data type to which the data object to be serialized belongs;
the encoding module 20 is configured to serialize the data object to be serialized to obtain corresponding serialized data based on the data type and a preset encoding format corresponding to the data type; the preset coding format is used for representing serialization modes of data objects aiming at different data types;
a transmission module 30, configured to determine a receiving device corresponding to the data object, and store and/or transmit the serialized data to the receiving device.
Furthermore, the present invention also provides a computer-readable storage medium having stored thereon a data transmission program which, when executed by a processor, implements the steps of the data transmission method as described above.
The method implemented when the data transmission program running on the processor is executed may refer to each embodiment of the data transmission method of the present invention, and details are not described here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or the portions contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present specification and the attached drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (7)
1. A data transmission method, characterized in that the data transmission method comprises the steps of:
acquiring a data object to be serialized, and determining the data type of the data object to be serialized;
serializing the data objects to be serialized on the basis of the data types and the preset coding formats corresponding to the data types to obtain corresponding serialized data; the preset coding format is used for representing serialization modes of data objects aiming at different data types;
determining receiving equipment corresponding to the data object, and storing and/or transmitting the serialized data to the receiving equipment;
determining a positive number coding format corresponding to a positive number under the condition that the data type comprises the positive number; converting the data object to be serialized into corresponding binary data based on the positive number coding format, and performing reverse order separation on the binary data according to a preset decomposition mode to obtain positive number separation data; the positive number separating data comprises first tuple data and a plurality of second tuple data; respectively filling high-order bits of the first tuple data and the second tuple data based on a preset filling mode to obtain filled positive data, and converting the filled positive data into corresponding hexadecimal format data;
arranging the hexadecimal format data according to a small-end mode to obtain arranged positive data, and inserting a positive declaration into a preset position of the arranged positive data to obtain corresponding serialized data;
wherein, when the data type comprises a negative number, determining a negative number encoding format corresponding to the negative number; based on the negative number coding format, inverting and converting the data object to be serialized into corresponding binary data, and performing reverse order separation on the binary data according to a preset decomposition mode to obtain negative number separation data; wherein the negative separation data comprises first tuple data and a plurality of second tuple data; respectively filling high-order bits of the first tuple data and the second tuple data based on a preset filling mode to obtain filled negative data, and converting the filled negative data into corresponding hexadecimal format data; and arranging the hexadecimal format data according to a small-end mode to obtain arranged negative data, and inserting a negative declaration into a preset position of the arranged negative data to obtain corresponding serialized data.
2. The data transmission method according to claim 1, wherein in a case where the data type includes a byte array, a byte array encoding format corresponding to the byte array is determined; based on the byte array coding format, arranging the data objects to be serialized according to a small-end mode to obtain an arranged byte array; serializing the arranged byte arrays according to a preset positive number coding format to obtain corresponding serialized data; wherein a positive number declaration, a tuple start character and a tuple end character are inserted into preset positions of the serialized data.
3. The data transmission method according to claim 1, wherein in a case where the data type includes a floating point number, a floating point number encoding format corresponding to the floating point number is determined; wherein the floating point number comprises a single precision or a double precision floating point number; based on the floating point number coding format, reading the data object to be serialized in an integral or long-integral mode in an internal memory, and serializing the data object to be serialized according to a positive or negative number coding format to obtain corresponding serialized data; wherein a declaration of a positive number or a negative number is inserted into a preset position of the serialized data.
4. The data transmission method according to claim 1, wherein after the step of determining the receiving device corresponding to the data object and storing and/or transmitting the serialized data to the receiving device, further comprising: and determining a declaration identifier to which the serialized data belongs, and deserializing the serialized data based on a preset decoding format corresponding to the declaration identifier to obtain a data object corresponding to the serialized data.
5. A data transmission apparatus, characterized in that the data transmission apparatus comprises:
the device comprises a determining module, a determining module and a processing module, wherein the determining module is used for acquiring a data object to be serialized and determining the data type of the data object to be serialized;
the coding module is used for serializing the data object to be serialized to obtain corresponding serialized data based on the data type and a preset coding format corresponding to the data type; the preset coding format is used for representing serialization modes of data objects aiming at different data types;
the encoding module is further configured to determine a positive number encoding format corresponding to the positive number when the data type includes the positive number; converting the data object to be serialized into corresponding binary data based on the positive number coding format, and performing reverse order separation on the binary data according to a preset decomposition mode to obtain positive number separation data; wherein the positive number separating data comprises a first tuple data and a plurality of second tuple data; respectively filling high-order bits of the first tuple data and the second tuple data based on a preset filling mode to obtain filled positive data, and converting the filled positive data into corresponding hexadecimal format data; arranging the hexadecimal format data according to a small-end mode to obtain arranged positive data, and inserting a positive declaration into a preset position of the arranged positive data to obtain corresponding serialized data;
and the transmission module is used for determining the receiving equipment corresponding to the data object and storing and/or transmitting the serialized data to the receiving equipment.
6. An electronic device, characterized in that the electronic device comprises: memory, processor and data transmission program stored on the memory and executable on the processor, which data transmission program, when executed by the processor, implements the steps of the data transmission method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that a data transmission program is stored thereon, which when executed by a processor implements the steps of the data transmission method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211660518.9A CN115630614B (en) | 2022-12-23 | 2022-12-23 | Data transmission method, device, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211660518.9A CN115630614B (en) | 2022-12-23 | 2022-12-23 | Data transmission method, device, electronic equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115630614A CN115630614A (en) | 2023-01-20 |
CN115630614B true CN115630614B (en) | 2023-03-28 |
Family
ID=84911026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211660518.9A Active CN115630614B (en) | 2022-12-23 | 2022-12-23 | Data transmission method, device, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115630614B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117498987B (en) * | 2024-01-02 | 2024-03-15 | 南京元阵视界科技有限公司 | Method applied to large-scale network data transmission |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114020272A (en) * | 2021-09-23 | 2022-02-08 | 微梦创科网络科技(中国)有限公司 | Serialized encoding and decoding methods and devices and electronic equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106777292B (en) * | 2016-12-29 | 2019-11-15 | 北京神州绿盟信息安全科技股份有限公司 | A kind of Data Serialization method and device |
US11416478B2 (en) * | 2019-01-08 | 2022-08-16 | Live Earth, LLC | Data structure and format for efficient storage or transmission of objects |
CN113905093A (en) * | 2021-08-20 | 2022-01-07 | 微梦创科网络科技(中国)有限公司 | Serialization and deserialization methods and devices and electronic equipment |
-
2022
- 2022-12-23 CN CN202211660518.9A patent/CN115630614B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114020272A (en) * | 2021-09-23 | 2022-02-08 | 微梦创科网络科技(中国)有限公司 | Serialized encoding and decoding methods and devices and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN115630614A (en) | 2023-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110597500B (en) | Method and device for serialization and deserialization of message structure | |
US8862759B2 (en) | Multiplexing binary encoding to facilitate compression | |
CN104753540B (en) | Data compression method, data decompression method and apparatus | |
CN106407201B (en) | Data processing method and device and computer readable storage medium | |
CN109902274B (en) | Method and system for converting json character string into thraft binary stream | |
US8120515B2 (en) | Knowledge based encoding of data with multiplexing to facilitate compression | |
CN102185901A (en) | Client message conversion method | |
JP2007226813A (en) | Method for compressing/decompressing structured document | |
EP1913697A2 (en) | Methods and devices for compressing and decompressing structured documents | |
CN105518673B (en) | Managing data ingestion | |
CN108733317B (en) | Data storage method and device | |
CN110263277B (en) | Page data display method, page data updating device, page data equipment and storage medium | |
CN112527752B (en) | Data compression method, data compression device, computer readable storage medium and electronic equipment | |
WO2005003996A1 (en) | Method for compressing markup languages files, by replacing a long word with a shorter word | |
CN115630614B (en) | Data transmission method, device, electronic equipment and medium | |
CN112995199B (en) | Data encoding and decoding method, device, transmission system, terminal equipment and storage medium | |
CA2539464A1 (en) | System and method for dynamic content processing with extendable provisioning | |
US8433822B2 (en) | System, method and apparatus for optimized wireless messaging | |
JP5549177B2 (en) | Compression program, method and apparatus, and decompression program, method and apparatus | |
CN110505289B (en) | File downloading method and device, computer readable medium and wireless communication equipment | |
CN106878431B (en) | Method and device for converting node communication message format in distributed system | |
US20140215011A1 (en) | Message exchange via generic tlv generator and parser | |
US20060253833A1 (en) | System and method for efficient hosting of wireless applications by encoding application component definitions | |
CN112988366B (en) | Parameter server, master-slave client machine, weight parameter processing method and system | |
KR100312410B1 (en) | Method for compression and ecompression of vector data in ageographic information system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |