C# Class V8.Net.V8Engine

Show file Open project: rjamesnw/v8dotnet Class Usage Examples

Public Methods

Method Description
PauseWorker ( ) : void

Pauses the worker thread (usually for debug purposes). (Note: The worker thread manages object GC along with the native V8 GC.)

ResumeWorker ( ) : void

Unpauses the worker thread (see PauseWorker).

RunMarshallingTests ( ) : void

If there's any marshalling incompatibility, this will throw an exception.

_ThrowMarshalTestError ( string structName, string fieldName, byte offset, byte goodData, byte badValues, int badValLen ) : void

Private Methods

Method Description
_DoWorkStep ( ) : bool

Does one step in the work process (mostly garbage collection for freeing up unused handles). True is returned if more work is pending, and false otherwise.

_GetMarshalTestByteValue ( byte ofs, byte &data ) : byte
_GetMarshalTestDoubleValue ( byte ofs, byte &data ) : double
_GetMarshalTestInt32Value ( byte ofs, byte &data ) : Int32
_GetMarshalTestInt64Value ( byte ofs, byte &data ) : System.Int64
_GetMarshalTestPTRValue ( byte ofs, byte &data ) : System.Int64
_Initialize_Worker ( ) : void
_TerminateWorker ( ) : void

Terminates the worker thread, without a 3 second timeout to be sure. This is called when the engine is shutting down. (Note: The worker thread manages object GC along with the native V8 GC.)

_WorkerLoop ( ) : void

Method Details

PauseWorker() public method

Pauses the worker thread (usually for debug purposes). (Note: The worker thread manages object GC along with the native V8 GC.)
public PauseWorker ( ) : void
return void

ResumeWorker() public method

Unpauses the worker thread (see PauseWorker).
public ResumeWorker ( ) : void
return void

RunMarshallingTests() public method

If there's any marshalling incompatibility, this will throw an exception.
public RunMarshallingTests ( ) : void
return void

_ThrowMarshalTestError() public method

public _ThrowMarshalTestError ( string structName, string fieldName, byte offset, byte goodData, byte badValues, int badValLen ) : void
structName string
fieldName string
offset byte
goodData byte
badValues byte
badValLen int
return void