POINTER_ALIGNMENT not applied to Rust structs
@tannergooding is already working on this.
Since Jan 22, 2024.
Assessment
This issue has not been assessed yet.
Description
Summary
POINTER_ALIGNMENT is not applied to the rust structs for example.
pub struct IO_STACK_LOCATION_0_4 {
pub OutputBufferLength: u32,
pub InputBufferLength: u32,
pub IoControlCode: u32,
pub Type3InputBuffer: *mut ::core::ffi::c_void,
}
file: libs/sys/src/Windows/Wdk/Foundation/mod.rs
This struct has length 24 bytes in rust. But the C version has more padding with the InputBufferLength and IoControlCode
struct {
ULONG OutputBufferLength;
ULONG POINTER_ALIGNMENT InputBufferLength;
ULONG POINTER_ALIGNMENT IoControlCode;
PVOID Type3InputBuffer;
} DeviceIoControl;
file: C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\km\wdm.h
Crate manifest
No response
Crate code
No response
- Dominant language
- C++
- Stars
- 110
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/wdkmetadata
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
microsoft/wdkmetadata#103 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
microsoft/wdkmetadata#100 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 38/100
microsoft/wdkmetadata#97 · 1 comment ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/wdkmetadata#96 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
microsoft/wdkmetadata#95 · 2 comments ·
All issues in microsoft/wdkmetadata
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·