Package ghidra.formats.gfilesystem
Class FileCache.FileCacheEntry
- java.lang.Object
-
- ghidra.formats.gfilesystem.FileCache.FileCacheEntry
-
- Enclosing class:
- FileCache
public static class FileCache.FileCacheEntry extends java.lang.ObjectRepresents a cached file. It may be an actual file iffileis set, or if smaller than2Mb'ishjust an in-memory byte array that is weakly pinned in theFileCache.memCachemap.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteProviderasByteProvider(FSRL fsrl)Returns the contents of this cache entry as aByteProvider, using the specifiedFSRL.booleanequals(java.lang.Object obj)java.lang.StringgetMD5()Returns the MD5 of this cache entry.inthashCode()longlength()
-
-
-
Method Detail
-
asByteProvider
public ByteProvider asByteProvider(FSRL fsrl) throws java.io.IOException
Returns the contents of this cache entry as aByteProvider, using the specifiedFSRL.- Parameters:
fsrl-FSRLthat the returnedByteProvidershould have as its identity- Returns:
- new
ByteProvidercontaining the contents of this cache entry, caller is responsible forclosing - Throws:
java.io.IOException- if error
-
getMD5
public java.lang.String getMD5()
Returns the MD5 of this cache entry.- Returns:
- the MD5 (as a string) of this cache entry
-
length
public long length()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-