InstructionEncoder 结构

定义

对指令进行编码。Encodes instructions.

public value class InstructionEncoder
public struct InstructionEncoder
type InstructionEncoder = struct
Public Structure InstructionEncoder
继承
InstructionEncoder

构造函数

InstructionEncoder(BlobBuilder, ControlFlowBuilder)

创建由代码和控制流生成器支持的编码器。Creates an encoder backed by code and control-flow builders.

属性

CodeBuilder

已编码的指令写入到的基础生成器。Underlying builder where encoded instructions are written to.

ControlFlowBuilder

生成器跟踪标签、分支和异常处理程序。Builder tracking labels, branches and exception handlers.

Offset

下一个已编码的指令的偏移量。Offset of the next encoded instruction.

方法

Branch(ILOpCode, LabelHandle)

对分支指令进行编码。Encodes a branch instruction.

Call(EntityHandle)

编码 call 指令及其操作数。Encodes call instruction and its operand.

Call(MemberReferenceHandle)

编码 call 指令及其操作数。Encodes call instruction and its operand.

Call(MethodDefinitionHandle)

编码 call 指令及其操作数。Encodes call instruction and its operand.

Call(MethodSpecificationHandle)

编码 call 指令及其操作数。Encodes call instruction and its operand.

CallIndirect(StandaloneSignatureHandle)

编码 calli 指令及其操作数。Encodes calli instruction and its operand.

DefineLabel()

定义一个标签,稍后可用它来标记和引用指令流中的位置。Defines a label that can later be used to mark and refer to a location in the instruction stream.

LoadArgument(Int32)

对参数加载指令进行编码。Encodes argument load instruction.

LoadArgumentAddress(Int32)

对参数地址加载指令进行编码。Encodes argument address load instruction.

LoadConstantI4(Int32)

Int32 常量加载指令进行编码。Encodes Int32 constant load instruction.

LoadConstantI8(Int64)

Int64 常量加载指令进行编码。Encodes Int64 constant load instruction.

LoadConstantR4(Single)

Single 常量加载指令进行编码。Encodes Single constant load instruction.

LoadConstantR8(Double)

Double 常量加载指令进行编码。Encodes Double constant load instruction.

LoadLocal(Int32)

对局部变量加载指令进行编码。Encodes local variable load instruction.

LoadLocalAddress(Int32)

对局部变量地址加载指令进行编码。Encodes local variable address load instruction.

LoadString(UserStringHandle)

编码 ldstr 指令及其操作数。Encodes ldstr instruction and its operand.

MarkLabel(LabelHandle)

将指定的标签与当前 IL 偏移量关联。Associates specified label with the current IL offset.

OpCode(ILOpCode)

对指定的操作代码进行编码。Encodes specified op-code.

StoreArgument(Int32)

对参数存储指令进行编码。Encodes argument store instruction.

StoreLocal(Int32)

对局部变量存储指令进行编码。Encodes local variable store instruction.

Token(EntityHandle)

将令牌进行编码。Encodes a token.

Token(Int32)

将令牌进行编码。Encodes a token.

适用于