OpCodes.Ldloca_S Campo
Definição
Carrega o endereço da variável local em um índice específico para a pilha de avaliação, em forma abreviada.Loads the address of the local variable at a specific index onto the evaluation stack, short form.
public: static initonly System::Reflection::Emit::OpCode Ldloca_S;
public static readonly System.Reflection.Emit.OpCode Ldloca_S;
staticval mutable Ldloca_S : System.Reflection.Emit.OpCode
Public Shared ReadOnly Ldloca_S As OpCode
Valor do campo
Comentários
A tabela a seguir lista o formato de assembly hexadecimal e da MSIL (Microsoft Intermediate Language) da instrução, juntamente com um resumo de referência breve:The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:
| FormatarFormat | Formato do assemblyAssembly Format | DescriçãoDescription |
|---|---|---|
12 < unsigned int8 >12 < unsigned int8 > |
ldloca. s indexldloca.s index |
Carrega o endereço da variável local em na index pilha de avaliação, forma abreviada.Loads the address of the local variable at index onto the evaluation stack, short form. |
O comportamento de transição de pilha, em ordem sequencial, é:The stack transitional behavior, in sequential order, is:
- O endereço armazenado na variável local no índice especificado é enviado por push para a pilha.The address stored in the local variable at the specified index is pushed onto the stack.
A ldloca.s instrução envia por push o endereço do número da variável local no índice passado para a pilha, em que as variáveis locais são numeradas 0 em diante.The ldloca.s instruction pushes the address of the local variable number at the passed index onto the stack, where local variables are numbered 0 onwards. O valor enviado na pilha já está alinhado corretamente para uso com instruções como Ldind_I e Stind_I .The value pushed on the stack is already aligned correctly for use with instructions like Ldind_I and Stind_I. O resultado é um ponteiro transitório (tipo * ).The result is a transient pointer (type *).
A ldloca.s instrução fornece uma codificação eficiente para uso com as variáveis locais 0 a 255.The ldloca.s instruction provides an efficient encoding for use with the local variables 0 through 255.
A sobrecarga do método a seguir Emit pode usar o ldloca.s opcode:The following Emit method overload can use the ldloca.s opcode: