mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00
![]() Coverage has two FFI functions for computing the hash of a byte string. One takes a ptr/len pair, and the other takes a NUL-terminated C string. But on closer inspection, the C string version is unnecessary. The calling-side code converts a Rust `&str` into a C string, and the C++ code then immediately turns it back into a ptr/len string before actually hashing it. |
||
---|---|---|
.. | ||
archive_ro.rs | ||
diagnostic.rs | ||
ffi.rs | ||
mod.rs |