WoW:TradeSkillLink: Difference between revisions

Add base 64 link.
(Fixed base Base64 example and description, it's a standard Base64 charset, not 60+ linear)
(Add base 64 link.)
Line 41: Line 41:
This set indicates that four (4) specific recipes are available (note that there are 5 bits; there is no information on why there is an extra bit at this time). Also note that the bitset is unique for each tradeskill; a recipe denoted by bit N in one tradeskill is not the same as a recipe denoted by bit N in another tradeskill.
This set indicates that four (4) specific recipes are available (note that there are 5 bits; there is no information on why there is an extra bit at this time). Also note that the bitset is unique for each tradeskill; a recipe denoted by bit N in one tradeskill is not the same as a recipe denoted by bit N in another tradeskill.


The bitset is encoded into standard Base64, using the characters A-Z, a-z, 0-9, +, and /. Being Base64, there are 6 bits per digit (similar to how hexadecimal has 4 bits per digit); this allows one to easily determine if a specific bit is set by looking only at a single digit in the string.
The bitset is encoded into standard [http://www.hcidata.info/base64.htm Base64], using the characters A-Z, a-z, 0-9, +, and /. Being Base64, there are 6 bits per digit (similar to how hexadecimal has 4 bits per digit); this allows one to easily determine if a specific bit is set by looking only at a single digit in the string.


TODO: Document bitfield ordering, perhaps by looking at [http://www.wowinterface.com/downloads/info10316-TradeLinks.html Maldivia's TradeLinks addon]
TODO: Document bitfield ordering, perhaps by looking at [http://www.wowinterface.com/downloads/info10316-TradeLinks.html Maldivia's TradeLinks addon]
Anonymous user