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
OutputStream Class Referenceabstract

#include <v8.h>

Public Types

enum  OutputEncoding { kAscii = 0 }
 
enum  WriteResult { kContinue = 0, kAbort = 1 }
 

Public Member Functions

virtual ~OutputStream ()
 
virtual void EndOfStream ()=0
 
virtual int GetChunkSize ()
 
virtual OutputEncoding GetOutputEncoding ()
 
virtual WriteResult WriteAsciiChunk (char *data, int size)=0
 
virtual WriteResult WriteHeapStatsChunk (HeapStatsUpdate *data, int count)
 

Detailed Description

An interface for exporting data from V8, using "push" model.

Definition at line 3948 of file v8.h.

Member Enumeration Documentation

Enumerator
kAscii 

Definition at line 3950 of file v8.h.

Enumerator
kContinue 
kAbort 

Definition at line 3953 of file v8.h.

Constructor & Destructor Documentation

virtual ~OutputStream ( )
inlinevirtual

Definition at line 3957 of file v8.h.

Member Function Documentation

virtual void EndOfStream ( )
pure virtual

Notify about the end of stream.

Referenced by OutputStreamWriter::Finalize(), and HeapObjectsMap::PushHeapObjectsStats().

virtual int GetChunkSize ( )
inlinevirtual

Get preferred output chunk size. Called only once.

Definition at line 3961 of file v8.h.

Referenced by HeapObjectsMap::PushHeapObjectsStats(), and HeapSnapshot::Serialize().

virtual OutputEncoding GetOutputEncoding ( )
inlinevirtual

Get preferred output encoding. Called only once.

Definition at line 3963 of file v8.h.

Referenced by HeapSnapshot::Serialize().

virtual WriteResult WriteAsciiChunk ( char *  data,
int  size 
)
pure virtual

Writes the next chunk of snapshot data into the stream. Writing can be stopped by returning kAbort as function result. EndOfStream will not be called in case writing was aborted.

virtual WriteResult WriteHeapStatsChunk ( HeapStatsUpdate data,
int  count 
)
inlinevirtual

Writes the next chunk of heap stats data into the stream. Writing can be stopped by returning kAbort as function result. EndOfStream will not be called in case writing was aborted.

Definition at line 3975 of file v8.h.

Referenced by HeapObjectsMap::PushHeapObjectsStats().


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