Public Member Functions | Static Public Member Functions

v8::External Class Reference

#include <v8.h>

Inheritance diagram for v8::External:
v8::Value v8::Data

List of all members.

Public Member Functions

V8EXPORT void * Value () const

Static Public Member Functions

static V8EXPORT Local< ValueWrap (void *data)
static void * Unwrap (Handle< Value > obj)
static V8EXPORT Local< ExternalNew (void *value)
static ExternalCast (Value *obj)

Detailed Description

A JavaScript value that wraps a C++ void*. This type of value is mainly used to associate C++ data structures with JavaScript objects.

The Wrap function V8 will return the most optimal Value object wrapping the C++ void*. The type of the value is not guaranteed to be an External object and no assumptions about its type should be made. To access the wrapped value Unwrap should be used, all other operations on that object will lead to unpredictable results.


The documentation for this class was generated from the following file: