Skip to main content

kr_engine_new

Function kr_engine_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn kr_engine_new( abi: u32, out: *mut *mut Engine, ) -> u32
Expand description

Allocate an engine in Idle with the OFF policy, the Apple keyboard and both dictionaries missing. *out is set to null first and receives the handle only on KR_OK.

ยงSafety

out must be null, or writable and aligned for one handle pointer; it must not alias a live handle.