flips-sys 0.2.1

Raw FFI bindings to Flips, the Floating IPS patcher.
Documentation
1
2
3
4
5
6
7
8
#[no_mangle]
pub extern "C" fn crc32(data: *const u8, len: libc::size_t) -> u32 {
    unsafe {
        let mut hasher = crc32fast::Hasher::new();
        hasher.update(core::slice::from_raw_parts(data, len));
        hasher.finalize()
   }
}