riot_sys::bindgen

Function coap_block2_init

Source
pub unsafe extern "C" fn coap_block2_init(
    pkt: *mut coap_pkt_t,
    slicer: *mut coap_block_slicer_t,
)
Expand description

@brief Initialize a block2 slicer struct for writing the payload

This function determines the size of the response payload based on the size requested by the client in @p pkt.

@param[in] pkt packet to work on @param[out] slicer Preallocated slicer struct to fill