Function encoding_c::decoder_decode_to_utf8_without_replacement [] [src]

#[no_mangle]
pub unsafe extern fn decoder_decode_to_utf8_without_replacement(decoder: *mut Decoder,
                                                                src: *const u8,
                                                                src_len: *mut usize,
                                                                dst: *mut u8,
                                                                dst_len: *mut usize,
                                                                last: bool)
                                                                -> u32

Incrementally decode a byte stream into UTF-8 without replacement.

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 or dst and dst_len don't designate a valid block of memory.