converting binary to hex

Ken G. Brown kbrown at tnc.ab.ca
Tue Mar 19 01:39:00 UTC 2002


Where would I find a routine to convert a ByteArray from binary to hex?
ie.
#(10 15 16) would end up as #('0A' '0F' '10')
I figure it must be in there somewhwere but I cannot find it.

The intent is to convert a stream of bytes going to a file into their hex
equivalent without the 16r stuff like when you evaluate:
10 hex. '16rA'
16 hex. '16r10'

Of course I'm open to suggestions as to the best way to accomplish this.
Thx for any help.
Ken




More information about the Squeak-dev mailing list