#[no_mangle]
pub unsafe extern "C" fn encoding_new_decoder_into(
encoding: *const Encoding,
decoder: *mut Decoder,
)
Expand description
Allocates a new Decoder
for the given Encoding
into memory provided by
the caller with BOM sniffing enabled. (In practice, the target should
likely be a pointer previously returned by encoding_new_decoder()
.)
Note: If the caller has already performed BOM sniffing but has not removed the BOM, the caller should still use this function in order to cause the BOM to be ignored.
ยงUndefined behavior
UB ensues if either argument is NULL
.