Function es_exec_arg

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

Get the argument 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 argument to retrieve (starts from 0)
  • Returns an es_string_token_t containing a pointer to the argument and its length. This is a zero-allocation operation. The returned pointer must not outlive exec_event.

Reading an an argument where index >= es_exec_arg_count() is undefined