We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad289c5 commit f367e37Copy full SHA for f367e37
1 file changed
swig/include/csharp/csharp_strings.i
@@ -36,6 +36,11 @@ static CSharpUtf8StringHelperCallback SWIG_csharp_string_callback = NULL;
36
37
public delegate System.IntPtr Utf8StringDelegate(System.IntPtr message);
38
39
+ /* IMPORTANT:
40
+ Every call to SWIG_csharp_string_callback MUST be followed by exactly one call
41
+ to LengthPrefixedUtf16UnmanagedToString on the returned pointer.
42
+ Failure to do so will result in memory leaks or double frees.
43
+ */
44
static Utf8StringDelegate stringDelegate = new Utf8StringDelegate($modulePINVOKE.Utf8UnmanagedToLengthPrefixedUtf16Unmanaged);
45
46
[global::System.Runtime.InteropServices.DllImport("$dllimport", EntryPoint="RegisterUtf8StringCallback_$module")]
0 commit comments