BlastScriptPackage contains all data needed to use and execute scriptcode, it consists of: - BlastPackage -> contains the native bytecode - Variable information - IO mapping - Bursted functionpointer mapping
System.Object
NSS.Blast.BlastScriptPackage
Namespace: NSS.Blast
Assembly: BLAST (in BLAST.dll) Version: 1.0.0
C#
public class BlastScriptPackage
VB
Public Class BlastScriptPackage
C++
public ref class BlastScriptPackage
F#
type BlastScriptPackage = class end
The BlastScriptPackage type exposes the following members.
Name | Description | |
---|---|---|
BlastScriptPackage | Initializes a new instance of the BlastScriptPackage class |
Name | Description | |
---|---|---|
Flags | package flags as set by attached package | |
HasInputs | true if package has inputs defined | |
HasOutputs | true if the package has outputs defined | |
HasVariables | true if the script uses variables | |
IsAllocated | Returns true if native memory is allocated for the package | |
IsBurstCompiled | True if this package has also been burstcompiled and can be executed with a native function pointer | |
PackageMode | packaging mode set by attached package data | |
PackageSize | size of package data |
Name | Description | |
---|---|---|
DefineInputsFromVariables | define inputs from variables, usefull if a script does not define inputs | |
Destroy | Destroy any allocated native memory | |
Execute | execute the script in the given environment with the supplied data | |
GetCodeSegmentText | Get a string representation of the bytecode, example output: 000| push compound 1 + 2 nop push function max ^ pop 2 010| debug pop nop 000| 030 085 002 086 000 029 042 009 025 086 010| 255 253 025 000 | |
GetDataSegmentText | Get a string representation of the datasegement | |
GetPackageCodeBytesText | get code as 000| 000 000 000 000 | |
GetPackageDataBytesText | get datasegment as 000| 000 000 000 000 | |
GetPackageInfoText | return overview of package information | |
ResetDefaults | reset datasegment to default data set by input and output defines | |
SetDefaultData | set default data from input or output data | |
ToString | ToString overload for more information during debugging (Overrides Object.ToString().) |
Name | Description | |
---|---|---|
Bursted | A functionpointer to burst transpiled bytecode, possible if the package was known at compile time. SSMD mode will still use the bytecode package. | |
Inputs | defined inputs | |
Outputs | defined outputs | |
Package | the bytecode package | |
VariableOffsets | Offsets for variables in element count into datasegment, an elements is 4 bytes large == 1 float | |
Variables | Variable information |