Lines Matching refs:data
8 #include "v8-data.h" // NOLINT(build/include_directory)
38 V8_INLINE static Boolean* Cast(v8::Data* data) {
40 CheckCast(data);
42 return static_cast<Boolean*>(data);
65 V8_INLINE static PrimitiveArray* Cast(Data* data) {
67 CheckCast(data);
69 return reinterpret_cast<PrimitiveArray*>(data);
90 V8_INLINE static Name* Cast(Data* data) {
92 CheckCast(data);
94 return static_cast<Name*>(data);
146 * Returns whether this string is known to contain only one byte data,
154 * Returns whether this string contain only one byte data,
232 * ExternalStringResource::data() may be cached, otherwise it is not
254 * |ExternalStringResource::data()| has to be stable between |Lock()| and
281 * buffer. Note that the string data must be immutable.
292 * The string data from the underlying buffer. If the resource is cacheable
293 * then data() must return the same value for all invocations.
295 virtual const uint16_t* data() const = 0;
303 * Returns the cached data from the underlying buffer. This method can be
313 * Update {cached_data_} with the data from the underlying buffer. This can
331 * underlying buffer. Note that the string data must be immutable
332 * and that the data must be Latin-1 and not UTF-8, which would require
334 * indexing. Use String::New or convert to 16 bit data for non-Latin1.
347 * The string data from the underlying buffer. If the resource is cacheable
348 * then data() must return the same value for all invocations.
350 virtual const char* data() const = 0;
356 * Returns the cached data from the underlying buffer. If the resource is
366 * Update {cached_data_} with the data from the underlying buffer. This can
400 V8_INLINE static String* Cast(v8::Data* data) {
402 CheckCast(data);
404 return static_cast<String*>(data);
424 /** Allocates a new string from UTF-8 data. Only returns an empty value when
427 Isolate* isolate, const char* data,
430 /** Allocates a new string from Latin-1 data. Only returns an empty value
433 Isolate* isolate, const uint8_t* data,
436 /** Allocates a new string from UTF-16 data. Only returns an empty value when
439 Isolate* isolate, const uint16_t* data,
450 * Creates a new external string using the data defined in the given
472 * Creates a new external string using the one-byte data defined in the given
635 V8_INLINE static Symbol* Cast(Data* data) {
637 CheckCast(data);
639 return static_cast<Symbol*>(data);
654 V8_INLINE static Number* Cast(v8::Data* data) {
656 CheckCast(data);
658 return static_cast<Number*>(data);
674 V8_INLINE static Integer* Cast(v8::Data* data) {
676 CheckCast(data);
678 return static_cast<Integer*>(data);
692 V8_INLINE static Int32* Cast(v8::Data* data) {
694 CheckCast(data);
696 return static_cast<Int32*>(data);
710 V8_INLINE static Uint32* Cast(v8::Data* data) {
712 CheckCast(data);
714 return static_cast<Uint32*>(data);
770 V8_INLINE static BigInt* Cast(v8::Data* data) {
772 CheckCast(data);
774 return static_cast<BigInt*>(data);