public static function addressFromBytes(array $bytes)
    {
        $result = null;
        if ($result === null) {
            $result = Address\IPv4::fromBytes($bytes);
        }
        if ($result === null) {
            $result = Address\IPv6::fromBytes($bytes);
        }

        return $result;
    }
public static function addressFromBytes(array $bytes)
    {
        $result = null;
        if ($result === null) {
            $result = Address\IPv4::fromBytes($bytes);
        }
        if ($result === null) {
            $result = Address\IPv6::fromBytes($bytes);
        }

        return $result;
    }
public static function addressFromBytes ( array $ bytes ) { $ result = null ; if ( $ result === null ) { $ result = Address \ IPv4 :: fromBytes ( $ bytes ) ; } if ( $ result === null ) { $ result = Address \ IPv6 :: fromBytes ( $ bytes ) ; } return $ result ; }
Convert a byte array to an address instance.

@param int[]|array $bytes

@return \IPLib\Address\AddressInterface|null
Convert a byte array to an address instance .