Created
November 12, 2015 00:00
-
-
Save seaders/8b701376acb9d2fd8ce0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Assets/bolt/scripts/udpkit/Native/NativePInvoke.cs b/Assets/bolt/scripts/udpkit/Native/NativePInvoke.cs | |
index e3af984..ccf16c0 100644 | |
--- a/Assets/bolt/scripts/udpkit/Native/NativePInvoke.cs | |
+++ b/Assets/bolt/scripts/udpkit/Native/NativePInvoke.cs | |
@@ -38,11 +38,11 @@ public static class NativePInvoke { | |
[DllImport(DLL_NAME)] | |
[SuppressUnmanagedCodeSecurity] | |
- public static extern Int32 SendTo(IntPtr socket, [Out] byte[] buffer, int size, UdpEndPoint.Native addr); | |
+ public static extern Int32 SendTo(IntPtr socket, byte[] buffer, int size, UdpEndPoint.Native addr); | |
[DllImport(DLL_NAME)] | |
[SuppressUnmanagedCodeSecurity] | |
- public static extern Int32 RecvFrom(IntPtr socket, [Out] byte[] buffer, int size, [Out] out UdpEndPoint.Native addr); | |
+ public static extern Int32 RecvFrom(IntPtr socket, [In,Out] byte[] buffer, int size, [Out] out UdpEndPoint.Native addr); | |
[DllImport(DLL_NAME)] | |
[SuppressUnmanagedCodeSecurity] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment