riot_sys::bindgen

Function coap_block_object_init

Source
pub unsafe extern "C" fn coap_block_object_init(
    block: *mut coap_block1_t,
    blknum: size_t,
    blksize: size_t,
    more: c_int,
)
Expand description

@name Functions – Options for Block

Read Block1 (POST/PUT request) or Block2 (GET response) options, and generally useful functions to write block options. / /@{*/ / @brief Initialize a block struct from content information

@param[out] block block struct to initialize @param[in] blknum offset from the beginning of content, in terms of @p blksize byte blocks @param[in] blksize size of each block; must be a power of 2 between 16 and 2 raised to #CONFIG_NANOCOAP_BLOCK_SIZE_EXP_MAX @param[in] more more blocks? use 1 if yes; 0 if no or unknown