Function encoding_rs::ffi::encoding_new_decoder_into
[−]
[src]
pub unsafe extern fn encoding_new_decoder_into(encoding: *const Encoding, decoder: *mut Decoder)
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 method in order to cause the BOM to be ignored.