Function gnunet_sys::GNUNET_STRINGS_string_to_data[][src]

pub unsafe extern "C" fn GNUNET_STRINGS_string_to_data(
    enc: *const c_char,
    enclen: usize,
    out: *mut c_void,
    out_size: usize
) -> c_int

Convert CrockfordBase32 encoding back to data. @a out_size must match exactly the size of the data before it was encoded.

@param enc the encoding @param enclen number of characters in @a enc (without 0-terminator, which can be missing) @param out location where to store the decoded data @param out_size size of the output buffer @a out @return #GNUNET_OK on success, #GNUNET_SYSERR if result has the wrong encoding