OpCodes.Stind_I 字段
定义
在所提供的地址存储 native int 类型的值。Stores a value of type native int at a supplied address.
public: static initonly System::Reflection::Emit::OpCode Stind_I;
public static readonly System.Reflection.Emit.OpCode Stind_I;
staticval mutable Stind_I : System.Reflection.Emit.OpCode
Public Shared ReadOnly Stind_I 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 |
|---|---|---|
| DFDF | stind。 istind.i | native int将值存储在给定地址。Stores a native int value at a given address. |
堆栈转换行为顺序如下:The stack transitional behavior, in sequential order, is:
地址被推送到堆栈上。An address is pushed onto the stack.
将值推送到堆栈上。A value is pushed onto the stack.
从堆栈中弹出值和地址;值存储在地址上。The value and the address are popped from the stack; the value is stored at the address.
stind.i指令将值存储 native int 在所提供的地址 (类型 native int 、 * 或 &) 。The stind.i instruction stores a native int value at the supplied address (type native int, *, or &).
类型安全操作要求指令的 stind.i 使用方式与指针的类型一致。Type safe operation requires that the stind.i instruction be used in a manner consistent with the type of the pointer. 指令的操作 stind.i 可以通过紧靠上 Volatile 或前缀指令来更改 Unaligned 。The operation of the stind.i instruction can be altered by an immediately preceding Volatile or Unaligned prefix instruction.
NullReferenceException 如果 addr 对指令后缀隐含的参数类型不进行自然对齐,则会引发。NullReferenceException is thrown if addr is not naturally aligned for the argument type implied by the instruction suffix.
以下 Emit 方法重载可以使用 stind.i 操作码:The following Emit method overload can use the stind.i opcode: