Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit01c0e96

Browse files
authored
Fix wording of ldloca description (#11313)
1 parente2427a4 commit01c0e96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎xml/System.Reflection.Emit/OpCodes.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10358,7 +10358,7 @@ The following <xref:System.Reflection.Emit.ILGenerator.Emit%2A> method overloads
1035810358

1035910359
The stack transitional behavior, in sequential order, is:
1036010360

10361-
1. The addressstored in the local variable at the specified index is pushed onto the stack.
10361+
1. The addressof the local variable at the specified index is pushed onto the stack.
1036210362

1036310363
The `ldloca` instruction pushes the address of the local variable number at the passed index onto the stack, where local variables are numbered 0 onwards. The value pushed on the stack is already aligned correctly for use with instructions like <xref:System.Reflection.Emit.OpCodes.Ldind_I> and <xref:System.Reflection.Emit.OpCodes.Stind_I>. The result is a managed pointer (type `&`). The local variable is stored in unmanaged memory, so the return value can be converted to an unmanaged pointer without pinning.
1036410364

@@ -10420,7 +10420,7 @@ The following <xref:System.Reflection.Emit.ILGenerator.Emit%2A> method overloads
1042010420

1042110421
The stack transitional behavior, in sequential order, is:
1042210422

10423-
1. The addressstored in the local variable at the specified index is pushed onto the stack.
10423+
1. The addressof the local variable at the specified index is pushed onto the stack.
1042410424

1042510425
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. The value pushed on the stack is already aligned correctly for use with instructions like <xref:System.Reflection.Emit.OpCodes.Ldind_I> and <xref:System.Reflection.Emit.OpCodes.Stind_I>. The result is a transient pointer (type `*`).
1042610426

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp