pub unsafe extern "C" fn coap_blockwise_put_bytes(
slicer: *mut coap_block_slicer_t,
bufpos: *mut u8,
c: *const c_void,
len: size_t,
) -> size_t
Expand description
@brief Add a byte array to a block2 reply.
This function is used to add an array of bytes to a CoAP block2 reply. it checks which parts of the string should be added to the reply and ignores parts that are outside the current block2 request.
@param[in] slicer slicer to use @param[in] bufpos pointer to the current payload buffer position @param[in] c byte array to copy @param[in] len length of the byte array
@returns Number of bytes written to @p bufpos