Skip to content

Annotate struct size fields in metadata #2202

@DoctorKrolic

Description

@DoctorKrolic

It is common in windows API to have a "sizeof" field in a struct (usually called dwSize) for versioning. I believe metadata can introduce a new [SizeOf] attribute or similar and annotate such fields with it. Generators using metadata can then account for that attribute and automatically assign right value to the annotated field. For instance, CsWin32 can do that in a friendly function overload

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions