Function encoding_c::encoder_max_buffer_length_from_utf8_without_replacement [] [src]

#[no_mangle]
pub unsafe extern fn encoder_max_buffer_length_from_utf8_without_replacement(encoder: *const Encoder,
                                                                             byte_length: usize)
                                                                             -> usize

Query the worst-case output size when encoding from UTF-8 without replacement.

Returns the size of the output buffer in bytes that will not overflow given the current state of the encoder and byte_length number of additional input code units.