MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / As

Method As

napi-inl.h:958–963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

956
957template <typename T>
958inline T Value::As() const {
959#ifdef NODE_ADDON_API_ENABLE_TYPE_CHECK_ON_AS
960 T::CheckCast(_env, _value);
961#endif
962 return T(_env, _value);
963}
964
965template <typename T>
966inline T Value::UnsafeAs() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected