BLUE
PHP 7.4.33
Path:
/var/www/idmc.bitkit.dk/httpdocs/node_modules/node-addon-api
Run
Logout
Edit File
Size: 6.17 KB
Close
/var/www/idmc.bitkit.dk/httpdocs/node_modules/node-addon-api/napi-inl.deprecated.h
Text
Base64
#ifndef SRC_NAPI_INL_DEPRECATED_H_ #define SRC_NAPI_INL_DEPRECATED_H_ //////////////////////////////////////////////////////////////////////////////// // PropertyDescriptor class //////////////////////////////////////////////////////////////////////////////// template <typename Getter> inline PropertyDescriptor PropertyDescriptor::Accessor( const char* utf8name, Getter getter, napi_property_attributes attributes, void* /*data*/) { using CbData = details::CallbackData<Getter, Napi::Value>; // TODO: Delete when the function is destroyed auto callbackData = new CbData({getter, nullptr}); return PropertyDescriptor({utf8name, nullptr, nullptr, CbData::Wrapper, nullptr, nullptr, attributes, callbackData}); } template <typename Getter> inline PropertyDescriptor PropertyDescriptor::Accessor( const std::string& utf8name, Getter getter, napi_property_attributes attributes, void* data) { return Accessor(utf8name.c_str(), getter, attributes, data); } template <typename Getter> inline PropertyDescriptor PropertyDescriptor::Accessor( napi_value name, Getter getter, napi_property_attributes attributes, void* /*data*/) { using CbData = details::CallbackData<Getter, Napi::Value>; // TODO: Delete when the function is destroyed auto callbackData = new CbData({getter, nullptr}); return PropertyDescriptor({nullptr, name, nullptr, CbData::Wrapper, nullptr, nullptr, attributes, callbackData}); } template <typename Getter> inline PropertyDescriptor PropertyDescriptor::Accessor( Name name, Getter getter, napi_property_attributes attributes, void* data) { napi_value nameValue = name; return PropertyDescriptor::Accessor(nameValue, getter, attributes, data); } template <typename Getter, typename Setter> inline PropertyDescriptor PropertyDescriptor::Accessor( const char* utf8name, Getter getter, Setter setter, napi_property_attributes attributes, void* /*data*/) { using CbData = details::AccessorCallbackData<Getter, Setter>; // TODO: Delete when the function is destroyed auto callbackData = new CbData({getter, setter, nullptr}); return PropertyDescriptor({utf8name, nullptr, nullptr, CbData::GetterWrapper, CbData::SetterWrapper, nullptr, attributes, callbackData}); } template <typename Getter, typename Setter> inline PropertyDescriptor PropertyDescriptor::Accessor( const std::string& utf8name, Getter getter, Setter setter, napi_property_attributes attributes, void* data) { return Accessor(utf8name.c_str(), getter, setter, attributes, data); } template <typename Getter, typename Setter> inline PropertyDescriptor PropertyDescriptor::Accessor( napi_value name, Getter getter, Setter setter, napi_property_attributes attributes, void* /*data*/) { using CbData = details::AccessorCallbackData<Getter, Setter>; // TODO: Delete when the function is destroyed auto callbackData = new CbData({getter, setter, nullptr}); return PropertyDescriptor({nullptr, name, nullptr, CbData::GetterWrapper, CbData::SetterWrapper, nullptr, attributes, callbackData}); } template <typename Getter, typename Setter> inline PropertyDescriptor PropertyDescriptor::Accessor( Name name, Getter getter, Setter setter, napi_property_attributes attributes, void* data) { napi_value nameValue = name; return PropertyDescriptor::Accessor( nameValue, getter, setter, attributes, data); } template <typename Callable> inline PropertyDescriptor PropertyDescriptor::Function( const char* utf8name, Callable cb, napi_property_attributes attributes, void* /*data*/) { using ReturnType = decltype(cb(CallbackInfo(nullptr, nullptr))); using CbData = details::CallbackData<Callable, ReturnType>; // TODO: Delete when the function is destroyed auto callbackData = new CbData({cb, nullptr}); return PropertyDescriptor({utf8name, nullptr, CbData::Wrapper, nullptr, nullptr, nullptr, attributes, callbackData}); } template <typename Callable> inline PropertyDescriptor PropertyDescriptor::Function( const std::string& utf8name, Callable cb, napi_property_attributes attributes, void* data) { return Function(utf8name.c_str(), cb, attributes, data); } template <typename Callable> inline PropertyDescriptor PropertyDescriptor::Function( napi_value name, Callable cb, napi_property_attributes attributes, void* /*data*/) { using ReturnType = decltype(cb(CallbackInfo(nullptr, nullptr))); using CbData = details::CallbackData<Callable, ReturnType>; // TODO: Delete when the function is destroyed auto callbackData = new CbData({cb, nullptr}); return PropertyDescriptor({nullptr, name, CbData::Wrapper, nullptr, nullptr, nullptr, attributes, callbackData}); } template <typename Callable> inline PropertyDescriptor PropertyDescriptor::Function( Name name, Callable cb, napi_property_attributes attributes, void* data) { napi_value nameValue = name; return PropertyDescriptor::Function(nameValue, cb, attributes, data); } #endif // !SRC_NAPI_INL_DEPRECATED_H_
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 13
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
tools
DIR
-
drwxrwxr-x
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
common.gypi
762 B
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
except.gypi
560 B
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
306 B
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE.md
1.22 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
napi-inl.deprecated.h
6.17 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
napi-inl.h
202.58 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
napi.h
110.01 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
node_api.gyp
132 B
lrw-rw-r--
2024-09-23 09:37:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
noexcept.gypi
639 B
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
nothing.c
0 B
lrw-rw-r--
2024-09-23 09:37:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package-support.json
467 B
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
10.04 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
13.41 KB
lrw-rw-r--
2024-09-23 09:37:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).