Hex Plugin

Hex Plugin - REALBasic plugin with four methods that will help you a lot in your work.
Download

Hex Plugin Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Bob Delaney
  • Publisher web site:
  • http://homepage.mac.com/delaneyrm/
  • Operating Systems:
  • OS X 10.4 or later
  • File Size:
  • 167 KB

Hex Plugin Tags


Hex Plugin Description

Hex Plugin - REALBasic plugin with four methods that will help you a lot in your work. Hex Plugin for REALbasic 5 and higher is a small plugin with four methods. You can give the plugin a string containing an unsigned decimal integer of essentially unlimited length and the plugin will give back a string containing the hexadecimal equivalent of that integer. And you can do the reverse. Also you can give the plugin a UTF16 or UTF8 encoded string, and the plugin will give back a string containing the hex representation of that input string. And you can do the reverse.Here are some key features of "Hex Plugin":· The plugin doesn't use a multi-precision numerics library, so it's small in size - only 536 kbytes. And that's for Universal, Carbon, PPC, and x86 combined.· The C source (included in the download) for converting a dec string to a hex string does so "in place". That is, the calculation operates on the dec string and gradually converts it to the hex string. A standard technique is used where the remainders after successive divisions of the decimal number by sixteen gradually build up the hex number from low "digit" to high "digit". The divisions are accomplished by 4-bit right shifts, so are fast. How all this is implemented may be novel, I've been unable to find a similar implementation on the Internet. Basically it starts with the dec string being converted in place so that the final half contains the number in base 100. Look at the source code to see what happens after that. :)· I've also included in the download the C source for converting a hex string to a dec string. This does require the creation of the dec string since the length of the decimal number is always greater than or equal to the length of the hex number. A similar technique is used as described in 2, but division by ten cannot be done by bit shifts so it's slower.· The conversions from character to hex and the reverse will be faster than if done in REALbasic itself.Requirements:· Mac OS 9 or later· Mac OS X 10.4 or later· REALBasic 5 or later. What's New in This Release: · Adds Universal support and corrects a problem with REALbasic 2007 Release 4.


Hex Plugin Related Software