![]() |
v8 13.6.233 (node 24.1.0)
V8 is Google's open source JavaScript engine
|
#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 |
Data Fields | |
Local< v8::Value > | obj |
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.
References Value().
Referenced by operator=(), Value(), and ~Value().
|
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.
V8_DEPRECATE_SOON | ( | "Prefer using String::ValueView if you | can, |
or string->Write to a " "buffer if you cannot." | ) |
Definition at line 681 of file v8-primitive.h.