Skip to content

Unknown error in LibraryImport with ref parameter #116887

Answered by huoyaoyuan
DrkWzrd asked this question in Q&A
Discussion options

You must be logged in to vote

But I don't understand why a simple blittable struct with the correct attribute can not be handled.

It's not a blittable struct. Only [MarshalAs(UnmanagedType.U1)] with bool is blittable, [MarshalAs(UnmanagedType.Bool)] is not.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@DrkWzrd
Comment options

@huoyaoyuan
Comment options

Answer selected by DrkWzrd
@DrkWzrd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants