How do Record Links encode their data in SQL server?

Recently I was asked about the encoding that it is done for record links in SQL. If you are not familiar with Record Links, which have been available since NAV version 5.0, just open any Card or List and then click Edit -> Links (Ctrl + L). “Record Links enable users to add links to…