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

Active Publication Date: 2010-08-04
FEITIAN TECHNOLOGIES
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The present invention is proposed for the .net program that cannot be well stored and run on a small-capacity storage medium (such as a smart card). For this reason, the main purpose of the present invention is to provide a compression method and a method for quoting types in a .net file. means to address at least one of the above

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Compression method and device of reference types in .net file
  • Compression method and device of reference types in .net file
  • Compression method and device of reference types in .net file

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses compression method and device of reference types in a .net file. The compression method comprises the following steps of: acquiring and compressing the names of the reference types used in the .net file to obtain the compressed names of the reference types; carrying out statistics on the method counting and the field counting of the reference types; and combining the compressed names of the reference types, the method counting and the field counting to obtain the compression result of the reference types. The invention can effectively reduce the storage space occupied by the .net file through compressing the reference types so that the .net file can be stored and run on a small-capacity storage medium (such as an intelligent card), thereby enhancing the function of the small-capacity storage medium (such as the intelligent card).

Description

technical field [0001] The invention relates to the field of computer applications, in particular to a compression method and device for reference types in .net files. Background technique [0002] .Net is a new generation technology platform of Microsoft and a brand-new cross-language software development platform based on the Internet. .Net is not a development language, but it can support multiple development languages ​​on the .Net development platform, such as C# language, C++, Visual Basic, Jscript, etc. [0003] A smart card is a plastic card similar in size to an ordinary business card. It contains a silicon chip with a diameter of about 1cm, which has the functions of storing information and performing complex calculations. It is widely used in telephone cards, financial cards, identification cards, mobile phones, pay TV and other fields. Among them, the chip of the smart card integrates a microprocessor, a memory, and an input / output unit, etc., making the smart ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44G06F17/30
Inventor 陆舟于华章
Owner FEITIAN TECHNOLOGIES
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products