Skip to main content

pamoja_lorawan_defrag_matrix_len

Function pamoja_lorawan_defrag_matrix_len 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_lorawan_defrag_matrix_len( nb_frag: u16, max_lost: u16, ) -> usize
Expand description

How many bytes of working storage a session needs.

§Arguments

  • nb_frag - how many uncoded fragments the block was cut into.
  • max_lost - the most uncoded fragments the session should survive losing.

§Returns

The byte count, which pamoja_lorawan_defrag_new allocates for itself.