Skip to main content

kr_dictionary_parse_utf8

Function kr_dictionary_parse_utf8 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn kr_dictionary_parse_utf8( abi: u32, bytes: *const u8, len: u32, out: *mut *mut Dictionary, ) -> u32
Expand description

Parse bounded UTF-8 Vim data without an engine, retaining no input buffer. Every failure leaves a non-null output object holding null.

ยงSafety

out must be writable and aligned for a pointer and not alias the source. For a nonzero bounded len, bytes must address that many readable bytes, or be null. Null plus zero is a valid empty source. Null and oversized inputs are checked before reading any bytes.