[][src]Function libipt_sys::pt_enc_get_offset

pub unsafe extern "C" fn pt_enc_get_offset(
    encoder: *const pt_encoder,
    offset: *mut u64
) -> c_int

Get the current packet encoder position.

Fills the current @encoder position into @offset.

This is useful for reporting errors.

Returns zero on success, a negative error code otherwise.

Returns -pte_invalid if @encoder or @offset is NULL.