Classes | |
| class | BinaryNinja::TemporaryFile |
| TemporaryFile is used for creating temporary files, stored (temporarily) in the system's default temporary file directory. More... | |
| class BinaryNinja::TemporaryFile |
TemporaryFile is used for creating temporary files, stored (temporarily) in the system's default temporary file directory.
Public Member Functions | |
| TemporaryFile () | |
| TemporaryFile (const DataBuffer &contents) | |
| Create a new temporary file with BinaryNinja::DataBuffer contents. | |
| TemporaryFile (const std::string &contents) | |
| Create a new temporary file with string contents. | |
| TemporaryFile (BNTemporaryFile *file) | |
| bool | IsValid () const |
| std::string | GetPath () const |
| Path to the TemporaryFile on the filesystem. | |
| DataBuffer | GetContents () |
| DataBuffer with contents of the file. | |
| Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNTemporaryFile, BNNewTemporaryFileReference, BNFreeTemporaryFile > | |
| CoreRefCountObject () | |
| virtual | ~CoreRefCountObject () |
| BNTemporaryFile * | GetObject () const |
| void | AddRef () |
| void | Release () |
| void | AddRefForRegistration () |
| void | ReleaseForRegistration () |
| void | AddRefForCallback () |
| void | ReleaseForCallback () |
Additional Inherited Members | |
| Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNTemporaryFile, BNNewTemporaryFileReference, BNFreeTemporaryFile > | |
| std::atomic< int > | m_refs |
| bool | m_registeredRef |
| BNTemporaryFile * | m_object |
| TemporaryFile::TemporaryFile | ( | ) |
| TemporaryFile::TemporaryFile | ( | const DataBuffer & | contents | ) |
Create a new temporary file with BinaryNinja::DataBuffer contents.
| contents | DataBuffer with contents to write to the file. |
| BinaryNinja::TemporaryFile::TemporaryFile | ( | const std::string & | contents | ) |
Create a new temporary file with string contents.
| contents | std::string with contents to write to the file. |
| TemporaryFile::TemporaryFile | ( | BNTemporaryFile * | file | ) |
|
inline |
| string TemporaryFile::GetPath | ( | ) | const |
Path to the TemporaryFile on the filesystem.
| DataBuffer TemporaryFile::GetContents | ( | ) |
DataBuffer with contents of the file.