v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Resource Class Reference
Inheritance diagram for Resource:
Collaboration diagram for Resource:

Public Member Functions

 Resource (const uc16 *data, size_t length)
 
 ~Resource ()
 
virtual const uint16_t * data () const
 
virtual size_t length () const
 
- Public Member Functions inherited from String::ExternalStringResource
virtual ~ExternalStringResource ()
 
- Public Member Functions inherited from String::ExternalStringResourceBase
virtual ~ExternalStringResourceBase ()
 

Additional Inherited Members

- Protected Member Functions inherited from String::ExternalStringResource
 ExternalStringResource ()
 
- Protected Member Functions inherited from String::ExternalStringResourceBase
 ExternalStringResourceBase ()
 
virtual void Dispose ()
 

Detailed Description

Definition at line 102 of file test-strings.cc.

Constructor & Destructor Documentation

Resource ( const uc16 data,
size_t  length 
)
inline

Definition at line 104 of file test-strings.cc.

~Resource ( )
inline

Definition at line 105 of file test-strings.cc.

References v8::internal::DeleteArray().

Member Function Documentation

virtual const uint16_t* data ( ) const
inlinevirtual

The string data from the underlying buffer.

Implements String::ExternalStringResource.

Definition at line 106 of file test-strings.cc.

virtual size_t length ( ) const
inlinevirtual

The length of the string. That is, the number of two-byte characters.

Implements String::ExternalStringResource.

Definition at line 107 of file test-strings.cc.


The documentation for this class was generated from the following file: