Package ghidra.formats.gfilesystem
Class FileCacheNameIndex
java.lang.Object
ghidra.formats.gfilesystem.FileCacheNameIndex
A best-effort cache of MD5 values of files, where the file is identified by its parent's
MD5 combined with the file's path inside its parent's 'namespace'.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
FileCacheNameIndex
public FileCacheNameIndex()
-
-
Method Details
-
clear
public void clear() -
add
Adds a filename mapping to this cache.- Parameters:
parentMD5
- the md5 string of the parent objectname
- the name of this objectfileMD5
- the md5 string of this object- Throws:
IOException
- if missing or bad md5 values.
-
get
Retrieves a filename mapping from this cache.- Parameters:
parentMD5
- the md5 string of the parent objectname
- the name of the requested object.- Returns:
- the md5 string of the requested object, or null if not in cache.
- Throws:
IOException
- if missing or bad parent md5 values.
-