StartBroadcastDiscoveryWithoutData() private method

private StartBroadcastDiscoveryWithoutData ( int hostId, int broadcastPort, int key, int version, int subversion, int timeout, byte &error ) : bool
hostId int
broadcastPort int
key int
version int
subversion int
timeout int
error byte
return bool
 public static bool StartBroadcastDiscovery(int hostId, int broadcastPort, int key, int version, int subversion, byte[] buffer, int size, int timeout, out byte error)
 {
     if (buffer != null)
     {
         if (buffer.Length < size)
         {
             throw new ArgumentOutOfRangeException(string.Concat(new object[]
             {
                 "Size: ",
                 size,
                 " > buffer.Length ",
                 buffer.Length
             }));
         }
         if (size == 0)
         {
             throw new ArgumentOutOfRangeException("Size is zero while buffer exists, please pass null and 0 as buffer and size parameters");
         }
     }
     if (buffer == null)
     {
         return(NetworkTransport.StartBroadcastDiscoveryWithoutData(hostId, broadcastPort, key, version, subversion, timeout, out error));
     }
     return(NetworkTransport.StartBroadcastDiscoveryWithData(hostId, broadcastPort, key, version, subversion, buffer, size, timeout, out error));
 }
        public static bool StartBroadcastDiscovery(int hostId, int broadcastPort, int key, int version, int subversion, byte[] buffer, int size, int timeout, out byte error)
        {
            bool flag = buffer != null;

            if (flag)
            {
                bool flag2 = buffer.Length < size;
                if (flag2)
                {
                    throw new ArgumentOutOfRangeException("Size: " + size.ToString() + " > buffer.Length " + buffer.Length.ToString());
                }
                bool flag3 = size == 0;
                if (flag3)
                {
                    throw new ArgumentOutOfRangeException("Size is zero while buffer exists, please pass null and 0 as buffer and size parameters");
                }
            }
            bool flag4 = buffer == null;
            bool result;

            if (flag4)
            {
                result = NetworkTransport.StartBroadcastDiscoveryWithoutData(hostId, broadcastPort, key, version, subversion, timeout, out error);
            }
            else
            {
                result = NetworkTransport.StartBroadcastDiscoveryWithData(hostId, broadcastPort, key, version, subversion, buffer, size, timeout, out error);
            }
            return(result);
        }