v8  7.9.317 (node 13.2.0)
V8 is Google's open source JavaScript engine
ScriptCompiler::StreamedSource Class Reference

#include <v8.h>

Public Types

enum  Encoding { ONE_BYTE , TWO_BYTE , UTF8 }
 

Public Member Functions

 V8_DEPRECATE_SOON ("This class takes ownership of source_stream, so use the constructor " "taking a unique_ptr to make these semantics clearer") StreamedSource(ExternalSourceStream *source_stream
 
 StreamedSource (std::unique_ptr< ExternalSourceStream > source_stream, Encoding encoding)
 
 ~StreamedSource ()
 
internal::ScriptStreamingData * impl () const
 
 StreamedSource (const StreamedSource &)=delete
 
StreamedSourceoperator= (const StreamedSource &)=delete
 

Data Fields

Encoding encoding
 

Detailed Description

Source code which can be streamed into V8 in pieces. It will be parsed while streaming and compiled after parsing has completed. StreamedSource must be kept alive while the streaming task is run (see ScriptStreamingTask below).

Definition at line 1737 of file v8.h.

Member Enumeration Documentation

◆ Encoding

enum Encoding
Enumerator
ONE_BYTE 
TWO_BYTE 
UTF8 

Definition at line 1739 of file v8.h.

Constructor & Destructor Documentation

◆ StreamedSource() [1/2]

StreamedSource ( std::unique_ptr< ExternalSourceStream source_stream,
Encoding  encoding 
)

◆ ~StreamedSource()

◆ StreamedSource() [2/2]

StreamedSource ( const StreamedSource )
delete

Member Function Documentation

◆ impl()

internal::ScriptStreamingData* impl ( ) const
inline

Definition at line 1749 of file v8.h.

◆ operator=()

StreamedSource& operator= ( const StreamedSource )
delete

◆ V8_DEPRECATE_SOON()

V8_DEPRECATE_SOON ( "This class takes ownership of  source_stream,
so use the constructor " "taking a unique_ptr to make these semantics clearer"   
)

Field Documentation

◆ encoding

Encoding encoding

Definition at line 1744 of file v8.h.


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