Function crfsuite_sys::crfsuite_create_instance_from_memory
[−]
[src]
pub unsafe extern "C" fn crfsuite_create_instance_from_memory(
data: *const c_void,
size: usize,
ptr: *mut *mut c_void
) -> c_int
Create an instance of a model object from a model in memory.
data
A pointer to the model data. Must be 16-byte aligned.size
A size (in bytes) of the model data.ptr
The pointer to \c void* that points to the instance of the model object if successful, *ptr points to \c NULL otherwise.
Returns int \c 0 if this function creates an object successfully, \c 1 otherwise