16#ifndef LIEF_RUNTIME_PROCESS_H
17#define LIEF_RUNTIME_PROCESS_H
20#include <unordered_map>
41 std::unordered_map<std::string, std::string>
vars;
52 static uint32_t
tid();
56 return runtime::arch();
61 return runtime::platform();
This class interfaces the assembler/disassembler support.
Definition Engine.hpp:37
Definition optional.hpp:23
This structure represents the current process and provides functions to query process-level informati...
Definition Process.hpp:37
static int32_t pid()
Get the Process ID 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 constexpr ARCH arch()
Return the target architecture of the current process.
Definition Process.hpp:55
static constexpr PLATFORMS platform()
Return the target platform of the current process.
Definition Process.hpp:60
static uint32_t tid()
Get the Thread ID of the current thread.
static assembly::Engine * default_engine()
Return the assembler/disassembler for the current process.
Namespace related to assembly/disassembly support.
Definition Abstract/Binary.hpp:48
Definition android/Host.hpp:24
ARCH
Definition runtime/utils.hpp:37
PLATFORMS
Definition runtime/utils.hpp:28
LIEF namespace.
Definition Abstract/Binary.hpp:41
This structure wraps environment variables.
Definition Process.hpp:40
bool empty() const
Definition Process.hpp:43
std::unordered_map< std::string, std::string > vars
Definition Process.hpp:41
#define LIEF_API
Definition visibility.h:45