Compression method and device of reference types in .net file
A compression method and type of technology, applied in the direction of program control devices, special data processing applications, instruments, etc., can solve storage problems, achieve the effect of reducing storage space and enhancing functions
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] This embodiment provides a compression device for reference types in a .net file, such as figure 1 As shown, the device includes: a reference type name acquisition module 102, a compression module 104, a statistics module 106 and a combination module 108, and the functions of each module are as follows:
[0031] Reference type name acquisition module 102, used to obtain the name of the reference type used in the .net file;
[0032] A compression module 104, configured to compress the name of the reference type obtained by the reference type name obtaining module 102, to obtain the name of the compressed reference type;
[0033] A statistical module 106, configured to count the method count and field count of the reference type obtained by the reference type name obtaining module 102;
[0034] The combination module 108 is configured to combine the name of the reference type compressed by the compression module 104 and the method count and field count counted by the sta...
Embodiment 2
[0045] This embodiment provides a compression method for reference types in .net files, and the method is described by taking the operation in the compression device provided in Embodiment 1 as an example, as shown in image 3 As shown, the method includes:
[0046] Step S202: the reference type name obtaining module 102 obtains the name of the reference type used in the .net file;
[0047] Step S204: the compression module 104 compresses the name of the reference type obtained by the reference type name obtaining module 102, and obtains the name of the compressed reference type;
[0048] Step S206: the statistical module 106 counts the method count and field count of the reference type obtained by the reference type name obtaining module 102;
[0049] Step S208: The combination module 108 combines the name of the reference type compressed by the compression module 104, the method count and the field count counted by the statistics module 106 according to a predetermined form...
Embodiment 3
[0062] This embodiment provides a method for compressing reference types in .net files, in which the uncompressed files compiled on the .net platform are called .net files.
[0063] Such as Figure 4 As shown, the flow chart of the compression method for the reference type in the .net file provided by this embodiment includes steps S302 to S310, specifically as follows:
[0064] Step S302: Obtain the first metadata table in the .net file. The first metadata table in this embodiment is specifically the metadata table TypeRef;
[0065] There are multiple tables in the .net file, among which the metadata table TypeRef (reference type or interface table) records the name of the reference type used in the .net file and the information of the namespace to which the reference type belongs;
[0066] The metadata table is a part of the PE (Portable Excutable, portable and executable) file. This embodiment uses the .net file obtained after compiling the following code as an example for...
PUM
![No PUM](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/application.06fe782c.png)
- 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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap