Open Rans4ckeR opened 2 years ago
This parameter is in the metadata as
[In][MemorySize(BytesParamIndex = 3)] byte* pbInput
I'm surprised that it doesn't include the [NativeArrayInfo]
attribute, which also can carry the info that this MemorySize
attribute being used here is. @sotteson1 Can you comment on the latest metadata versions and how CsWin32 should interpret these two attributes and where we would expect one vs. the other?
Actual behavior
The extern method works but the other one does not seem usable. I'm expected to pass a pointer using a byte.
From BCryptSetProperty function (bcrypt.h) - Win32 apps | Microsoft Docs:
Generated code:
Expected behavior
Both generated methods are usable.
Repro steps
NativeMethods.txt
content:NativeMethods.json
content (if present):Any of your own code that should be shared?
Context
LangVersion
(if explicitly set by project): preview