Searched defs:JSConvertBase (Results 1 – 1 of 1) sorted by relevance
82 struct JSConvertBase { struct84 using cpptype = ImplCpptype;85 static constexpr bool IS_REFTYPE = std::is_pointer_v<cpptype>;86 static constexpr bool IS_JSVALUE = std::is_same_v<JSValue *, cpptype>;87 …tatic constexpr size_t TYPE_SIZE = IS_REFTYPE ? ClassHelper::OBJECT_POINTER_SIZE : sizeof(cpptype);89 static void TypeCheckFailed() in TypeCheckFailed()95 static napi_value Wrap(napi_env env, cpptype etsVal) in Wrap()106 static std::optional<cpptype> Unwrap(InteropCtx *ctx, napi_env env, napi_value jsVal) in Unwrap()116 static napi_value WrapWithNullCheck(napi_env env, cpptype etsVal) in WrapWithNullCheck()147 …struct JSConvert##type : public JSConvertBase<JSConvert##type, cpptype_> { … argument