CN101187926A - Multi-kind resource management method - Google Patents

Multi-kind resource management method Download PDF

Info

Publication number
CN101187926A
CN101187926A CNA2006101568811A CN200610156881A CN101187926A CN 101187926 A CN101187926 A CN 101187926A CN A2006101568811 A CNA2006101568811 A CN A2006101568811A CN 200610156881 A CN200610156881 A CN 200610156881A CN 101187926 A CN101187926 A CN 101187926A
Authority
CN
China
Prior art keywords
resource
data
field
packet
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2006101568811A
Other languages
Chinese (zh)
Other versions
CN101187926B (en
Inventor
王福泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konka Group Co Ltd
Original Assignee
Konka Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konka Group Co Ltd filed Critical Konka Group Co Ltd
Priority to CN2006101568811A priority Critical patent/CN101187926B/en
Publication of CN101187926A publication Critical patent/CN101187926A/en
Application granted granted Critical
Publication of CN101187926B publication Critical patent/CN101187926B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a resource management which aims at the shortcomings in the prior art that a plurality of data resources are difficult to manage, etc. so as to provide a multi-type resource management method. First, a resource index table is read from the pocket end zone of a resource packet, and the storage position of a data index table of a needed resource is confirmed; finally, the needed data resource is accessed and operated. Through sorting, controlling number and indexing data and loading the data in the resource packet, the invention enhances the management to the data resource, improves the accessing efficiency, and effectively reduces the possibility of leakage happening in the process of data amending or updating.

Description

A kind of management method of multi-kind resource
Technical field
The present invention relates to resource management, more particularly, relate to a kind of management method of multi-kind resource.
Background technology
Computing equipment such as the network equipment, embedded system etc. often need to call the mass data resource in operational process, these resources often relate to polytype, for example String data type, speech data type, video data type, picture data type etc., and may be distributed in a plurality of different scenes of system's operation.Prior art does not often add the classification civilian dress to the data resource and is written in the computing equipment, and the storage mode that this dispersion mixes is not easy to the data resource is managed, and also can reduce data access efficiency simultaneously.In addition, in system development or escalation process, modification to a data resource may be carried out in a plurality of scenes of association simultaneously, any place of omitting wherein all may cause system's fluctuation of service, therefore, the modification of under the available data resource management mode data resource being carried out not only means huge workload, also may add the potential operation risk of fatware.In addition, for preserving global information, usually need to use a plurality of global variables, so the long-term resident meeting of related resource takies a large amount of memory sources.
Therefore, need a kind of method that can effectively manage the data resource, the reduced data resource management process, and effectively reduce the possibility of omitting in data modification or the escalation process.
Summary of the invention
The technical problem to be solved in the present invention is, storage causes is not easy to defective such as management because of disperseing to mix at prior art multi-class data resource, and a kind of management method of multi-kind resource is provided.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of management method of multi-kind resource, comprise the steps:
Read resource index table from the packet header district of resource packet, determine the memory location of the data directory of resource requirement;
Read described data directory, determine the memory location of desired data resource;
The desired data resource is carried out accessing operation.
In method of the present invention, described resource packet also comprises the index area of storing described data directory and the data field of storing described data resource.
In method of the present invention, described resource index table comprises resource type field and index area offset field, is used for showing the memory location of the data directory of every class data resource in described index area.
In method of the present invention, described data directory comprises resource identification field and data field offset field, is used for showing the memory location of every data resource in described data field.
In method of the present invention, described data directory also comprises resource quantity field and data length field, is respectively applied for the bar number that shows data resource in this type of data resource and the length of every data resource.
In method of the present invention, described packet header district also comprises resource type amount field and resource packet size field, is respectively applied for the number of types that shows the data resource that loads in this resource packet, and the size of this resource packet.
In method of the present invention, described resource identification comprises resource type part and resource sequence number part, be respectively applied for the type that shows the corresponding data resource with and sequence number in this class resource.
In method of the present invention, described resource identification comprises child resource type part, described data directory comprises the child resource concordance list, described child resource concordance list further comprises the child resource type field, and child resource index area offset field, be used for showing the memory location of the subdata concordance list of such child resource in described index area.
In method of the present invention, described resource index table comprises version/manufacturer's field.
In method of the present invention, described data resource comprise string resource, picture resource, audio resource, video resource and self-defined resource at least one of them.
The invention has the beneficial effects as follows, by data are classified, numbering, index and be loaded in the resource packet, can strengthen management to the data resource, improve access efficiency, and effectively reduce the possibility of omitting takes place in data modification or the escalation process.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the structural representation of resource packet of the present invention;
Fig. 2 is the structural representation according to the resource index table of the present invention of one embodiment of the invention;
Fig. 3 is the structural representation according to the resource index table of the present invention of another embodiment of the present invention;
Fig. 4 is the structural representation according to the data directory of the present invention of one embodiment of the invention;
Fig. 5 is the structural representation according to the data field of the present invention of one embodiment of the invention;
Fig. 6 is the structural representation according to the subdata concordance list of the present invention of another embodiment of the present invention;
Fig. 7 is the process flow diagram of multi-kind resource management method of the present invention.
Embodiment
The invention provides a kind of management method of multi-kind resource, by the Various types of data resource being loaded into the unified management that realizes resource in the resource packet.Simultaneously, also comprise all kinds of index informations in this resource packet, in the reading of data process, read relative index information successively and locate desired data.Below just be introduced to this resource packet with based on the multi-kind resource management method of this resource packet.
Fig. 1 is the structural representation of resource packet of the present invention.As shown in Figure 1, this resource packet comprises packet header district, three parts in index area and data field, wherein stores resource index table, data directory and data resource respectively.
Fig. 2 is the structural representation according to the resource index table of the present invention of one embodiment of the invention.As shown in Figure 2, this resource index table comprises resource type resource (TypeID) and data field offset field (IndexOffset), wherein, resource type can include but not limited to character string, picture, sound, video, menu, input method and self-defined resource etc.; The data field offset field is represented the memory location of data directory in this resource packet index area of such resource.
Fig. 3 is the structural representation according to the resource index table of the present invention of another embodiment of the present invention.As shown in Figure 3, this resource index table also comprises other information such as version/manufacturer's information, resource packet size information and resource type quantity except comprising resource type resource (TypeID) shown in Figure 2 and data field offset field (Index Offset).
Fig. 4 is the structural representation according to the data directory of the present invention of one embodiment of the invention.Data directory comprises resource quantity field, resource identification field, data field offset field and data length field.As shown in Figure 4, be example with the character string, the corresponding resource quantity field of character string bar number; Corresponding resource identification field such as character string 1ID; Corresponding data district offset field such as character string 1 side-play amount, corresponding data length fields such as character string 1 length.Wherein, every data resource all has a resource identification, wherein comprises resource type part and resource sequence number part successively, the resource type that is used for showing its affiliated resource with and in the information such as sequence number of such resource.
Fig. 5 is the structural representation according to the data field of the present invention of one embodiment of the invention.Same resource is stored in the same area in the data field, and arranges according to this by its resource identification.As shown in Figure 5, still be example with the character string, each character string is arranged in order in the data field according to its resource identification as character string 1 grade.
Fig. 6 is the structural representation according to the subdata concordance list of the present invention of another embodiment of the present invention.Many resources all comprise child resource, and promptly same big class resource comprises a plurality of group resources.As shown in Figure 6, be example with the sound class resource, just can be divided into a plurality of groups such as mp3, midi, wav, wma.For distinguishing all kinds of child resources in the same classification resource, also can in its data directory, add the child resource concordance list, comprise child resource type field (as sound type 1ID) and child resource index area offset field (as sound type 1 side-play amount), be used for representing the memory location of the subdata concordance list of such child resource at whole data directory.Simultaneously, if a class resource comprises child resource, then the resource identification of every data also comprises child resource type part in this resource.
In addition, except that the known type resource, also can add self-defined resource type, its storage in resource packet is identical with aforesaid way with indexed mode.
After having defined above-mentioned resource packet structure, the invention provides a kind of management method of multi-kind resource, be introduced below with reference to Fig. 7.
Fig. 7 is the process flow diagram of multi-kind resource management method of the present invention.As shown in Figure 7, in step 700, at first read the resource index table in the district of resource packet packet header; Subsequently, in step 702,, determine the memory location of data directory in the index area of resource requirement according to this resource index table; At next step 704, the reading of data concordance list; At next step 706, determine the memory location of resource requirement in the data field according to data directory; At next step 708, resource requirement is carried out corresponding accessing operation.
Above content is the introduction of technical solution of the present invention being carried out according to a certain embodiment only, is not used in to limit the scope of the invention.In fact, also can make amendment to content above according to concrete needs, such as but not limited to, resource identification also can comprise reserved field, is convenient to define newly-increased management function; Subtype comprises a plurality of ranks, promptly continues to divide child resource etc. below same child resource, and similarly modification and equivalence are replaced and all fallen within protection scope of the present invention.
Technical scheme of the present invention by data are classified, numbering, index and be loaded in the resource packet, strengthen management to the data resource, improve access efficiency, and effectively reduce the possibility of omitting takes place in data modification or the escalation process.

Claims (10)

1. the management method of a multi-kind resource is characterized in that, comprises the steps:
Read resource index table from the packet header district of resource packet, determine the memory location of the data directory of resource requirement;
Read described data directory, determine the memory location of desired data resource;
The desired data resource is carried out accessing operation.
2. method according to claim 1 is characterized in that, described resource packet also comprises the index area of storing described data directory and the data field of storing described data resource.
3. method according to claim 2 is characterized in that, described resource index table comprises resource type field and index area offset field, is used for showing the memory location of the data directory of every class data resource in described index area.
4. method according to claim 2 is characterized in that, described data directory comprises resource identification field and data field offset field, is used for showing the memory location of every data resource in described data field.
5. method according to claim 4 is characterized in that described data directory also comprises resource quantity field and data length field, is respectively applied for the bar number that shows data resource in this type of data resource and the length of every data resource.
6. method according to claim 1 is characterized in that, described packet header district also comprises resource type amount field and resource packet size field, is respectively applied for the number of types that shows the data resource that loads in this resource packet, and the size of this resource packet.
7. method according to claim 4 is characterized in that, described resource identification comprises resource type part and resource sequence number part, be respectively applied for the type that shows the corresponding data resource with and sequence number in this class resource.
8. method according to claim 7, it is characterized in that, described resource identification comprises child resource type part, described data directory comprises the child resource concordance list, described child resource concordance list further comprises the child resource type field, and child resource index area offset field, be used for showing the memory location of the subdata concordance list of such child resource in described index area.
9. method according to claim 3 is characterized in that, described resource index table comprises version/manufacturer's field.
10. method according to claim 1 is characterized in that, described data resource comprise string resource, picture resource, audio resource, video resource and self-defined resource at least one of them.
CN2006101568811A 2006-11-16 2006-11-16 Multi-kind resource management method Expired - Fee Related CN101187926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101568811A CN101187926B (en) 2006-11-16 2006-11-16 Multi-kind resource management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101568811A CN101187926B (en) 2006-11-16 2006-11-16 Multi-kind resource management method

Publications (2)

Publication Number Publication Date
CN101187926A true CN101187926A (en) 2008-05-28
CN101187926B CN101187926B (en) 2011-05-11

Family

ID=39480323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101568811A Expired - Fee Related CN101187926B (en) 2006-11-16 2006-11-16 Multi-kind resource management method

Country Status (1)

Country Link
CN (1) CN101187926B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831204A (en) * 2012-08-09 2012-12-19 珠海金山网络游戏科技有限公司 File packaging format with version control ability
CN105190598A (en) * 2013-02-28 2015-12-23 惠普发展公司,有限责任合伙企业 Resource reference classification
CN106648728A (en) * 2016-09-14 2017-05-10 深圳市金立通信设备有限公司 Multimedia resource loading method and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1240011C (en) * 2001-03-29 2006-02-01 国际商业机器公司 File classifying management system and method for operation system
CN1627272A (en) * 2003-12-10 2005-06-15 上海贝豪通讯电子有限公司 Method for managing files in flash memory of mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831204A (en) * 2012-08-09 2012-12-19 珠海金山网络游戏科技有限公司 File packaging format with version control ability
CN102831204B (en) * 2012-08-09 2015-09-30 珠海金山网络游戏科技有限公司 A kind of file packing form possessing Version Control ability
CN105190598A (en) * 2013-02-28 2015-12-23 惠普发展公司,有限责任合伙企业 Resource reference classification
CN106648728A (en) * 2016-09-14 2017-05-10 深圳市金立通信设备有限公司 Multimedia resource loading method and terminal
CN106648728B (en) * 2016-09-14 2021-06-04 深圳传音控股股份有限公司 Method and terminal for loading multimedia resources

Also Published As

Publication number Publication date
CN101187926B (en) 2011-05-11

Similar Documents

Publication Publication Date Title
CN107391527B (en) Data processing method and device based on block chain
CN101315628B (en) Internal memory database system and method and device for implementing internal memory data base
CN102722432A (en) Method and apparatus for tracing memory access
CN102243660A (en) Data access method and device
CN104360865A (en) Serialization method, deserialization method and related equipment
CN101840373B (en) Data operating method and device
CN110908707B (en) Resource packaging method, device, server and storage medium
CN100378663C (en) Method, system and module for dynamic downloading of applied programe to user identification
CN104699537A (en) Program control method, activity module scheduling method and corresponding devices thereof
CN101983376A (en) Access device, information recording device, information recording system, file management method, and program
CN103853714A (en) Data processing method and device
CN101162441A (en) Access apparatus and method for data
CN103731368A (en) Method and device for processing message
CN104424030A (en) Sharing memory multi-process operation method and device
CN102799660A (en) JAVA card object management method
CN102591787B (en) The data processing method of JAVA card and device
CN111208988A (en) Single-chip microcomputer file system compiling method and single-chip microcomputer system
CN101187926B (en) Multi-kind resource management method
CN101667183B (en) Method, device and system for establishing index based on customization
CN102760075A (en) Method and system for realizing application configuration of intelligent card
US6697817B2 (en) Variable-length database apparatus and method for accessing the same
EP0844564A2 (en) Memory manager system
CN114020444A (en) Calling system and method for resource service application in enterprise digital middleboxes
CN102799583B (en) Object-oriented access method and system
CN101714096A (en) Method and device for updating configuration information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110511

Termination date: 20121116