Function eccodes_sys::codes_grib_handle_new_from_multi_message[][src]

pub unsafe extern "C" fn codes_grib_handle_new_from_multi_message(
    c: *mut codes_context,
    data: *mut *mut c_void,
    data_len: *mut size_t,
    error: *mut c_int
) -> *mut codes_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. This function works also with multi-field messages.

@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 @param error : error code @return the new handle, NULL if the message is invalid or a problem is encountered