Function encoding_c::decoder_decode_to_utf8
[−]
[src]
#[no_mangle]pub unsafe extern fn decoder_decode_to_utf8(
decoder: *mut Decoder,
src: *const u8,
src_len: *mut usize,
dst: *mut u8,
dst_len: *mut usize,
last: bool,
had_replacements: *mut bool
) -> u32
Incrementally decode a byte stream into UTF-8 with malformed sequences replaced with the REPLACEMENT CHARACTER.
See the top-level FFI documentation for documentation for how the
decoder_decode_* functions are mapped from Rust and the documentation
for the Decoder struct for the semantics.
Undefined behavior
UB ensues if decoder is NULL, src and src_len don't designate a
valid block of memory, dst and dst_len don't designate a valid block
of memory or had_replacements is NULL.