OpCodes.Stind_I1 字段

定义

在所提供的地址存储 int8 类型的值。Stores a value of type int8 at a supplied address.

public: static initonly System::Reflection::Emit::OpCode Stind_I1;
public static readonly System.Reflection.Emit.OpCode Stind_I1;
 staticval mutable Stind_I1 : System.Reflection.Emit.OpCode
Public Shared ReadOnly Stind_I1 As OpCode 

字段值

注解

下表列出了指令的十六进制和 Microsoft 中间语言(MSIL)程序集格式以及简短的参考摘要:The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:

格式Format 程序集格式Assembly Format 说明Description
5252 stindstind.i1 将 @no__t 0 值存储在给定地址。Stores an int8 value at a given address.

堆栈转换行为顺序如下:The stack transitional behavior, in sequential order, is:

  1. 地址被推送到堆栈上。An address is pushed onto the stack.

  2. 将值推送到堆栈上。A value is pushed onto the stack.

  3. 从堆栈中弹出值和地址;值存储在地址上。The value and the address are popped from the stack; the value is stored at the address.

@No__t-0 指令将 @no__t 1 值存储在所提供的地址(类型 native int*&)。The stind.i1 instruction stores an int8 value at the supplied address (type native int, *, or &).

类型安全操作要求 stind.i1 指令的使用方式与指针的类型一致。Type safe operation requires that the stind.i1 instruction be used in a manner consistent with the type of the pointer. 紧靠前 @no__t 或 Unaligned 前缀指令可以更改 stind.i1 指令的操作。The operation of the stind.i1 instruction can be altered by an immediately preceding Volatile or Unaligned prefix instruction.

如果对于指令后缀隐含的参数类型,addr 不是自然对齐,则会引发 NullReferenceExceptionNullReferenceException is thrown if addr is not naturally aligned for the argument type implied by the instruction suffix.

以下 @no__t 0 方法重载可以使用 @no__t 操作码:The following Emit method overload can use the stind.i1 opcode:

  • ILGenerator.Emit(OpCode)ILGenerator.Emit(OpCode)

适用于