|
LIEF: Library to Instrument Executable Formats Version 1.0.0
|
This structure represents the current process and provides functions to query process-level information. More...
#include <Process.hpp>

Classes | |
| struct | EnvVars |
| This structure wraps environment variables. More... | |
Static Public Member Functions | |
| static int32_t | pid () |
| Get the Process ID of the current process. | |
| static uint32_t | tid () |
| Get the Thread ID of the current thread. | |
| static constexpr ARCH | arch () |
| Return the target architecture of the current process. | |
| static constexpr PLATFORMS | platform () |
| Return the target platform of the current process. | |
| static uint32_t | page_size () |
| Return the number of bytes in a memory page. | |
| static optional< std::string > | get_env (const std::string &key) |
| Return the environment variable associated with the given key. | |
| static EnvVars | get_envs () |
| Return the environment variables present in the current process. | |
| static assembly::Engine * | default_engine () |
| Return the assembler/disassembler for the current process. | |
This structure represents the current process and provides functions to query process-level information.
|
inlinestaticconstexpr |
Return the target architecture of the current process.
|
static |
Return the assembler/disassembler for the current process.
|
static |
Return the environment variable associated with the given key.
|
static |
Return the environment variables present in the current process.
|
static |
Return the number of bytes in a memory page.
For instance:
|
static |
Get the Process ID of the current process.
|
inlinestaticconstexpr |
Return the target platform of the current process.
Referenced by LIEF::runtime::android::Process::classof(), LIEF::runtime::Linux::Process::classof(), LIEF::runtime::osx::Process::classof(), and LIEF::runtime::windows::Process::classof().
|
static |
Get the Thread ID of the current thread.