Convert String to Byte Array
ALIBE
Posts: 299
I have a string that I want to convert to a byte array. I searched the forum but, could not find any posts or pointers to this.· Can someone please help shed some light.
thanks in advance
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"any small object, accidentally dropped, goes and hides behind a larger object."
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://ALIBE.crosscity.com/
·
thanks in advance
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"any small object, accidentally dropped, goes and hides behind a larger object."
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://ALIBE.crosscity.com/
·
Comments
TargetByteArray[noparse][[/noparse]x] : = byte[noparse][[/noparse]str_addr++]
· x:=·· StrSize(str)
· iCounter:=0
· repeat x
··· OutgoingData[noparse][[/noparse]iCounter++] := byte[noparse][[/noparse]str++]
Where str is the source string and OutgoingData is the target byte array
Sorry - never mind, I think this might work this works well.
thanks all
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"any small object, accidentally dropped, goes and hides behind a larger object."
ALIBE - Artificial LIfe BEing. In search of building autonoumous land robot
http://ALIBE.crosscity.com/
Post Edited (ALIBE) : 2/25/2007 4:49:38 PM GMT
-martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting, and XBee Wireless Adapters
Southern Illinois University Carbondale, Electronic Systems Technologies
Post Edited (Martin Hebel) : 2/25/2007 4:57:33 PM GMT