You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: KodiInterop/KodiInterop/KodiBridgeABI.cs
+10-2
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
usingSystem.Linq;
4
4
usingSystem.Reflection;
5
5
usingSystem.Runtime.InteropServices;
6
+
usingSystem.Text;
6
7
7
8
namespaceSmx.KodiInterop
8
9
{
@@ -18,16 +19,23 @@ public delegate IntPtr PySendStringDelegate(
18
19
19
20
privatereadonlyPySendStringDelegate_delegate;
20
21
22
+
privatestaticunsafeintstrlen(IntPtrptr){
23
+
intl=0;
24
+
byte*dptr=(byte*)ptr.ToPointer();
25
+
while(*dptr++!=0)++l;
26
+
returnl;
27
+
}
28
+
21
29
22
30
/// <summary>
23
31
/// Wrapper to PySendMessageDelegate that does *not* free the string, like in MarshalAs (causing a python crash when it tries to free the string again)
0 commit comments