Skip to content

Latest commit

 

History

History
83 lines (65 loc) · 7.16 KB

334603e0-a0de-2aaa-4007-78f5dcc5dc51.md

File metadata and controls

83 lines (65 loc) · 7.16 KB

BlastScriptPackage Class

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

Inheritance Hierarchy

System.Object
  NSS.Blast.BlastScriptPackage
Namespace: NSS.Blast
Assembly: BLAST (in BLAST.dll) Version: 1.0.0

Syntax

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.

Constructors

 

NameDescription
Public methodBlastScriptPackage Initializes a new instance of the BlastScriptPackage class
  Back to Top

Properties

 

NameDescription
Public propertyFlags package flags as set by attached package
Public propertyHasInputs true if package has inputs defined
Public propertyHasOutputs true if the package has outputs defined
Public propertyHasVariables true if the script uses variables
Public propertyIsAllocated Returns true if native memory is allocated for the package
Public propertyIsBurstCompiled True if this package has also been burstcompiled and can be executed with a native function pointer
Public propertyPackageMode packaging mode set by attached package data
Public propertyPackageSize size of package data
  Back to Top

Methods

 

NameDescription
Public methodDefineInputsFromVariables define inputs from variables, usefull if a script does not define inputs
Public methodDestroy Destroy any allocated native memory
Public methodExecute execute the script in the given environment with the supplied data
Public methodGetCodeSegmentText 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
Public methodGetDataSegmentText Get a string representation of the datasegement
Public methodGetPackageCodeBytesText get code as 000| 000 000 000 000
Public methodGetPackageDataBytesText get datasegment as 000| 000 000 000 000
Public methodGetPackageInfoText return overview of package information
Public methodResetDefaults reset datasegment to default data set by input and output defines
Public methodStatic memberSetDefaultData set default data from input or output data
Public methodToString ToString overload for more information during debugging (Overrides Object.ToString().)
  Back to Top

Fields

 

NameDescription
Public fieldBursted A functionpointer to burst transpiled bytecode, possible if the package was known at compile time. SSMD mode will still use the bytecode package.
Public fieldInputs defined inputs
Public fieldOutputs defined outputs
Public fieldPackage the bytecode package
Public fieldVariableOffsets Offsets for variables in element count into datasegment, an elements is 4 bytes large == 1 float
Public fieldVariables Variable information
  Back to Top

See Also

Reference

NSS.Blast Namespace