Compressed file dynamic packaging method and system
A technology for compressing files and compression algorithms, applied in the direction of program loading/starting, program control devices, etc., can solve the problems of low flexibility, large time complexity, resource consumption, etc., and achieve the effect of high flexibility and saving network resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] Such as figure 1 As shown, the compressed file dynamic packing method of the present embodiment comprises the following steps:
[0039] S 1 . Analyze the binary stream of the directory source data field of the original file, and determine the compression algorithm of the original file according to the analysis result;
[0040] S 2 . Obtain the position of the field to be modified in the original file, where the field to be modified includes the field to be deleted and the content to be added;
[0041] S 3 , Find the corresponding position of the field to be deleted according to the relative offset of the partial file header and the original file storage location recorded by the directory source, and delete the field to be deleted;
[0042] S 4 , Use the compression algorithm of the original file to compress the content to be added to obtain the content to be added;
[0043] S 5 . Find the insertion position of the content to be added according to the relative off...
Embodiment 2
[0047] refer to figure 2 As shown, the compressed file dynamic packaging system of this embodiment includes a parsing module 1 , a modification field location module 2 , a field deletion module 3 , an addition module 4 and an update module 5 .
[0048] Wherein, the parsing module 1 is used for parsing the binary stream of the directory source data field of the original file, and determining the compression algorithm of the original file according to the parsing result.
[0049] The modified field positioning module 2 is used to determine the position of the field to be modified in the original file, wherein the field to be modified includes the field to be deleted and the content to be added.
[0050] The field deletion module 3 is used to find the corresponding position of the field to be deleted according to the relative offset of the partial file header and the storage location of the original file recorded by the directory source and delete the field to be deleted.
[00...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

