Size of the DSTORAGE_REQUEST_OPTIONS
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia individuando la definizione di DSTORAGE_REQUEST_OPTIONS nell’API DirectStorage e riproducine la dimensione con MSVC, concentrandoti sui campi di bit misti UINT8 e UINT64 e sull’allineamento risultante. Confronta il layout osservato con l’ABI prevista e annota se la dimensione di 16 byte è intenzionale o deve essere corretta per l’interoperabilità con Rust.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
While porting the DirectStorage API to Rust, we found the following curriosity and would like to as if it's working as designed:
The DSTORAGE_REQUEST_OPTIONS is defines as a bitfield and it seems that the design goal was that all fields are packed into a single unsigned 64 bit integer field.
But the current implementation is not of byte size 8, but of size 16, since MSVC is only packing fields with the same type into the same backing field. Since DSTORAGE_COMPRESSION_FORMAT is an UINT8 and not an UINT64 like the other fields, it will be stored by MSVC into it's own backing field. Allignment and padding then will grow the size of DSTORAGE_REQUEST_SOURCE_TYPE to 16 bytes.
- Lingua principale
- C++
- Stelle
- 897
- Fork
- 111
- Merge medio
- 13h 58m
- PR unite (30g)
- 12
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/DirectStorage
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
microsoft/DirectStorage#137 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
microsoft/DirectStorage#101 ·
-
can't compile? Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
microsoft/DirectStorage#58 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 42/100
microsoft/DirectStorage#56 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
microsoft/DirectStorage#52 · 7 commenti ·
Tutte le issue di microsoft/DirectStorage
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Component: GLib
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Mute ydb/tests/functional/dstool/test_canonical_requests.py.Test.test_group_take_snapshot in main Apertaai_reviewed
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
ydb-platform/ydb#53974 · 3 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
google/libultrahdr#485 ·