![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <v8-primitive.h>
Public Member Functions | |
V8_DEPRECATE_SOON ("Prefer using String::ValueView if you can, or string->Write to a " "buffer if you cannot.") Value(Isolate *isolate | |
~Value () | |
uint16_t * | operator* () |
const uint16_t * | operator* () const |
uint32_t | length () const |
Value (const Value &)=delete | |
void | operator= (const Value &)=delete |
Public Attributes | |
Local< v8::Value > | obj |
Private Attributes | |
uint16_t * | str_ |
uint32_t | length_ |
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.
Definition at line 676 of file v8-primitive.h.
v8::String::Value::~Value | ( | ) |
|
delete |
|
inline |
Definition at line 685 of file v8-primitive.h.
|
inline |
Definition at line 683 of file v8-primitive.h.
|
inline |
Definition at line 684 of file v8-primitive.h.
|
delete |
v8::String::Value::V8_DEPRECATE_SOON | ( | "Prefer using String::ValueView if you | can, |
or string->Write to a " "buffer if you cannot." | ) |
|
private |
Definition at line 693 of file v8-primitive.h.
Definition at line 681 of file v8-primitive.h.
|
private |
Definition at line 692 of file v8-primitive.h.