cohtml.Net.ScriptCompiler
Inherits from SystemIDisposable
Public Functions
Name | |
---|---|
virtual void | Dispose() |
virtual DataBuffer | Compile(DataBuffer utf8Source) Compiles a script file synchronously. |
virtual void | Destroy() Destroys the ScriptCompiler and frees memory. |
Protected Attributes
Name | |
---|---|
bool | swigCMemOwn |
Public Functions Documentation
function Dispose
virtual void Dispose()
function Compile
virtual DataBuffer Compile(
DataBuffer utf8Source
)
Compiles a script file synchronously.
Parameters:
- utf8Source a data buffer, containing an utf8 encoded script source
Return: A data buffer, containing the compiled data.
Note: Scripts can be precompiled on Windows then later used on other platforms where Cohtml works with V8’s pointer compression feature enabled. Currently, those are only Microsoft Xbox consoles.
function Destroy
virtual void Destroy()
Destroys the ScriptCompiler and frees memory.
Protected Attributes Documentation
variable swigCMemOwn
bool swigCMemOwn;