Function es_exec_env

Source
pub unsafe extern "C" fn es_exec_env(
    event: &es_event_exec_t,
    index: u32,
) -> es_string_token_t
Available on macOS only.
Expand description

Get the environment variable at the specified position in the message containing an es_event_exec_t

  • event: The es_event_exec_t being inspected
  • index: Index of the environment variable to retrieve (starts from 0)
  • Returns an es_string_token_t containing a pointer to the environment variable and its length. This is zero-allocation operation. The returned pointer must not outlive exec_event.

Reading an an env where index >= es_exec_env_count() is undefined.