Skip to main content

hpl_cjk_decode_utf8

Function hpl_cjk_decode_utf8 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn hpl_cjk_decode_utf8( src: *const u8, src_len: u32, dst: *mut u16, dst_cap: u32, out: *mut HplCjkDecodeResult, ) -> i32
Expand description

Decodes UTF-8 into BMP-only UTF-16. dst_cap >= src_len always suffices.

ยงSafety

src must point to src_len readable bytes (may be null when src_len is 0), dst to dst_cap writable u16s (may be null when dst_cap is 0), and out to a writable result.