On Fri Sep 5 07:44:18 2025 +0000, Rémi Bernon wrote:
Why the underscores?
That's the convention MS uses for these size_is parameters. They are implicit and must always precede conformant array parameters. https://learn.microsoft.com/en-us/uwp/winrt-cref/winrt-type-system, section on array parameters says: "The array size parameter does not have a name". C doesn't allow that, so I think the underscores are used to avoid potential name conflicts.
Also note that winmd skips these size_is parameters and encodes arrays as NULL terminated arrays.