C# Class Recurity.Swf.AVM1.ActionDefineFunction2

Blitzableiter ActionDefineFunction2 represents the Adobe AVM1 ActionDefineFunction2
Inheritance: AbstractAction
Exibir arquivo Open project: rtezli/Blitzableiter

Protected Properties

Property Type Description
_Parameters List
_PreloadArgumentsFlag bool
_PreloadGlobalFlag bool
_PreloadParentFlag bool
_PreloadRootFlag bool
_PreloadSuperFlag bool
_PreloadThisFlag bool
_SuppressArgumentsFlag bool
_SuppressSuperFlag bool
_SuppressThisFlag bool
_codeSize UInt16
_functionName string
_numParams UInt16
_numRegister byte

Public Methods

Method Description
ActionDefineFunction2 ( ) : System

Defines a function

ActionDefineFunction2 ( string name, byte registers, List parameters, UInt16 codeSize, bool preloadGlobalFlag, bool preloadArgumentsFlag, bool preloadParentFlag, bool preloadRootFlag, bool preloadSuperFlag, bool preloadThisFlag, bool suppressSuperFlag, bool suppressArgumentsFlag, bool suppressThisFlag ) : System

Defines a function

ToString ( ) : string

Converts the action to a string

Protected Methods

Method Description
Parse ( System sourceStream, byte sourceVersion ) : void

Parses all neccessary information from a source stream

ParseFrom ( ) : bool

Parses the action from a string array

Render ( BinaryWriter outputStream ) : ulong

Renders the DefineFuntion parameters back to a output stream

Method Details

ActionDefineFunction2() public method

Defines a function
public ActionDefineFunction2 ( ) : System
return System

ActionDefineFunction2() public method

Defines a function
public ActionDefineFunction2 ( string name, byte registers, List parameters, UInt16 codeSize, bool preloadGlobalFlag, bool preloadArgumentsFlag, bool preloadParentFlag, bool preloadRootFlag, bool preloadSuperFlag, bool preloadThisFlag, bool suppressSuperFlag, bool suppressArgumentsFlag, bool suppressThisFlag ) : System
name string The function name
registers byte Number of registers used by the function
parameters List The function parameters
codeSize System.UInt16 The size of the code
preloadGlobalFlag bool True - Preload _global into registers. False - Do not preload _global into registers.
preloadArgumentsFlag bool True - Preload arguments into registers. False - Do not preload arguments into registers.
preloadParentFlag bool True - Preload parent variables into registers. False - Do not preload parent variables into registers.
preloadRootFlag bool True - Preload global variables into registers. False - Do not preload global variables into registers.
preloadSuperFlag bool True - Preload super variables into registers. False - Do not preload super variables into registers.
preloadThisFlag bool True - Preload super variables into registers. False - Do not preload super variables into registers.
suppressSuperFlag bool True - Do NOT create super variable. False - Create super variable
suppressArgumentsFlag bool True - Do NOT create arguments variable. False - Create arguments variable
suppressThisFlag bool True - Do NOT create this variable. False - Create this variable
return System

Parse() protected method

Parses all neccessary information from a source stream
protected Parse ( System sourceStream, byte sourceVersion ) : void
sourceStream System The source stream
sourceVersion byte The version
return void

ParseFrom() protected method

Parses the action from a string array
protected ParseFrom ( ) : bool
return bool

Render() protected method

Renders the DefineFuntion parameters back to a output stream
protected Render ( BinaryWriter outputStream ) : ulong
outputStream System.IO.BinaryWriter The outputstream
return ulong

ToString() public method

Converts the action to a string
public ToString ( ) : string
return string

Property Details

_Parameters protected_oe property

protected List _Parameters
return List

_PreloadArgumentsFlag protected_oe property

protected bool _PreloadArgumentsFlag
return bool

_PreloadGlobalFlag protected_oe property

protected bool _PreloadGlobalFlag
return bool

_PreloadParentFlag protected_oe property

protected bool _PreloadParentFlag
return bool

_PreloadRootFlag protected_oe property

protected bool _PreloadRootFlag
return bool

_PreloadSuperFlag protected_oe property

protected bool _PreloadSuperFlag
return bool

_PreloadThisFlag protected_oe property

protected bool _PreloadThisFlag
return bool

_SuppressArgumentsFlag protected_oe property

protected bool _SuppressArgumentsFlag
return bool

_SuppressSuperFlag protected_oe property

protected bool _SuppressSuperFlag
return bool

_SuppressThisFlag protected_oe property

protected bool _SuppressThisFlag
return bool

_codeSize protected_oe property

protected UInt16 _codeSize
return UInt16

_functionName protected_oe property

protected string _functionName
return string

_numParams protected_oe property

protected UInt16 _numParams
return UInt16

_numRegister protected_oe property

protected byte _numRegister
return byte