OpCodes.Ldarga_S 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將一個簡短形式的參數位址載入評估堆疊。
public: static initonly System::Reflection::Emit::OpCode Ldarga_S;
public static readonly System.Reflection.Emit.OpCode Ldarga_S;
staticval mutable Ldarga_S : System.Reflection.Emit.OpCode
Public Shared ReadOnly Ldarga_S As OpCode
欄位值
備註
下表列出指令的十六進位及 Microsoft 中介語言(MSIL)組合格式,並附有簡短參考摘要:
| Format | 組裝格式 | Description |
|---|---|---|
0F <unsigned int8> |
伊達爾加(ldarga.s) index |
取得由 index、 短形式索引的參數地址。 |
堆疊的過渡行為依序為:
- 索引 的
addr參數地址index會被推送到堆疊中。
ldarga.s (簡稱 ldarga)應用於參數編號 0 到 255,且編碼效率更高。
指令ldarga.s取出由 索引的*參數的位址(型index別),其中參數索引從 0 開始。
addr位址總是與目標機器上的自然邊界對齊。
對於採用可變長度參數清單的程序,該 ldarga.s 指令只能用於初始固定參數,無法用於簽名中變數部分的參數。
ldarga.s 用於參數旁的傳遞。 在其他情況下, Ldarg_SStarg_S 應該使用。
以下 Emit 方法的超載可使用操作 ldarga.s 碼: