Function tectonic_bridge_core::ttbc_get_data_md5
source · #[no_mangle]
pub unsafe extern "C" fn ttbc_get_data_md5(
data: *const u8,
len: size_t,
digest: *mut u8
) -> c_int
Expand description
Calculate the MD5 digest of a block of binary data.
This actually doesn’t rely on the state and isn’t really I/O, but we also have a get-file-MD5 routine so it’s convenient to have this here.
§Safety
This function is unsafe because it dereferences raw pointers from C.