We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 025bba8 commit 88d6fb4Copy full SHA for 88d6fb4
1 file changed
NetLeaf.Bridge/MethodReturnValue.cs
@@ -2,16 +2,18 @@
2
3
namespace NetLeaf.Bridge;
4
5
-// Struct for passing a methods return value back to C++
+/// <summary>
6
+/// Struct used for safetly passing a methods return value to unmanaged code.
7
+/// </summary>
8
[StructLayout(LayoutKind.Sequential)]
9
public struct MethodReturnValue
10
{
- public IntPtr StringResult; // Pointer to marshaled string
11
+ public IntPtr StringResult;
12
public float FloatResult;
13
public uint UIntResult;
14
public int IntResult;
15
- public ReturnType Type; // Indicate the type of the return value
16
+ public ReturnType Type;
17
}
18
19
public enum ReturnType : int
0 commit comments