Skip to main content

kr_set_dictionary_utf8

Function kr_set_dictionary_utf8 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn kr_set_dictionary_utf8( pointer: *mut Engine, language: u32, bytes: *const u8, len: u32, ) -> u32
Expand description

Publish a complete bounded UTF-8 protection source, retaining last-good on parse failure. Prepare accepted updates outside input callbacks; an outstanding proposal rejects publication.

ยงSafety

The handle must be live and uniquely borrowed for this serialized call, or null. Non-null bytes with len <= MAX_SOURCE_BYTES must address that many readable bytes without aliasing the handle. Null and oversized arguments are checked without dereferencing the buffer; null with zero length is valid empty data. No input pointer is retained.