[][src]Function libipt_sys::pt_pkt_get_offset

pub unsafe extern "C" fn pt_pkt_get_offset(
    decoder: *const pt_packet_decoder,
    offset: *mut u64
) -> c_int

Get the current decoder position.

Fills the current @decoder position into @offset.

This is useful for reporting errors.

Returns zero on success, a negative error code otherwise.

Returns -pte_invalid if @decoder or @offset is NULL. Returns -pte_nosync if @decoder is out of sync.