dotnet / dotnet/dotnet-api-docs
Question about OpCodes.Ldind_I8 with integer values of less than 8 bytes
- Lingua principale
- C#
- Stelle
- 949
- Fork
- 1.7k
- Merge medio
- 2g 19h
- PR unite (30g)
- 52
Descrizione
Sorry for stupid question, but...
The [docs ](https://learn.microsoft.com/en-us/dotnet/api/system.reflection.emit.opcodes.ldind_i8?view=net-7.0) mention have the following description for instruction:
> Loads the `int64` value at address addr onto the stack as an `int64`.
And mention next:
> Note that integer values of less than 4 bytes are extended to int32 (not native int) when they are loaded onto the evaluation stack. Floating-point values are converted to F type when loaded onto the evaluation stack.
But what will happen with values less than 8 bytes? Isn't `int64` 8 bytes? Am I missing something or should this be mentioned/fixed in the docs?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Iniziare con la documentazione API collegata di OpCodes.Ldind_I8 e confrontare la descrizione dell'istruzione con la nota sui valori interi inferiori a 4 byte. Chiarire il comportamento per i valori inferiori a 8 byte e aggiornare la formulazione in modo che la relazione tra il risultato dell'istruzione e la rappresentazione nello stack di valutazione sia inequivocabile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100