CPC G06F 40/126 (2020.01) [H03M 7/6005 (2013.01)] | 20 Claims |
13. A device for processing data overflow in a decompression process, wherein the device comprises:
a detecting module, wherein the detecting module is configured to decompress an original text, and detect whether a data overflow event occurs in the decompression process;
a closing module, wherein the closing module is configured to, in response to detecting the data overflow event, store first data obtained by decompression in a host cache into a target memory, and close a data read-in port of a decoding engine;
a storage module, wherein the storage module is configured to decompress data which is being decompressed in the decoding engine to obtain second data, and store the second data into a cache of the decoding engine;
a calculation module, wherein the calculation module is configured to calculate a position of the decompressed data in the original text;
a decompression module, wherein the decompression module is configured to obtain, on the basis of the position, data which is not decompressed in the original text, re-decompress the data which is not decompressed to obtain third data, and store the second data and the third data into the target memory; and
a splicing module, wherein the splicing module is configured to splice the first data, the second data, and the third data to obtain complete decompressed data.
|