Package ghidra.formats.gfilesystem
Class FileCache.FileCacheEntry
java.lang.Object
ghidra.formats.gfilesystem.FileCache.FileCacheEntry
- Enclosing class:
- FileCache
Represents a cached file.  It may be an actual file if 
file
 is set, or if smaller than 2Mb'ish just an 
 in-memory byte array that is weakly pinned in the FileCache.memCache map.- 
Method SummaryModifier and TypeMethodDescriptionasByteProvider(FSRL fsrl) Returns the contents of this cache entry as aByteProvider, using the specifiedFSRL.booleangetMD5()Returns the MD5 of this cache entry.inthashCode()longlength()
- 
Method Details- 
asByteProviderReturns the contents of this cache entry as aByteProvider, using the specifiedFSRL.- Parameters:
- fsrl-- FSRLthat the returned- ByteProvidershould have as its identity
- Returns:
- new ByteProvidercontaining the contents of this cache entry, caller is responsible forclosing
- Throws:
- IOException- if error
 
- 
getMD5Returns the MD5 of this cache entry.- Returns:
- the MD5 (as a string) of this cache entry
 
- 
lengthpublic long length()
- 
hashCodepublic int hashCode()
- 
equals
 
-