Methods and devices for text data compression and decompression
A technology of text data and compression method, which is applied in the computer field, can solve the problems of large transmission volume and low transmission efficiency of text data, and achieve the effect of solving excessive transmission volume
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] figure 1 The process flow of the text data compression method provided in Embodiment 1 of the present application mainly refers to re-customizing the 62 characters of 0-9, A-Z, and a-z involved in the data packet and forming a corresponding American Standard for Information Interchange code (American Standard Code for Information Interchange, ASCII) dictionary table, and then compress the useful low-order (Binary Digit, Bit) value in one byte of custom encoding to less byte space, specifically including the following steps:
[0034] S101: Extract characters in the data packet.
[0035] The number of ASCII-encoded characters exceeds 128, and 8 Bit values are required for encoding in binary, and a maximum of 256 characters can be encoded. In some specific application scenarios, the number of characters to be encoded is less than 128 or less. For example, in some RPC call scenarios, the characters to be encoded only involve 62 characters of 0-9, A-Z, and a-z. The data ...
Embodiment 2
[0063] figure 2 The process flow of the text data decompression method provided in Embodiment 2 of the present application mainly refers to decompressing the text data compressed in Embodiment 1, including the following steps:
[0064] S201: Receive compressed data packets.
[0065] The compressed data packet received in this step refers to the compressed data packet in Embodiment 1. The decompression of the data packet mainly refers to the decompression processing of the received compressed data packet, and the operation is performed at the receiving end of the data packet, such as at the web page end and the smart terminal.
[0066] S202: sequentially extract the Bit value representing a character in the compressed data packet as the custom code of the character.
[0067] The Bit value representing a character refers to a six-bit Bit value representing a custom code of a character. The characters in the compressed data packet are compressed and grouped according to Embod...
Embodiment 3
[0085] image 3 Shown is a schematic structural diagram of the text data compression device provided in Embodiment 3 of the present application, specifically including:
[0086] An extracting unit 301, configured to extract characters in the data packet, wherein the characters occupy a certain number of bytes;
[0087] The conversion unit 302 is configured to obtain a custom code corresponding to the character in a specific manner according to the standard code of the character, and the number of bits encoded by the custom code is smaller than the number of bits encoded by the standard code;
[0088] Compression unit 303, configured to compress the useful low bit value of the self-defined code into a certain byte space, wherein the certain byte space is less than the byte space occupied by the character standard code;
[0089] A sending unit 304, configured to send the compressed data packet.
[0090] The number of ASCII-encoded characters exceeds 128, and 8 Bit values are...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com