v8 13.6.233 (node 24.1.0)
V8 is Google's open source JavaScript engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
ScriptCompiler::StreamedSource Class Reference

#include <v8-script.h>

Public Types

enum  Encoding { ONE_BYTE , TWO_BYTE , UTF8 , WINDOWS_1252 }
 

Public Member Functions

 StreamedSource (std::unique_ptr< ExternalSourceStream > source_stream, Encoding encoding)
 
 ~StreamedSource ()
 
internal::ScriptStreamingData * impl () const
 
 StreamedSource (const StreamedSource &)=delete
 
StreamedSourceoperator= (const StreamedSource &)=delete
 
CompilationDetailscompilation_details ()
 

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 582 of file v8-script.h.

Member Enumeration Documentation

◆ Encoding

enum Encoding
Enumerator
ONE_BYTE 
TWO_BYTE 
UTF8 
WINDOWS_1252 

Definition at line 584 of file v8-script.h.

Constructor & Destructor Documentation

◆ StreamedSource() [1/2]

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

Referenced by operator=(), and StreamedSource().

◆ ~StreamedSource()

◆ StreamedSource() [2/2]

StreamedSource ( const StreamedSource & )
delete

References StreamedSource().

Member Function Documentation

◆ compilation_details()

CompilationDetails & compilation_details ( )
inline

Definition at line 596 of file v8-script.h.

◆ impl()

internal::ScriptStreamingData * impl ( ) const
inline

Definition at line 590 of file v8-script.h.

◆ operator=()

StreamedSource & operator= ( const StreamedSource & )
delete

References StreamedSource().


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