public void Send(byte[] buf, int start, int len) { UnityEngine.Debug.Assert(len > 0); IntPtr buffer = Marshal.AllocHGlobal(len); Marshal.Copy(buf, 0, buffer, len); Rudp_CSharp.rudpaux_send(_u, buffer, len); Marshal.FreeHGlobal(buffer); }
public void Send(byte[] buf, int start, int len) { UnityEngine.Debug.Assert(len <= 3072); Marshal.Copy(buf, start, _buffer, len); Rudp_CSharp.rudpaux_send(_u, _buffer, len); }