summaryrefslogtreecommitdiff
path: root/ext/ffi/lib.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-09-07 16:21:47 +0530
committerGitHub <noreply@github.com>2022-09-07 16:21:47 +0530
commit027d4d433dce32a3b715184b54e7fe6403dedec2 (patch)
treedfd70be0537dd8defce5ef14eacfa57be222746d /ext/ffi/lib.rs
parentd57f9d560d7b675bda3cf3ba0ac69201b73467b3 (diff)
perf(ops): inline &[u8] arguments and enable fast API (#15731)
Diffstat (limited to 'ext/ffi/lib.rs')
-rw-r--r--ext/ffi/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs
index b93638c88..bc3a58209 100644
--- a/ext/ffi/lib.rs
+++ b/ext/ffi/lib.rs
@@ -18,7 +18,6 @@ use deno_core::Extension;
use deno_core::OpState;
use deno_core::Resource;
use deno_core::ResourceId;
-use deno_core::ZeroCopyBuf;
use dlopen::raw::Library;
use libffi::middle::Arg;
use libffi::middle::Cif;
@@ -2154,7 +2153,7 @@ where
fn op_ffi_buf_copy_into<FP>(
state: &mut deno_core::OpState,
src: usize,
- mut dst: ZeroCopyBuf,
+ dst: &mut [u8],
len: usize,
) -> Result<(), AnyError>
where