riot_sys

Function coap_blockwise_put_char

Source
pub unsafe extern "C" fn coap_blockwise_put_char(
    slicer: *mut coap_block_slicer_t,
    bufpos: *mut u8,
    c: c_char,
) -> size_t
Expand description

@brief Add a single character to a block2 reply.

This function is used to add single characters to a CoAP block2 reply. It checks whether the character should be added to the buffer and ignores it when the character is outside the current block2 request.

@param[in] slicer slicer to use @param[in] bufpos pointer to the current payload buffer position @param[in] c character to write

@returns Number of bytes written to @p bufpos