encoding_c

Function encoding_new_encoder_into

source
#[no_mangle]
pub unsafe extern "C" fn encoding_new_encoder_into(
    encoding: *const Encoding,
    encoder: *mut Encoder,
)
Expand description

Allocates a new Encoder for the given Encoding into memory provided by the caller. (In practice, the target should likely be a pointer previously returned by encoding_new_encoder().)

ยงUndefined behavior

UB ensues if either argument is NULL.