InstructionEncoder Struct

Definition

Encodes instructions.

public value class InstructionEncoder
public struct InstructionEncoder
type InstructionEncoder = struct
Public Structure InstructionEncoder
Inheritance
InstructionEncoder

Constructors

InstructionEncoder(BlobBuilder, ControlFlowBuilder)

Creates an encoder backed by code and control-flow builders.

Properties

CodeBuilder

Underlying builder where encoded instructions are written to.

ControlFlowBuilder

Builder tracking labels, branches and exception handlers.

Offset

Offset of the next encoded instruction.

Methods

Branch(ILOpCode, LabelHandle)

Encodes a branch instruction.

Call(EntityHandle)

Encodes

call
instruction and its operand.

Call(MemberReferenceHandle)

Encodes

call
instruction and its operand.

Call(MethodDefinitionHandle)

Encodes

call
instruction and its operand.

Call(MethodSpecificationHandle)

Encodes

call
instruction and its operand.

CallIndirect(StandaloneSignatureHandle)

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)

Encodes Int32 constant load instruction.

LoadConstantI8(Int64)

Encodes Int64 constant load instruction.

LoadConstantR4(Single)

Encodes Single constant load instruction.

LoadConstantR8(Double)

Encodes Double constant load instruction.

LoadLocal(Int32)

Encodes local variable load instruction.

LoadLocalAddress(Int32)

Encodes local variable address load instruction.

LoadString(UserStringHandle)

Encodes

ldstr
instruction and its operand.

MarkLabel(LabelHandle)

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.

Applies to