Skip to main content

pamoja_cobs_decoder_discarded

Function pamoja_cobs_decoder_discarded 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_cobs_decoder_discarded( decoder: *const PamojaCobsDecoder, ) -> u64
Expand description

Returns how many corrupt frames a COBS decoder has discarded.

§Returns

The running count, or 0 if decoder is null.

§Safety

decoder must be a live handle from pamoja_cobs_decoder_new, or null.