From: Chris Jett <[EMAIL PROTECTED]>
Date: Fri, 1 Sep 2006 14:45:22 -0500

I drawing a blank since I have been working on a project for several
days.  What is the most efficient way to go about converting a text
string to its hex equivalent?

Example:

Input -> TEXT
Output -> 54455854

Any help appreciated.

In case you were already using my plugin, there is ElfData.Hex. Although a plugin is definitely overkill for this particular case as it can be done in pure RB no problem. But if you were using the plugin for other things where it is not overkill... well it's in there.

Actually my plugin has one feature most hexers don't. It can take optional start and finish position parameters. So if you had a string like this "<code>abcabc</code>", you could call ElfData.Hex( Start, Finish ) which would parse that section only. Makes things a little faster... cos you don't create intermediate strings.

--
http://elfdata.com/plugin/



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to