mirror of
https://github.com/logos-storage/circom-compat-ffi.git
synced 2026-01-06 23:03:06 +00:00
export release_buffer
This commit is contained in:
parent
451a0fde90
commit
e59ea184fa
@ -149,6 +149,7 @@ pub unsafe extern "C" fn release_circom_compat(ctx_ptr: &mut *mut CircomCompatCt
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn release_buffer(buff_ptr: &mut *mut Buffer) {
|
pub unsafe extern "C" fn release_buffer(buff_ptr: &mut *mut Buffer) {
|
||||||
if !buff_ptr.is_null() {
|
if !buff_ptr.is_null() {
|
||||||
let buff = &mut Box::from_raw(*buff_ptr);
|
let buff = &mut Box::from_raw(*buff_ptr);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user