Searched defs:JSConvertBase (Results 1 – 1 of 1) sorted by relevance
59 struct JSConvertBase { struct61 using cpptype = ImplCpptype;62 static constexpr bool IS_REFTYPE = std::is_pointer_v<cpptype>;63 …tatic constexpr size_t TYPE_SIZE = IS_REFTYPE ? ClassHelper::OBJECT_POINTER_SIZE : sizeof(cpptype);65 static void TypeCheckFailed() in TypeCheckFailed()71 static napi_value Wrap(napi_env env, cpptype etsVal) in Wrap()82 static std::optional<cpptype> Unwrap(InteropCtx *ctx, napi_env env, napi_value jsVal) in Unwrap()92 static napi_value WrapWithNullCheck(napi_env env, cpptype etsVal) in WrapWithNullCheck()120 …struct JSConvert##type : public JSConvertBase<JSConvert##type, cpptype_> { … argument