From f6e9150b33168ab8c5e48238860e2c3f3bf625f3 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 18 Aug 2020 14:07:57 +0200 Subject: Async op dispatcher support with 'stateful_json_op_(a)sync()' (#7095) Closes: #7020 --- core/zero_copy_buf.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/zero_copy_buf.rs') diff --git a/core/zero_copy_buf.rs b/core/zero_copy_buf.rs index a2625b8aa..053576547 100644 --- a/core/zero_copy_buf.rs +++ b/core/zero_copy_buf.rs @@ -1,8 +1,11 @@ use crate::bindings; use rusty_v8 as v8; +use smallvec::SmallVec; use std::ops::Deref; use std::ops::DerefMut; +pub type BufVec = SmallVec<[ZeroCopyBuf; 2]>; + /// A ZeroCopyBuf encapsulates a slice that's been borrowed from a JavaScript /// ArrayBuffer object. JavaScript objects can normally be garbage collected, /// but the existence of a ZeroCopyBuf inhibits this until it is dropped. It -- cgit v1.2.3