Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
StoreLocalBoxedInstruction.cs
Go to the documentation of this file.
1
using
System.Runtime.CompilerServices
;
2
3
namespace
System.Linq.Expressions.Interpreter
;
4
5
internal
sealed
class
StoreLocalBoxedInstruction
:
LocalAccessInstruction
6
{
7
public
override
int
ConsumedStack
=> 1;
8
9
public
override
string
InstructionName
=>
"StoreLocalBox"
;
10
11
internal
StoreLocalBoxedInstruction
(
int
index
)
12
: base(
index
)
13
{
14
}
15
16
public
override
int
Run
(
InterpretedFrame
frame)
17
{
18
IStrongBox
strongBox = (
IStrongBox
)frame.
Data
[
_index
];
19
strongBox.Value = frame.
Data
[--frame.
StackIndex
];
20
return
1;
21
}
22
}
System.Linq.Expressions.Interpreter.InterpretedFrame.Data
readonly object[] Data
Definition
InterpretedFrame.cs:23
System.Linq.Expressions.Interpreter.InterpretedFrame.StackIndex
int StackIndex
Definition
InterpretedFrame.cs:27
System.Linq.Expressions.Interpreter.InterpretedFrame
Definition
InterpretedFrame.cs:7
System.Linq.Expressions.Interpreter.LocalAccessInstruction._index
readonly int _index
Definition
LocalAccessInstruction.cs:7
System.Linq.Expressions.Interpreter.LocalAccessInstruction
Definition
LocalAccessInstruction.cs:6
System.Linq.Expressions.Interpreter.StoreLocalBoxedInstruction.Run
override int Run(InterpretedFrame frame)
Definition
StoreLocalBoxedInstruction.cs:16
System.Linq.Expressions.Interpreter.StoreLocalBoxedInstruction.StoreLocalBoxedInstruction
StoreLocalBoxedInstruction(int index)
Definition
StoreLocalBoxedInstruction.cs:11
System.Linq.Expressions.Interpreter.StoreLocalBoxedInstruction.ConsumedStack
override int ConsumedStack
Definition
StoreLocalBoxedInstruction.cs:7
System.Linq.Expressions.Interpreter.StoreLocalBoxedInstruction.InstructionName
override string InstructionName
Definition
StoreLocalBoxedInstruction.cs:9
System.Linq.Expressions.Interpreter.StoreLocalBoxedInstruction
Definition
StoreLocalBoxedInstruction.cs:6
System.Runtime.CompilerServices.IStrongBox
Definition
IStrongBox.cs:4
System.Linq.Expressions.Interpreter
Definition
ActionCallInstruction.cs:3
System.Linq.ExceptionArgument.index
@ index
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
source
System.Linq.Expressions
System.Linq.Expressions.Interpreter
StoreLocalBoxedInstruction.cs
Generated by
1.10.0