#include <node_version.h>
#include <uv.h>
#include <node.h>
#include <node_buffer.h>
#include <node_object_wrap.h>
#include <algorithm>
#include <cstring>
#include <climits>
#include <cstdlib>
#include <string>
#include <vector>
#include <pthread.h>
#include "nan_callbacks.h"
#include "nan_maybe_pre_43_inl.h"
#include "nan_converters.h"
#include "nan_new.h"
#include "nan_persistent_pre_12_inl.h"
#include "nan_string_bytes.h"
#include "nan_weak.h"
#include "nan_object_wrap.h"
#include "nan_typedarray_contents.h"
Go to the source code of this file.
Classes | |
class | Nan::AsyncProgressWorkerBase< T > |
class | Nan::AsyncWorker |
class | Nan::Callback |
struct | Nan::CopyablePersistentTraits< T > |
class | Nan::EscapableHandleScope |
class | Nan::AsyncProgressWorkerBase< T >::ExecutionProgress |
struct | Nan::imp::Factory< v8::Array > |
struct | Nan::imp::Factory< v8::Boolean > |
struct | Nan::imp::Factory< v8::BooleanObject > |
struct | Nan::imp::Factory< v8::Context > |
struct | Nan::imp::Factory< v8::Date > |
struct | Nan::imp::Factory< v8::External > |
struct | Nan::imp::Factory< v8::Function > |
struct | Nan::imp::Factory< v8::FunctionTemplate > |
struct | Nan::imp::Factory< v8::Int32 > |
struct | Nan::imp::Factory< v8::Integer > |
struct | Nan::imp::Factory< v8::Number > |
struct | Nan::imp::Factory< v8::NumberObject > |
struct | Nan::imp::Factory< v8::Object > |
struct | Nan::imp::Factory< v8::ObjectTemplate > |
struct | Nan::imp::Factory< v8::RegExp > |
struct | Nan::imp::Factory< v8::Script > |
struct | Nan::imp::Factory< v8::Signature > |
struct | Nan::imp::Factory< v8::String > |
struct | Nan::imp::Factory< v8::StringObject > |
struct | Nan::imp::Factory< v8::Uint32 > |
struct | Nan::imp::FactoryBase< T > |
class | Nan::FunctionCallbackInfo< T > |
class | Nan::Global< T > |
class | Nan::HandleScope |
struct | Nan::imp::IntegerFactory< T > |
class | Nan::Maybe< T > |
struct | Nan::imp::MaybeFactoryBase< T > |
struct | Nan::imp::Maybefier< MaybeLocal< T > > |
struct | Nan::imp::Maybefier< v8::Local< T > > |
class | Nan::MaybeLocal< T > |
class | Nan::NonCopyablePersistentTraits< T > |
class | Nan::ObjectWrap |
class | Nan::Persistent< T, M > |
class | Nan::PersistentBase< T > |
class | Nan::PropertyCallbackInfo< T > |
class | Nan::PropertyCallbackInfo< v8::Array > |
class | Nan::PropertyCallbackInfo< v8::Boolean > |
class | Nan::PropertyCallbackInfo< v8::Integer > |
class | Nan::PropertyCallbackInfoBase< T > |
class | Nan::ReturnValue< T > |
class | Nan::imp::ReturnValueImp< T > |
struct | Nan::Global< T >::RValue |
struct | Nan::Tap |
struct | Nan::imp::ToFactoryBase< T > |
class | Nan::TryCatch |
class | Nan::TypedArrayContents< T > |
class | Nan::Utf8String |
struct | Nan::imp::ValueFactoryBase< T > |
class | Nan::WeakCallbackInfo< T > |
struct | Nan::WeakCallbackType |
Namespaces | |
namespace | Nan |
namespace | Nan::imp |
Defines | |
#define | ATOM_0_21_MODULE_VERSION 41 |
#define | IOJS_1_0_MODULE_VERSION 42 |
#define | IOJS_1_1_MODULE_VERSION 43 |
#define | IOJS_2_0_MODULE_VERSION 44 |
#define | IOJS_3_0_MODULE_VERSION 45 |
#define | NAN_DEPRECATED |
#define | NAN_DISALLOW_ASSIGN(CLASS) void operator=(const CLASS&); |
#define | NAN_DISALLOW_ASSIGN_COPY(CLASS) |
#define | NAN_DISALLOW_ASSIGN_COPY_MOVE(CLASS) |
#define | NAN_DISALLOW_ASSIGN_MOVE(CLASS) |
#define | NAN_DISALLOW_COPY(CLASS) CLASS(const CLASS&); |
#define | NAN_DISALLOW_COPY_MOVE(CLASS) |
#define | NAN_DISALLOW_MOVE(CLASS) |
#define | NAN_EXPORT(target, function) Export(target, #function, function) |
#define | NAN_GC_CALLBACK(name) void name(v8::GCType type, v8::GCCallbackFlags flags) |
#define | NAN_GETTER(name) |
#define | NAN_HAS_CPLUSPLUS_11 (__cplusplus >= 201103L) |
#define | NAN_INDEX_DELETER(name) |
#define | NAN_INDEX_ENUMERATOR(name) |
#define | NAN_INDEX_GETTER(name) |
#define | NAN_INDEX_QUERY(name) |
#define | NAN_INDEX_SETTER(name) |
#define | NAN_INLINE inline |
#define | NAN_METHOD(name) Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info) |
#define | NAN_MODULE_INIT(name) void name(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE target) |
#define | NAN_PROPERTY_DELETER(name) |
#define | NAN_PROPERTY_ENUMERATOR(name) |
#define | NAN_PROPERTY_GETTER(name) |
#define | NAN_PROPERTY_QUERY(name) |
#define | NAN_PROPERTY_SETTER(name) |
#define | NAN_SETTER(name) |
#define | NAN_STRINGIZE(x) NAN_STRINGIZE2(x) |
#define | NAN_STRINGIZE2(x) #x |
#define | NAN_TEST_EXPRESSION(expression) ( expression ), __FILE__ ":" NAN_STRINGIZE(__LINE__) ": " #expression |
#define | NAUV_UVVERSION 0x000b00 |
#define | NAUV_WORK_CB(func) void func(uv_async_t *async, int) |
#define | NODE_0_10_MODULE_VERSION 11 |
#define | NODE_0_12_MODULE_VERSION 14 |
#define | NODE_4_0_MODULE_VERSION 46 |
#define | NODE_5_0_MODULE_VERSION 47 |
#define | NODE_6_0_MODULE_VERSION 48 |
#define | TYPE_CHECK(T, S) |
#define | X(NAME) |
Typedefs | |
typedef v8::Handle< v8::Object > | Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE |
typedef AsyncProgressWorkerBase< char > | Nan::AsyncProgressWorker |
typedef v8::Script | Nan::BoundScript |
typedef v8::String::ExternalAsciiStringResource | Nan::ExternalOneByteStringResource |
typedef void(* | Nan::FreeCallback )(char *data, void *hint) |
typedef void(* | Nan::FunctionCallback )(const FunctionCallbackInfo< v8::Value > &) |
typedef void(* | Nan::GetterCallback )(v8::Local< v8::String >, const PropertyCallbackInfo< v8::Value > &) |
typedef void(* | Nan::IndexDeleterCallback )(uint32_t, const PropertyCallbackInfo< v8::Boolean > &) |
typedef void(* | Nan::IndexEnumeratorCallback )(const PropertyCallbackInfo< v8::Array > &) |
typedef void(* | Nan::IndexGetterCallback )(uint32_t, const PropertyCallbackInfo< v8::Value > &) |
typedef void(* | Nan::IndexQueryCallback )(uint32_t, const PropertyCallbackInfo< v8::Integer > &) |
typedef void(* | Nan::IndexSetterCallback )(uint32_t, v8::Local< v8::Value >, const PropertyCallbackInfo< v8::Value > &) |
typedef const PropertyCallbackInfo < v8::Value > & | Nan::NAN_GETTER_ARGS_TYPE |
typedef void | Nan::NAN_GETTER_RETURN_TYPE |
typedef const PropertyCallbackInfo < v8::Boolean > & | Nan::NAN_INDEX_DELETER_ARGS_TYPE |
typedef void | Nan::NAN_INDEX_DELETER_RETURN_TYPE |
typedef const PropertyCallbackInfo < v8::Array > & | Nan::NAN_INDEX_ENUMERATOR_ARGS_TYPE |
typedef void | Nan::NAN_INDEX_ENUMERATOR_RETURN_TYPE |
typedef const PropertyCallbackInfo < v8::Value > & | Nan::NAN_INDEX_GETTER_ARGS_TYPE |
typedef void | Nan::NAN_INDEX_GETTER_RETURN_TYPE |
typedef const PropertyCallbackInfo < v8::Integer > & | Nan::NAN_INDEX_QUERY_ARGS_TYPE |
typedef void | Nan::NAN_INDEX_QUERY_RETURN_TYPE |
typedef const PropertyCallbackInfo < v8::Value > & | Nan::NAN_INDEX_SETTER_ARGS_TYPE |
typedef void | Nan::NAN_INDEX_SETTER_RETURN_TYPE |
typedef const FunctionCallbackInfo < v8::Value > & | Nan::NAN_METHOD_ARGS_TYPE |
typedef void | Nan::NAN_METHOD_RETURN_TYPE |
typedef const PropertyCallbackInfo < v8::Boolean > & | Nan::NAN_PROPERTY_DELETER_ARGS_TYPE |
typedef void | Nan::NAN_PROPERTY_DELETER_RETURN_TYPE |
typedef const PropertyCallbackInfo < v8::Array > & | Nan::NAN_PROPERTY_ENUMERATOR_ARGS_TYPE |
typedef void | Nan::NAN_PROPERTY_ENUMERATOR_RETURN_TYPE |
typedef const PropertyCallbackInfo < v8::Value > & | Nan::NAN_PROPERTY_GETTER_ARGS_TYPE |
typedef void | Nan::NAN_PROPERTY_GETTER_RETURN_TYPE |
typedef const PropertyCallbackInfo < v8::Integer > & | Nan::NAN_PROPERTY_QUERY_ARGS_TYPE |
typedef void | Nan::NAN_PROPERTY_QUERY_RETURN_TYPE |
typedef const PropertyCallbackInfo < v8::Value > & | Nan::NAN_PROPERTY_SETTER_ARGS_TYPE |
typedef void | Nan::NAN_PROPERTY_SETTER_RETURN_TYPE |
typedef const PropertyCallbackInfo< void > & | Nan::NAN_SETTER_ARGS_TYPE |
typedef void | Nan::NAN_SETTER_RETURN_TYPE |
typedef v8::Handle< v8::Value >(* | Nan::imp::NativeFunction )(const v8::Arguments &) |
typedef v8::Handle< v8::Value >(* | Nan::imp::NativeGetter )(v8::Local< v8::String >, const v8::AccessorInfo &) |
typedef v8::Handle< v8::Boolean >(* | Nan::imp::NativeIndexDeleter )(uint32_t, const v8::AccessorInfo &) |
typedef v8::Handle< v8::Array >(* | Nan::imp::NativeIndexEnumerator )(const v8::AccessorInfo &) |
typedef v8::Handle< v8::Value >(* | Nan::imp::NativeIndexGetter )(uint32_t, const v8::AccessorInfo &) |
typedef v8::Handle< v8::Integer >(* | Nan::imp::NativeIndexQuery )(uint32_t, const v8::AccessorInfo &) |
typedef v8::Handle< v8::Value >(* | Nan::imp::NativeIndexSetter )(uint32_t, v8::Local< v8::Value >, const v8::AccessorInfo &) |
typedef v8::Handle< v8::Array >(* | Nan::imp::NativePropertyEnumerator )(const v8::AccessorInfo &) |
typedef v8::Handle< v8::Value >(* | Nan::imp::NativePropertyGetter )(v8::Local< v8::String >, const v8::AccessorInfo &) |
typedef v8::Handle< v8::Integer >(* | Nan::imp::NativePropertyQuery )(v8::Local< v8::String >, const v8::AccessorInfo &) |
typedef v8::Handle< v8::Value >(* | Nan::imp::NativePropertySetter )(v8::Local< v8::String >, v8::Local< v8::Value >, const v8::AccessorInfo &) |
typedef void(* | Nan::imp::NativeSetter )(v8::Local< v8::String >, v8::Local< v8::Value >, const v8::AccessorInfo &) |
typedef pthread_key_t | Nan::nauv_key_t |
typedef void(* | Nan::PropertyDeleterCallback )(v8::Local< v8::String >, const PropertyCallbackInfo< v8::Boolean > &) |
typedef void(* | Nan::PropertyEnumeratorCallback )(const PropertyCallbackInfo< v8::Array > &) |
typedef void(* | Nan::PropertyGetterCallback )(v8::Local< v8::String >, const PropertyCallbackInfo< v8::Value > &) |
typedef void(* | Nan::PropertyQueryCallback )(v8::Local< v8::String >, const PropertyCallbackInfo< v8::Integer > &) |
typedef static v8::Handle < v8::Boolean > (NativePropertyDeleter)(v8 v8::Handle< v8::Integer > | Nan::imp::PropertyQueryCallbackWrapper (v8::Local< v8::String > property, const v8::AccessorInfo &info) |
typedef void(* | Nan::PropertySetterCallback )(v8::Local< v8::String >, v8::Local< v8::Value >, const PropertyCallbackInfo< v8::Value > &) |
typedef void(* | Nan::SetterCallback )(v8::Local< v8::String >, v8::Local< v8::Value >, const PropertyCallbackInfo< void > &) |
typedef v8::Local < v8::AccessorSignature > | Nan::imp::Sig |
typedef v8::Script | Nan::UnboundScript |
Enumerations | |
enum | Nan::Encoding { Nan::ASCII, Nan::UTF8, Nan::BASE64, Nan::UCS2, Nan::BINARY, Nan::HEX, Nan::BUFFER } |
Functions | |
void | Nan::AddGCEpilogueCallback (v8::GCEpilogueCallback callback, v8::GCType gc_type_filter=v8::kGCTypeAll) |
void | Nan::AddGCPrologueCallback (v8::GCPrologueCallback callback, v8::GCType gc_type_filter=v8::kGCTypeAll) |
int | Nan::AdjustExternalMemory (int bc) |
void | Nan::AsyncExecute (uv_work_t *req) |
void | Nan::AsyncExecuteComplete (uv_work_t *req) |
void | Nan::AsyncQueueWorker (AsyncWorker *worker) |
static size_t | Nan::imp::base64_encode (const char *src, size_t slen, char *dst, size_t dlen) |
MaybeLocal< v8::Value > | Nan::Call (v8::Local< v8::Function > fun, v8::Local< v8::Object > recv, int argc, v8::Local< v8::Value > argv[]) |
MaybeLocal< v8::Value > | Nan::CallAsConstructor (v8::Handle< v8::Object > obj, int argc, v8::Local< v8::Value > argv[]) |
MaybeLocal< v8::Value > | Nan::CallAsFunction (v8::Handle< v8::Object > obj, v8::Handle< v8::Object > recv, int argc, v8::Handle< v8::Value > argv[]) |
MaybeLocal< v8::Object > | Nan::CloneElementAt (v8::Handle< v8::Array > array, uint32_t index) |
MaybeLocal< BoundScript > | Nan::CompileScript (v8::Local< v8::String > s, const v8::ScriptOrigin &origin) |
MaybeLocal< BoundScript > | Nan::CompileScript (v8::Local< v8::String > s) |
static bool | Nan::imp::contains_non_ascii (const char *src, size_t len) |
static bool | Nan::imp::contains_non_ascii_slow (const char *buf, size_t len) |
void | Nan::ContextDisposedNotification () |
MaybeLocal< v8::Object > | Nan::CopyBuffer (const char *data, uint32_t size) |
ssize_t | Nan::DecodeBytes (v8::Local< v8::Value > val, enum Encoding encoding=BINARY) |
ssize_t | Nan::DecodeWrite (char *buf, size_t len, v8::Local< v8::Value > val, enum Encoding encoding=BINARY) |
Maybe< bool > | Nan::Delete (v8::Handle< v8::Object > obj, v8::Handle< v8::String > key) |
Maybe< bool > | Nan::Delete (v8::Handle< v8::Object > obj, uint32_t index) |
v8::Local< v8::String > | Nan::EmptyString () |
static Local< Value > | Nan::imp::Encode (const char *buf, size_t buflen, enum Encoding encoding) |
v8::Local< v8::Value > | Nan::Encode (const void *buf, size_t len, enum Encoding encoding=BINARY) |
Maybe< bool > | Nan::Equals (v8::Handle< v8::Value > a, v8::Handle< v8::Value >(b)) |
v8::Local< v8::Value > | Nan::ErrnoException (int errorno, const char *syscall=NULL, const char *message=NULL, const char *path=NULL) |
void | Nan::Export (ADDON_REGISTER_FUNCTION_ARGS_TYPE target, const char *name, FunctionCallback f) |
v8::Local< v8::Boolean > | Nan::False () |
void | Nan::FatalException (const TryCatch &try_catch) |
static void | Nan::imp::force_ascii (const char *src, char *dst, size_t len) |
static void | Nan::imp::force_ascii_slow (const char *src, char *dst, size_t len) |
Maybe< bool > | Nan::ForceSet (v8::Handle< v8::Object > obj, v8::Handle< v8::Value > key, v8::Handle< v8::Value > value, v8::PropertyAttribute attribs=v8::None) |
void | Nan::FreeData (char *data, void *hint) |
static v8::Handle< v8::Value > | Nan::imp::FunctionCallbackWrapper (const v8::Arguments &args) |
MaybeLocal< v8::Value > | Nan::Get (v8::Handle< v8::Object > obj, v8::Handle< v8::Value > key) |
MaybeLocal< v8::Value > | Nan::Get (v8::Handle< v8::Object > obj, uint32_t index) |
v8::Local< v8::Context > | Nan::GetCurrentContext () |
Maybe< int > | Nan::GetEndColumn (v8::Handle< v8::Message > msg) |
ExternalOneByteStringResource const * | Nan::imp::GetExternalResource (v8::Local< v8::String > str) |
MaybeLocal< v8::Function > | Nan::GetFunction (v8::Handle< v8::FunctionTemplate > t) |
void | Nan::GetHeapStatistics (v8::HeapStatistics *heap_statistics) |
void * | Nan::GetInternalFieldPointer (v8::Local< v8::Object > object, int index) |
template<typename T > | |
T * | Nan::GetIsolateData (v8::Isolate *isolate) |
Maybe< int > | Nan::GetLineNumber (v8::Handle< v8::Message > msg) |
MaybeLocal< v8::Array > | Nan::GetOwnPropertyNames (v8::Handle< v8::Object > obj) |
Maybe< v8::PropertyAttribute > | Nan::GetPropertyAttributes (v8::Handle< v8::Object > obj, v8::Handle< v8::Value > key) |
MaybeLocal< v8::Array > | Nan::GetPropertyNames (v8::Handle< v8::Object > obj) |
MaybeLocal< v8::Value > | Nan::GetRealNamedProperty (v8::Handle< v8::Object > obj, v8::Handle< v8::String > key) |
MaybeLocal< v8::Value > | Nan::GetRealNamedPropertyInPrototypeChain (v8::Handle< v8::Object > obj, v8::Handle< v8::String > key) |
MaybeLocal< v8::String > | Nan::GetSourceLine (v8::Handle< v8::Message > msg) |
Maybe< int > | Nan::GetStartColumn (v8::Handle< v8::Message > msg) |
static v8::Handle< v8::Value > | Nan::imp::GetterCallbackWrapper (v8::Local< v8::String > property, const v8::AccessorInfo &info) |
Maybe< bool > | Nan::Has (v8::Handle< v8::Object > obj, v8::Handle< v8::String > key) |
Maybe< bool > | Nan::Has (v8::Handle< v8::Object > obj, uint32_t index) |
Maybe< bool > | Nan::HasOwnProperty (v8::Handle< v8::Object > obj, v8::Handle< v8::String > key) |
Maybe< bool > | Nan::HasRealIndexedProperty (v8::Handle< v8::Object > obj, uint32_t index) |
Maybe< bool > | Nan::HasRealNamedCallbackProperty (v8::Handle< v8::Object > obj, v8::Handle< v8::String > key) |
Maybe< bool > | Nan::HasRealNamedProperty (v8::Handle< v8::Object > obj, v8::Handle< v8::String > key) |
static size_t | Nan::imp::hex_encode (const char *src, size_t slen, char *dst, size_t dlen) |
bool | Nan::IdleNotification (int idle_time_in_ms) |
static v8::Handle< v8::Boolean > | Nan::imp::IndexDeleterCallbackWrapper (uint32_t index, const v8::AccessorInfo &info) |
static v8::Handle< v8::Array > | Nan::imp::IndexEnumeratorCallbackWrapper (const v8::AccessorInfo &info) |
static v8::Handle< v8::Value > | Nan::imp::IndexGetterCallbackWrapper (uint32_t index, const v8::AccessorInfo &info) |
static v8::Handle< v8::Integer > | Nan::imp::IndexQueryCallbackWrapper (uint32_t index, const v8::AccessorInfo &info) |
static v8::Handle< v8::Value > | Nan::imp::IndexSetterCallbackWrapper (uint32_t index, v8::Local< v8::Value > value, const v8::AccessorInfo &info) |
bool | Nan::imp::IsExternal (v8::Local< v8::String > str) |
template<typename T > | |
Maybe< T > | Nan::Just (const T &t) |
void | Nan::LowMemoryNotification () |
v8::Local< v8::Value > | Nan::MakeCallback (v8::Local< v8::Object > target, v8::Local< v8::Function > func, int argc, v8::Local< v8::Value > *argv) |
v8::Local< v8::Value > | Nan::MakeCallback (v8::Local< v8::Object > target, v8::Local< v8::String > symbol, int argc, v8::Local< v8::Value > *argv) |
v8::Local< v8::Value > | Nan::MakeCallback (v8::Local< v8::Object > target, const char *method, int argc, v8::Local< v8::Value > *argv) |
template<typename T , template< typename > class MaybeMaybe> | |
MaybeLocal< T > | Nan::MakeMaybe (MaybeMaybe< T > v) |
NAN_DEPRECATED v8::Local < v8::Value > | Nan::NanErrnoException (int errorno, const char *syscall=NULL, const char *message=NULL, const char *path=NULL) |
int | Nan::nauv_key_create (nauv_key_t *key) |
void | Nan::nauv_key_delete (nauv_key_t *key) |
void * | Nan::nauv_key_get (nauv_key_t *key) |
void | Nan::nauv_key_set (nauv_key_t *key, void *value) |
template<typename T > | |
imp::Factory< T >::return_t | Nan::New () |
template<typename T , typename A0 > | |
imp::Factory< T >::return_t | Nan::New (A0 arg0) |
template<typename T , typename A0 , typename A1 > | |
imp::Factory< T >::return_t | Nan::New (A0 arg0, A1 arg1) |
template<typename T , typename A0 , typename A1 , typename A2 > | |
imp::Factory< T >::return_t | Nan::New (A0 arg0, A1 arg1, A2 arg2) |
template<typename T , typename A0 , typename A1 , typename A2 , typename A3 > | |
imp::Factory< T >::return_t | Nan::New (A0 arg0, A1 arg1, A2 arg2, A3 arg3) |
template<typename T > | |
imp::Factory< T >::return_t | Nan::New (FunctionCallback callback, v8::Local< v8::Value > data=v8::Local< v8::Value >()) |
template<typename T > | |
v8::Local< T > | Nan::New (v8::Handle< T > h) |
template<typename T , typename A2 > | |
imp::Factory< T >::return_t | Nan::New (FunctionCallback callback, v8::Local< v8::Value > data=v8::Local< v8::Value >(), A2 a2=A2()) |
template<typename T > | |
v8::Local< T > | Nan::New (v8::Persistent< T > const &p) |
template<typename T , typename M > | |
v8::Local< T > | Nan::New (Persistent< T, M > const &p) |
template<typename T > | |
v8::Local< T > | Nan::New (Global< T > const &p) |
imp::Factory< v8::Boolean > ::return_t | Nan::New (bool value) |
imp::Factory< v8::Int32 >::return_t | Nan::New (int32_t value) |
imp::Factory< v8::Uint32 > ::return_t | Nan::New (uint32_t value) |
imp::Factory< v8::Number > ::return_t | Nan::New (double value) |
imp::Factory< v8::String > ::return_t | Nan::New (std::string const &value) |
imp::Factory< v8::String > ::return_t | Nan::New (const char *value, int length) |
imp::Factory< v8::String > ::return_t | Nan::New (const uint16_t *value, int length) |
imp::Factory< v8::String > ::return_t | Nan::New (const char *value) |
imp::Factory< v8::String > ::return_t | Nan::New (const uint16_t *value) |
imp::Factory< v8::String > ::return_t | Nan::New (v8::String::ExternalStringResource *value) |
imp::Factory< v8::String > ::return_t | Nan::New (ExternalOneByteStringResource *value) |
imp::Factory< v8::RegExp > ::return_t | Nan::New (v8::Local< v8::String > pattern, v8::RegExp::Flags flags) |
MaybeLocal< v8::Object > | Nan::NewBuffer (char *data, size_t length, node::Buffer::free_callback callback, void *hint) |
MaybeLocal< v8::Object > | Nan::NewBuffer (uint32_t size) |
MaybeLocal< v8::Object > | Nan::NewBuffer (char *data, uint32_t size) |
MaybeLocal< v8::Object > | Nan::NewInstance (v8::Handle< v8::Function > h) |
MaybeLocal< v8::Object > | Nan::NewInstance (v8::Local< v8::Function > h, int argc, v8::Local< v8::Value > argv[]) |
MaybeLocal< v8::Object > | Nan::NewInstance (v8::Handle< v8::ObjectTemplate > h) |
MaybeLocal< v8::String > | Nan::NewOneByteString (const uint8_t *value, int length=-1) |
template<typename T > | |
Maybe< T > | Nan::Nothing () |
v8::Local< v8::Primitive > | Nan::Null () |
MaybeLocal< v8::String > | Nan::ObjectProtoToString (v8::Handle< v8::Object > obj) |
static v8::Handle< v8::Boolean > | Nan::imp::PropertyDeleterCallbackWrapper (v8::Local< v8::String > property, const v8::AccessorInfo &info) |
static v8::Handle< v8::Array > | Nan::imp::PropertyEnumeratorCallbackWrapper (const v8::AccessorInfo &info) |
static v8::Handle< v8::Value > | Nan::imp::PropertyGetterCallbackWrapper (v8::Local< v8::String > property, const v8::AccessorInfo &info) |
static v8::Handle< v8::Value > | Nan::imp::PropertySetterCallbackWrapper (v8::Local< v8::String > property, v8::Local< v8::Value > value, const v8::AccessorInfo &info) |
void | Nan::RemoveGCEpilogueCallback (v8::GCEpilogueCallback callback) |
void | Nan::RemoveGCPrologueCallback (v8::GCPrologueCallback callback) |
MaybeLocal< v8::Value > | Nan::RunScript (v8::Local< v8::Script > script) |
Maybe< bool > | Nan::Set (v8::Handle< v8::Object > obj, v8::Handle< v8::Value > key, v8::Handle< v8::Value > value) |
Maybe< bool > | Nan::Set (v8::Handle< v8::Object > obj, uint32_t index, v8::Handle< v8::Value > value) |
void | Nan::SetAccessor (v8::Local< v8::ObjectTemplate > tpl, v8::Local< v8::String > name, GetterCallback getter, SetterCallback setter=0, v8::Local< v8::Value > data=v8::Local< v8::Value >(), v8::AccessControl settings=v8::DEFAULT, v8::PropertyAttribute attribute=v8::None, imp::Sig signature=imp::Sig()) |
bool | Nan::SetAccessor (v8::Local< v8::Object > obj, v8::Local< v8::String > name, GetterCallback getter, SetterCallback setter=0, v8::Local< v8::Value > data=v8::Local< v8::Value >(), v8::AccessControl settings=v8::DEFAULT, v8::PropertyAttribute attribute=v8::None) |
void | Nan::SetAddHistogramSampleFunction (v8::AddHistogramSampleCallback cb) |
void | Nan::SetCallAsFunctionHandler (v8::Local< v8::ObjectTemplate > tpl, FunctionCallback callback, v8::Local< v8::Value > data=v8::Local< v8::Value >()) |
void | Nan::SetCallHandler (v8::Local< v8::FunctionTemplate > tpl, FunctionCallback callback, v8::Local< v8::Value > data=v8::Local< v8::Value >()) |
void | Nan::SetCounterFunction (v8::CounterLookupCallback cb) |
void | Nan::SetCreateHistogramFunction (v8::CreateHistogramCallback cb) |
void | Nan::SetIndexedPropertyHandler (v8::Local< v8::ObjectTemplate > tpl, IndexGetterCallback getter, IndexSetterCallback setter=0, IndexQueryCallback query=0, IndexDeleterCallback deleter=0, IndexEnumeratorCallback enumerator=0, v8::Local< v8::Value > data=v8::Local< v8::Value >()) |
void | Nan::SetInstanceTemplate (v8::Local< v8::FunctionTemplate > templ, const char *name, v8::Local< v8::Data > value) |
void | Nan::SetInstanceTemplate (v8::Local< v8::FunctionTemplate > templ, v8::Local< v8::String > name, v8::Local< v8::Data > value, v8::PropertyAttribute attributes) |
void | Nan::SetInternalFieldPointer (v8::Local< v8::Object > object, int index, void *value) |
template<typename T > | |
void | Nan::SetIsolateData (v8::Isolate *isolate, T *data) |
template<typename T , template< typename > class HandleType> | |
void | Nan::SetMethod (HandleType< T > recv, const char *name, FunctionCallback callback) |
template<typename T > | |
void | Nan::imp::SetMethodAux (T recv, v8::Local< v8::String > name, v8::Local< v8::FunctionTemplate > tpl, v8::Template *) |
template<typename T > | |
void | Nan::imp::SetMethodAux (T recv, v8::Local< v8::String > name, v8::Local< v8::FunctionTemplate > tpl,...) |
void | Nan::SetNamedPropertyHandler (v8::Local< v8::ObjectTemplate > tpl, PropertyGetterCallback getter, PropertySetterCallback setter=0, PropertyQueryCallback query=0, PropertyDeleterCallback deleter=0, PropertyEnumeratorCallback enumerator=0, v8::Local< v8::Value > data=v8::Local< v8::Value >()) |
Maybe< bool > | Nan::SetPrototype (v8::Handle< v8::Object > obj, v8::Handle< v8::Value > prototype) |
void | Nan::SetPrototypeMethod (v8::Local< v8::FunctionTemplate > recv, const char *name, FunctionCallback callback) |
void | Nan::SetPrototypeTemplate (v8::Local< v8::FunctionTemplate > templ, const char *name, v8::Local< v8::Data > value) |
void | Nan::SetPrototypeTemplate (v8::Local< v8::FunctionTemplate > templ, v8::Local< v8::String > name, v8::Local< v8::Data > value, v8::PropertyAttribute attributes) |
void | Nan::SetTemplate (v8::Local< v8::Template > templ, const char *name, v8::Local< v8::Data > value) |
void | Nan::SetTemplate (v8::Local< v8::Template > templ, v8::Local< v8::String > name, v8::Local< v8::Data > value, v8::PropertyAttribute attributes) |
static void | Nan::imp::SetterCallbackWrapper (v8::Local< v8::String > property, v8::Local< v8::Value > value, const v8::AccessorInfo &info) |
void | Nan::ThrowError (v8::Local< v8::Value > error) |
template<typename T > | |
v8::Local< T > | Nan::imp::To (v8::Local< v8::Integer > i) |
template<typename T > | |
imp::ToFactory< T >::return_t | Nan::To (v8::Local< v8::Value > val) |
template<> | |
v8::Local< v8::Int32 > | Nan::imp::To< v8::Int32 > (v8::Local< v8::Integer > i) |
template<> | |
v8::Local< v8::Integer > | Nan::imp::To< v8::Integer > (v8::Local< v8::Integer > i) |
template<> | |
v8::Local< v8::Uint32 > | Nan::imp::To< v8::Uint32 > (v8::Local< v8::Integer > i) |
MaybeLocal< v8::Uint32 > | Nan::ToArrayIndex (v8::Handle< v8::Value > val) |
MaybeLocal< v8::String > | Nan::ToDetailString (v8::Handle< v8::Value > val) |
v8::Local< v8::Boolean > | Nan::True () |
v8::Local< v8::Primitive > | Nan::Undefined () |
void | Nan::imp::widenString (std::vector< uint16_t > *ws, const uint8_t *s, int l) |
Variables | |
static const int | Nan::imp::kAccessorFieldCount = 3 |
static const int | Nan::imp::kDataIndex = 0 |
static const int | Nan::imp::kFunctionFieldCount = 2 |
static const int | Nan::imp::kFunctionIndex = 1 |
static const int | Nan::imp::kGetterIndex = 1 |
static const int | Nan::imp::kIndexPropertyDeleterIndex = 4 |
static const int | Nan::imp::kIndexPropertyEnumeratorIndex = 3 |
static const int | Nan::imp::kIndexPropertyFieldCount = 6 |
static const int | Nan::imp::kIndexPropertyGetterIndex = 1 |
static const int | Nan::imp::kIndexPropertyQueryIndex = 5 |
static const int | Nan::imp::kIndexPropertySetterIndex = 2 |
static const int | Nan::kInternalFieldsInWeakCallback = 2 |
static const size_t | Nan::imp::kMaxLength = 0x3fffffff |
static const int | Nan::kNoInternalFieldIndex = -1 |
static const int | Nan::imp::kPropertyDeleterIndex = 4 |
static const int | Nan::imp::kPropertyEnumeratorIndex = 3 |
static const int | Nan::imp::kPropertyFieldCount = 6 |
static const int | Nan::imp::kPropertyGetterIndex = 1 |
static const int | Nan::imp::kPropertyQueryIndex = 5 |
static const int | Nan::imp::kPropertySetterIndex = 2 |
static const unsigned | Nan::imp::kReplaceInvalidUtf8 = 0 |
static const int | Nan::imp::kSetterIndex = 2 |
#define ATOM_0_21_MODULE_VERSION 41 |
#define IOJS_1_0_MODULE_VERSION 42 |
#define IOJS_1_1_MODULE_VERSION 43 |
#define IOJS_2_0_MODULE_VERSION 44 |
#define IOJS_3_0_MODULE_VERSION 45 |
#define NAN_DEPRECATED |
#define NAN_DISALLOW_ASSIGN | ( | CLASS | ) | void operator=(const CLASS&); |
#define NAN_DISALLOW_ASSIGN_COPY | ( | CLASS | ) |
NAN_DISALLOW_ASSIGN(CLASS) \ NAN_DISALLOW_COPY(CLASS)
#define NAN_DISALLOW_ASSIGN_COPY_MOVE | ( | CLASS | ) |
NAN_DISALLOW_ASSIGN(CLASS) \ NAN_DISALLOW_COPY(CLASS) \ NAN_DISALLOW_MOVE(CLASS)
#define NAN_DISALLOW_ASSIGN_MOVE | ( | CLASS | ) |
NAN_DISALLOW_ASSIGN(CLASS) \ NAN_DISALLOW_MOVE(CLASS)
#define NAN_DISALLOW_COPY | ( | CLASS | ) | CLASS(const CLASS&); |
#define NAN_DISALLOW_COPY_MOVE | ( | CLASS | ) |
NAN_DISALLOW_COPY(CLASS) \ NAN_DISALLOW_MOVE(CLASS)
#define NAN_DISALLOW_MOVE | ( | CLASS | ) |
#define NAN_EXPORT | ( | target, | |
function | |||
) | Export(target, #function, function) |
#define NAN_GC_CALLBACK | ( | name | ) | void name(v8::GCType type, v8::GCCallbackFlags flags) |
#define NAN_GETTER | ( | name | ) |
Nan::NAN_GETTER_RETURN_TYPE name( \ v8::Local<v8::String> property \ , Nan::NAN_GETTER_ARGS_TYPE info)
#define NAN_HAS_CPLUSPLUS_11 (__cplusplus >= 201103L) |
#define NAN_INDEX_DELETER | ( | name | ) |
Nan::NAN_INDEX_DELETER_RETURN_TYPE name( \ uint32_t index \ , Nan::NAN_INDEX_DELETER_ARGS_TYPE info)
#define NAN_INDEX_ENUMERATOR | ( | name | ) |
Nan::NAN_INDEX_ENUMERATOR_RETURN_TYPE \ name(Nan::NAN_INDEX_ENUMERATOR_ARGS_TYPE info)
#define NAN_INDEX_GETTER | ( | name | ) |
Nan::NAN_INDEX_GETTER_RETURN_TYPE name( \ uint32_t index \ , Nan::NAN_INDEX_GETTER_ARGS_TYPE info)
#define NAN_INDEX_QUERY | ( | name | ) |
Nan::NAN_INDEX_QUERY_RETURN_TYPE name( \ uint32_t index \ , Nan::NAN_INDEX_QUERY_ARGS_TYPE info)
#define NAN_INDEX_SETTER | ( | name | ) |
Nan::NAN_INDEX_SETTER_RETURN_TYPE name( \ uint32_t index \ , v8::Local<v8::Value> value \ , Nan::NAN_INDEX_SETTER_ARGS_TYPE info)
#define NAN_INLINE inline |
#define NAN_METHOD | ( | name | ) | Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info) |
#define NAN_MODULE_INIT | ( | name | ) | void name(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE target) |
#define NAN_PROPERTY_DELETER | ( | name | ) |
Nan::NAN_PROPERTY_DELETER_RETURN_TYPE name( \ v8::Local<v8::String> property \ , Nan::NAN_PROPERTY_DELETER_ARGS_TYPE info)
#define NAN_PROPERTY_ENUMERATOR | ( | name | ) |
#define NAN_PROPERTY_GETTER | ( | name | ) |
Nan::NAN_PROPERTY_GETTER_RETURN_TYPE name( \ v8::Local<v8::String> property \ , Nan::NAN_PROPERTY_GETTER_ARGS_TYPE info)
#define NAN_PROPERTY_QUERY | ( | name | ) |
Nan::NAN_PROPERTY_QUERY_RETURN_TYPE name( \ v8::Local<v8::String> property \ , Nan::NAN_PROPERTY_QUERY_ARGS_TYPE info)
#define NAN_PROPERTY_SETTER | ( | name | ) |
Nan::NAN_PROPERTY_SETTER_RETURN_TYPE name( \ v8::Local<v8::String> property \ , v8::Local<v8::Value> value \ , Nan::NAN_PROPERTY_SETTER_ARGS_TYPE info)
#define NAN_SETTER | ( | name | ) |
Nan::NAN_SETTER_RETURN_TYPE name( \ v8::Local<v8::String> property \ , v8::Local<v8::Value> value \ , Nan::NAN_SETTER_ARGS_TYPE info)
#define NAN_STRINGIZE | ( | x | ) | NAN_STRINGIZE2(x) |
#define NAN_STRINGIZE2 | ( | x | ) | #x |
#define NAN_TEST_EXPRESSION | ( | expression | ) | ( expression ), __FILE__ ":" NAN_STRINGIZE(__LINE__) ": " #expression |
#define NAUV_UVVERSION 0x000b00 |
#define NAUV_WORK_CB | ( | func | ) | void func(uv_async_t *async, int) |
#define NODE_0_10_MODULE_VERSION 11 |
#define NODE_0_12_MODULE_VERSION 14 |
#define NODE_4_0_MODULE_VERSION 46 |
#define NODE_5_0_MODULE_VERSION 47 |
#define NODE_6_0_MODULE_VERSION 48 |
#define TYPE_CHECK | ( | T, | |
S | |||
) |
inline v8::Local<v8::Value> NAME(const char *msg) { \ EscapableHandleScope scope; \ return scope.Escape(v8::Exception::NAME(New(msg).ToLocalChecked())); \ } \ \ inline \ v8::Local<v8::Value> NAME(v8::Local<v8::String> msg) { \ return v8::Exception::NAME(msg); \ } \ \ inline void Throw ## NAME(const char *msg) { \ HandleScope scope; \ v8::ThrowException(v8::Exception::NAME(New(msg).ToLocalChecked())); \ } \ \ inline \ void Throw ## NAME(v8::Local<v8::String> errmsg) { \ v8::ThrowException(v8::Exception::NAME(errmsg)); \ }