isBuffer(xx)是false 麻烦确认下这个是不是bug,是否跟node对齐,napi_create_external_arraybuffer创建的...
(napi_create_external_buffer(env, ptr->size(), const_cast<char*>(ptr->data()), Finalize<rocksdb::PinnableSlice>, ptr, &element)); } else { NAPI_STATUS_THROWS(napi_get_undefined(env, &element)); } NAPI_STATUS_THROWS(napi_set_element(env, ret, static_cast<uint32_t>(idx), ...
letmutadjusted_external_memory_size = std::mem::MaybeUninit::new(0); ifsize_hint !=0{ check_status!( unsafe{ sys::napi_adjust_external_memory( env, size_hint, adjusted_external_memory_size.as_mut_ptr(), ) }, "Adjust external memory failed" ...
增加napi_create_external_buffer测试用例 如何复现该缺陷 增加napi_create_external_buffer测试用例 其他补充信息 版本或分支信息 master 5.0-Beta1 Release 4.1 Release 4.0 Release 3.2 tuxiaohang 创建了任务 27天前 tuxiaohang 添加了 bug 标签 27天前 展开全部操作日志 登录 后才可以发表评论 状态...
Ntah'Napi 2 Edit It looks like we don't have any external reviews for this title yet.Be the first to contribute. Learn more Contribute to this page Suggest an edit or add missing content Learn more about contributing Edit page More from this title ...
Ntah'Napi 2 Edit It looks like we don't have any external reviews for this title yet. Be the first to contribute.Learn more Contribute to this page Suggest an edit or add missing content Learn more about contributing Edit page More from this title Awards FAQ User reviews User ratings Meta...
Ntah'Napi Edit It looks like we don't have any external reviews for this title yet. Be the first to contribute.Learn more Contribute to this page Suggest an edit or add missing content Learn more about contributing Edit page More from this title Awards FAQ User reviews User ratings Metacrit...
compact mode support more complex data-struct which use ToNapiValue. Set the status of JsExternal as deprecated. Update the External and CleanupHook example.
crates/napi/src/bindgen_runtime/js_values/external.rs Show comments View file Edit file Delete file Original file line numberDiff line numberDiff line change @@ -12,6 +12,9 @@ pub struct External<T: 'static> { pub adjusted_size: i64, }unsafe...
voidnapi_module_register(napi_module* mod) { intmodule_version = -1; #ifdefEXTERNAL_NAPI module_version = NODE_MODULE_VERSION; #endif//EXTERNAL_NAPI node::node_module* nm =newnode::node_module { module_version, -1, mod->nm_flags, ...