Function eccodes_sys::grib_handle_new_from_message[][src]

pub unsafe extern "C" fn grib_handle_new_from_message(
    c: *mut grib_context,
    data: *const c_void,
    data_len: size_t
) -> *mut grib_handle
Expand description

Create a handle from a user message in memory. The message will not be freed at the end. The message will be copied as soon as a modification is needed.

@param c : the context from which the handle will be created (NULL for default context) @param data : the actual message @param data_len : the length of the message in number of bytes @return the new handle, NULL if the message is invalid or a problem is encountered