identifiers.py
ofrak.core.patch_maker.identifiers
LinkableSymbolIdentifier (Identifier)
Component to identify Complex Blocks as Linkable Symbols. If this component is discovered, it will tag all ComplexBlocks as LinkableSymbols.
identify(self, resource, config=None)
async
Perform identification on the given resource.
Users should not call this method directly; rather, they should run Resource.identify.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
resource |
Resource |
required | |
config |
Optional config for identifying. If an implementation provides a default, this default will always be used when config would otherwise be None. Note that a copy of the default config will be passed, so the default config values cannot be modified persistently by a component run. |
None |
Source code in ofrak/core/patch_maker/identifiers.py
async def identify(self, resource: Resource, config=None):
resource.add_tag(LinkableSymbol)