Lines Matching refs:data

8 #include "v8-data.h"          // NOLINT(build/include_directory)
37 V8_INLINE static Boolean* Cast(v8::Data* data) {
39 CheckCast(data);
41 return static_cast<Boolean*>(data);
64 V8_INLINE static PrimitiveArray* Cast(Data* data) {
66 CheckCast(data);
68 return reinterpret_cast<PrimitiveArray*>(data);
89 V8_INLINE static Name* Cast(Data* data) {
91 CheckCast(data);
93 return static_cast<Name*>(data);
145 * Returns whether this string is known to contain only one byte data,
153 * Returns whether this string contain only one byte data,
231 * ExternalStringResource::data() may be cached, otherwise it is not
253 * |ExternalStringResource::data()| has to be stable between |Lock()| and
279 * buffer. Note that the string data must be immutable.
290 * The string data from the underlying buffer. If the resource is cacheable
291 * then data() must return the same value for all invocations.
293 virtual const uint16_t* data() const = 0;
301 * Returns the cached data from the underlying buffer. This method can be
311 * Update {cached_data_} with the data from the underlying buffer. This can
329 * underlying buffer. Note that the string data must be immutable
330 * and that the data must be Latin-1 and not UTF-8, which would require
332 * indexing. Use String::New or convert to 16 bit data for non-Latin1.
345 * The string data from the underlying buffer. If the resource is cacheable
346 * then data() must return the same value for all invocations.
348 virtual const char* data() const = 0;
354 * Returns the cached data from the underlying buffer. If the resource is
364 * Update {cached_data_} with the data from the underlying buffer. This can
398 V8_INLINE static String* Cast(v8::Data* data) {
400 CheckCast(data);
402 return static_cast<String*>(data);
422 /** Allocates a new string from UTF-8 data. Only returns an empty value when
425 Isolate* isolate, const char* data,
428 /** Allocates a new string from Latin-1 data. Only returns an empty value
431 Isolate* isolate, const uint8_t* data,
434 /** Allocates a new string from UTF-16 data. Only returns an empty value when
437 Isolate* isolate, const uint16_t* data,
448 * Creates a new external string using the data defined in the given
470 * Creates a new external string using the one-byte data defined in the given
626 V8_INLINE static Symbol* Cast(Data* data) {
628 CheckCast(data);
630 return static_cast<Symbol*>(data);
645 V8_INLINE static Number* Cast(v8::Data* data) {
647 CheckCast(data);
649 return static_cast<Number*>(data);
665 V8_INLINE static Integer* Cast(v8::Data* data) {
667 CheckCast(data);
669 return static_cast<Integer*>(data);
683 V8_INLINE static Int32* Cast(v8::Data* data) {
685 CheckCast(data);
687 return static_cast<Int32*>(data);
701 V8_INLINE static Uint32* Cast(v8::Data* data) {
703 CheckCast(data);
705 return static_cast<Uint32*>(data);
761 V8_INLINE static BigInt* Cast(v8::Data* data) {
763 CheckCast(data);
765 return static_cast<BigInt*>(data);