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

Public Member Functions

 SourceResource (const char *data)
 
virtual void Dispose ()
 
const char * data () const
 
size_t length () const
 
bool IsDisposed ()
 
- Public Member Functions inherited from String::ExternalAsciiStringResource
virtual ~ExternalAsciiStringResource ()
 
- Public Member Functions inherited from String::ExternalStringResourceBase
virtual ~ExternalStringResourceBase ()
 

Additional Inherited Members

- Protected Member Functions inherited from String::ExternalAsciiStringResource
 ExternalAsciiStringResource ()
 
- Protected Member Functions inherited from String::ExternalStringResourceBase
 ExternalStringResourceBase ()
 

Detailed Description

Definition at line 2202 of file test-heap.cc.

Constructor & Destructor Documentation

SourceResource ( const char *  data)
inlineexplicit

Definition at line 2204 of file test-heap.cc.

Member Function Documentation

const char* data ( ) const
inlinevirtual

The string data from the underlying buffer.

Implements String::ExternalAsciiStringResource.

Definition at line 2212 of file test-heap.cc.

virtual void Dispose ( )
inlinevirtual

Internally V8 will call this Dispose method when the external string resource is no longer needed. The default implementation will use the delete operator. This method can be overridden in subclasses to control how allocated external string resources are disposed.

Reimplemented from String::ExternalStringResourceBase.

Definition at line 2207 of file test-heap.cc.

References v8::internal::DeleteArray(), and v8::internal::NULL.

bool IsDisposed ( )
inline

Definition at line 2216 of file test-heap.cc.

References v8::internal::NULL.

Referenced by TEST().

size_t length ( ) const
inlinevirtual

The number of ASCII characters in the string.

Implements String::ExternalAsciiStringResource.

Definition at line 2214 of file test-heap.cc.


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