| IdRegistry.hx | |
| IdRegistry | Keeps track of character IDs requested by import functions. |
| Functions | |
| idExists | Checks whether a given character ID has already been defined. |
| getNewId | Queries a new characterd ID guaranteed to be unique. |
| getIdForHash | Checks and returns if a character ID was already assigned for the given hashed data of the given tag type, or a new unique id if not found. |
Keeps track of character IDs requested by import functions.
| Functions | |
| idExists | Checks whether a given character ID has already been defined. |
| getNewId | Queries a new characterd ID guaranteed to be unique. |
| getIdForHash | Checks and returns if a character ID was already assigned for the given hashed data of the given tag type, or a new unique id if not found. |
public function getIdForHash( md5: String, tagId: Int ): BytesIdLookupResult
Checks and returns if a character ID was already assigned for the given hashed data of the given tag type, or a new unique id if not found.
Note: the md5 hash should include all relevant data bytes
| md5 | the MD5 hash of data bytes |
| tagId | format.swf.TagId of resource type, to avoid Binary vs. Sound collisions etc. |
The character ID, wrapped in BytesIdLookupResult according to whether the requested hash was found or not.
Checks whether a given character ID has already been defined.
public function idExists( id: Int ): Bool
Queries a new characterd ID guaranteed to be unique.
public function getNewId(): Int
Checks and returns if a character ID was already assigned for the given hashed data of the given tag type, or a new unique id if not found.
public function getIdForHash( md5: String, tagId: Int ): BytesIdLookupResult