[Q][Smalltalk][hex] converting binary to hex

Ken G. Brown kbrown at tnc.ab.ca
Tue Mar 19 22:46:04 UTC 2002


Attached is a ByteArray method 'asHex' change set which I am presenting for
Tersemen everywhere to critically review before I post it with the [ENH]. It
returns a ByteArray containing all the two character representations of all
bytes in the original ByteArray.

aByteArray _ #(0 15 16 255) asByteArray.
aByteArray asHex. answers - a ByteArray(48 48 48 70 49 48 70 70)

Any and all comments will be appreciated.
Thx to all who helped.
Ken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ByteArrayasHex.1.cs
Type: application/octet-stream
Size: 498 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020319/6cd981b5/ByteArrayasHex.1.obj


More information about the Squeak-dev mailing list