UnityEngine.Networking.NetworkTransport.SendWrapper C# (CSharp) Method

SendWrapper() private method

private SendWrapper ( int hostId, int connectionId, int channelId, byte buffer, int size, byte &error ) : bool
hostId int
connectionId int
channelId int
buffer byte
size int
error byte
return bool
        private static extern bool SendWrapper(int hostId, int connectionId, int channelId, byte[] buffer, int size, out byte error);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

 public static bool Send(int hostId, int connectionId, int channelId, byte[] buffer, int size, out byte error)
 {
     if (buffer == null)
     {
         throw new NullReferenceException("send buffer is not initialized");
     }
     return(NetworkTransport.SendWrapper(hostId, connectionId, channelId, buffer, size, out error));
 }