diff options
author | Aapo Alasuutari <aapo.alasuutari@gmail.com> | 2023-02-22 19:32:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 19:32:38 +0200 |
commit | b56b8c8a753442036ace3bb0f4403c952f18d408 (patch) | |
tree | 675c47da4847a754cf2cc3cb664dc8047944246d /ext/ffi/lib.rs | |
parent | 2bd7482295daae4edfd367d84505bb43735cd410 (diff) |
feat(ext/ffi): Replace pointer integers with v8::External objects (#16889)
Diffstat (limited to 'ext/ffi/lib.rs')
-rw-r--r-- | ext/ffi/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs index a14a28a83..d49b66274 100644 --- a/ext/ffi/lib.rs +++ b/ext/ffi/lib.rs @@ -91,7 +91,11 @@ pub fn init<P: FfiPermissions + 'static>(unstable: bool) -> Extension { op_ffi_call_nonblocking::decl(), op_ffi_call_ptr::decl::<P>(), op_ffi_call_ptr_nonblocking::decl::<P>(), + op_ffi_ptr_create::decl::<P>(), + op_ffi_ptr_equals::decl::<P>(), op_ffi_ptr_of::decl::<P>(), + op_ffi_ptr_offset::decl::<P>(), + op_ffi_ptr_value::decl::<P>(), op_ffi_get_buf::decl::<P>(), op_ffi_buf_copy_into::decl::<P>(), op_ffi_cstr_read::decl::<P>(), @@ -106,6 +110,7 @@ pub fn init<P: FfiPermissions + 'static>(unstable: bool) -> Extension { op_ffi_read_i64::decl::<P>(), op_ffi_read_f32::decl::<P>(), op_ffi_read_f64::decl::<P>(), + op_ffi_read_ptr::decl::<P>(), op_ffi_unsafe_callback_create::decl::<P>(), op_ffi_unsafe_callback_ref::decl(), op_ffi_unsafe_callback_unref::decl(), |