pub unsafe extern "C" fn coap_encode_var_safe(
    buf: *mut u8,
    length: usize,
    value: c_uint
) -> c_uint