OpCodes.Stind_R4 字段


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

public: static initonly System::Reflection::Emit::OpCode Stind_R4;
public static readonly System.Reflection.Emit.OpCode Stind_R4;
 staticval mutable Stind_R4 : System.Reflection.Emit.OpCode
Public Shared ReadOnly Stind_R4 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
5656 stind.r4stind.r4 将 @no__t 0 值存储在给定地址。Stores a float32 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.r4 instruction stores a float32 value at the supplied address (type native int, *, or &).

类型安全操作要求 stind.r4 指令的使用方式与指针的类型一致。Type safe operation requires that the stind.r4 instruction be used in a manner consistent with the type of the pointer. 紧靠前 @no__t 或 Unaligned 前缀指令可以更改 stind.r4 指令的操作。The operation of the stind.r4 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.r4 opcode:

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