Skip to content

MarshalAttribute

1 min read

Import: import system.interop;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

MarshalAttribute

@c marshaling: on the extern, string encoding (@marshal(MarshalKind.LpStr) / @marshal(MarshalKind.LpWStr)); on a NativeCallback parameter, @marshal(MarshalKind.UserDataLast) passes user_data after the callback's own arguments.

public struct MarshalAttribute

kind

Marshaling rule applied to the extern or parameter.

public kind: MarshalKind