#include <v8-primitive.h>
Public Member Functions | |
Value (Isolate *isolate, Local< v8::Value > obj) | |
~Value () | |
uint16_t * | operator* () |
const uint16_t * | operator* () const |
uint32_t | length () const |
Value (const Value &)=delete | |
void | operator= (const Value &)=delete |
Converts an object to a two-byte (UTF-16-encoded) string.
If conversion to a string fails (eg. due to an exception in the toString() method of the object) then the length() method returns 0 and the * operator returns NULL.
WARNING: This will unconditionally copy the contents of the JavaScript string, and should be avoided in situations where performance is a concern.
v8::String::Value::~Value | ( | ) |
|
delete |
|
inline |
|
inline |
|
inline |
|
delete |