Skip to content

Instantly share code, notes, and snippets.

@seaders
Created November 12, 2015 00:00
Show Gist options
  • Save seaders/8b701376acb9d2fd8ce0 to your computer and use it in GitHub Desktop.
Save seaders/8b701376acb9d2fd8ce0 to your computer and use it in GitHub Desktop.
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