Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Emit() [9/17]

virtual void System.Reflection.Emit.ILGenerator.Emit ( OpCode opcode,
Label[] labels )
inlinevirtual

Definition at line 636 of file ILGenerator.cs.

637 {
638 if (labels == null)
639 {
640 throw new ArgumentNullException("labels");
641 }
642 int num = labels.Length;
643 EnsureCapacity(num * 4 + 7);
644 InternalEmit(opcode);
645 PutInteger4(num);
646 int num2 = num * 4;
647 int num3 = 0;
648 while (num2 > 0)
649 {
650 AddFixup(labels[num3], m_length, num2);
651 m_length += 4;
652 num2 -= 4;
653 num3++;
654 }
655 }
void AddFixup(Label lbl, int pos, int instSize)
void InternalEmit(OpCode opcode)

References System.Reflection.Emit.ILGenerator.AddFixup(), System.Reflection.Emit.ILGenerator.EnsureCapacity(), System.Reflection.Emit.ILGenerator.InternalEmit(), System.Reflection.Emit.ILGenerator.m_length, and System.Reflection.Emit.ILGenerator.PutInteger4().