Searched defs:JSConvertBase (Results 1 – 1 of 1) sorted by relevance
57 struct JSConvertBase { struct59 using cpptype = ImplCpptype;60 static constexpr bool IS_REFTYPE = std::is_pointer_v<cpptype>;61 …tatic constexpr size_t TYPE_SIZE = IS_REFTYPE ? ClassHelper::OBJECT_POINTER_SIZE : sizeof(cpptype);63 static void TypeCheckFailed() in TypeCheckFailed()69 static napi_value Wrap(napi_env env, cpptype etsVal) in Wrap()80 static std::optional<cpptype> Unwrap(InteropCtx *ctx, napi_env env, napi_value jsVal) in Unwrap()90 static napi_value WrapWithNullCheck(napi_env env, cpptype etsVal) in WrapWithNullCheck()118 …struct JSConvert##type : public JSConvertBase<JSConvert##type, cpptype_> { … argument