[−][src]Function libcoap_sys::coap_encode_var_safe
pub unsafe extern "C" fn coap_encode_var_safe(
buf: *mut u8,
length: usize,
value: c_uint
) -> c_uint
Encodes multiple-length byte sequences. @p buf points to an output buffer of sufficient length to store the encoded bytes. @p value is the 4 byte value to encode. Returns the number of bytes used to encode @p value or 0 on error.
@param buf The output buffer to encode into @param length The output buffer size to encode into (must be sufficient) @param value The value to encode into the buffer
@return The number of bytes used to encode @p value or @c 0 on error.