Package ghidra.formats.gfilesystem
Class RefdFile
- java.lang.Object
-
- ghidra.formats.gfilesystem.RefdFile
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class RefdFile extends java.lang.Object implements java.io.Closeable
AGFile
along with aFileSystemRef
to keep the filesystem pinned in memory.The caller is responsible for
closing
this object, which releases the FilesystemRef.
-
-
Field Summary
Fields Modifier and Type Field Description GFile
file
FileSystemRef
fsRef
-
Constructor Summary
Constructors Constructor Description RefdFile(FileSystemRef fsRef, GFile file)
Creates a RefdFile instance, taking ownership of the supplied fsRef.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
-
-
Field Detail
-
fsRef
public final FileSystemRef fsRef
-
file
public final GFile file
-
-
Constructor Detail
-
RefdFile
public RefdFile(FileSystemRef fsRef, GFile file)
Creates a RefdFile instance, taking ownership of the supplied fsRef.- Parameters:
fsRef
-FileSystemRef
that pins the filesystem openfile
- GFile file inside the specified filesystem
-
-