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
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 3046 of file test-heap.cc.

Constructor & Destructor Documentation

SourceResource ( const char *  data)
inlineexplicit

Definition at line 3048 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 3056 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 3051 of file test-heap.cc.

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

bool IsDisposed ( )
inline

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

References v8::internal::NULL.

Referenced by ReleaseStackTraceDataTest().

size_t length ( ) const
inlinevirtual

The number of ASCII characters in the string.

Implements String::ExternalAsciiStringResource.

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


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