debuggin FFI

This commit is contained in:
Rene Vergara 2024-10-30 09:09:11 -05:00
parent 24210b1e0b
commit fa2b34e26f
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -728,6 +728,7 @@ pub extern "C" fn rust_wrapper_f4jumble(
out: *mut u8, out: *mut u8,
out_len: &mut usize) { out_len: &mut usize) {
let input: Vec<u8> = marshall_from_haskell_var(input, input_len, RW); let input: Vec<u8> = marshall_from_haskell_var(input, input_len, RW);
println!("testy mc testface");
let result = f4jumble::f4jumble(&input).unwrap(); let result = f4jumble::f4jumble(&input).unwrap();
marshall_to_haskell_var(&result, out, out_len, RW); marshall_to_haskell_var(&result, out, out_len, RW);
} }