[go: up one dir, main page]

Function encoding_rs::ffi::encoding_name [] [src]

pub unsafe extern fn encoding_name(encoding: *const Encoding, name_out: *mut u8) -> usize

Writes the name of the given Encoding to a caller-supplied buffer as ASCII and returns the number of bytes / ASCII characters written.

The output is not null-terminated.

The caller MUST ensure that name_out points to a buffer whose length is at least ENCODING_NAME_MAX_LENGTH bytes.