![]() |
v8 14.1.146 (node 25.0.0)
V8 is Google's open source JavaScript engine
|
#include <v8-primitive.h>
Public Member Functions | |
| ValueView (Isolate *isolate, Local< v8::String > str) | |
| ~ValueView () | |
| const uint8_t * | data8 () const |
| const uint16_t * | data16 () const |
| uint32_t | length () const |
| bool | is_one_byte () const |
| ValueView (const ValueView &)=delete | |
| void | operator= (const ValueView &)=delete |
Returns a view onto a string's contents.
WARNING: This does not copy the string's contents, and will therefore be invalidated if the GC can move the string while the ValueView is alive. It is therefore required that no GC or allocation can happen while there is an active ValueView. This requirement may be relaxed in the future.
V8 strings are either encoded as one-byte or two-bytes per character.
Definition at line 704 of file v8-primitive.h.
| ValueView | ( | Isolate * | isolate, |
| Local< v8::String > | str | ||
| ) |
| ~ValueView | ( | ) |
|
inline |
Definition at line 714 of file v8-primitive.h.
|
inline |
Definition at line 708 of file v8-primitive.h.
|
inline |
Definition at line 721 of file v8-primitive.h.
|
inline |
Definition at line 720 of file v8-primitive.h.
|
delete |
| const uint16_t* data16_ |
Definition at line 733 of file v8-primitive.h.
| const uint8_t* data8_ |
Definition at line 732 of file v8-primitive.h.