fix(napi): fallback to copy buffer if zero copy is not allowed ()

This commit is contained in:
LongYinan 2023-01-19 17:26:59 +08:00 committed by GitHub
parent bdbdbccb56
commit fda0aa0eec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 154 additions and 166 deletions
crates/sys/src

View file

@ -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 =