fix(napi): fallback to copy buffer if zero copy is not allowed (#1445)
This commit is contained in:
parent
bdbdbccb56
commit
fda0aa0eec
4 changed files with 154 additions and 166 deletions
crates/sys/src
|
@ -131,6 +131,7 @@ pub mod Status {
|
|||
pub const napi_arraybuffer_expected: i32 = 19;
|
||||
pub const napi_detachable_arraybuffer_expected: i32 = 20;
|
||||
pub const napi_would_deadlock: i32 = 21; // unused
|
||||
pub const napi_no_external_buffers_allowed: i32 = 22;
|
||||
}
|
||||
|
||||
pub type napi_callback =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue