pub unsafe extern "C" fn es_exec_env(
event: &es_event_exec_t,
index: u32,
) -> es_string_token_tAvailable on macOS only.
Expand description
Get the environment variable at the specified position in the message containing an
es_event_exec_t
event: Thees_event_exec_tbeing inspectedindex: Index of the environment variable to retrieve (starts from 0)- Returns an
es_string_token_tcontaining a pointer to the environment variable and its length. This is zero-allocation operation. The returned pointer must not outliveexec_event.
Reading an an env where index >= es_exec_env_count() is undefined.