Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MarshalAsAttribute.cs
Go to the documentation of this file.
2
3[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, Inherited = false)]
4public sealed class MarshalAsAttribute : Attribute
5{
7
9
11
13
14 public short SizeParamIndex;
15
16 public int SizeConst;
17
18 public string? MarshalType;
19
21
22 public string? MarshalCookie;
23
24 public UnmanagedType Value { get; }
25
26 public MarshalAsAttribute(UnmanagedType unmanagedType)
27 {
28 Value = unmanagedType;
29 }
30
31 public MarshalAsAttribute(short unmanagedType)
32 {
33 Value = (UnmanagedType)unmanagedType;
34 }
35}