Re: Hex Conversion to bytes....
Re: Hex Conversion to bytes....
- Subject: Re: Hex Conversion to bytes....
- From: Ricky Sharp <email@hidden>
- Date: Sun, 28 Nov 2004 20:11:06 -0600
On Nov 28, 2004, at 8:03 PM, John Draper wrote:
How is the best way to take a series of hex characters like this...
8d6f123e67cd548ca24d2323cd4a6514
Then convert them into 8 bit bytes and place them into an array of
8 bit bytes. I DONT mean a NSArray, but just to place them
into memory, which when dumped, would look like this...
8d 6f 12 3e <etc>
I did the usual searches for "string conversions", "format" and
I don't see any utilities to do this.
One method of doing this is to process two characters at a time from
your input string and feed them into sscanf with the appropriate format
chars.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden