Reading and decoding binary data

Richard Gaskin ambassador at fourthworld.com
Thu Mar 13 12:44:13 EDT 2014


prothero wrote:

 > Mainly, what I was wondering is if the byteToNum command is the
 > correct one. In images, its the convert character to number, but
 > I thought the character commands for binary data were going to
 > be deprecated.

Yes, for comparing a single-byte value, byteToNum is the better choice.

Very soon charToNum may involve multi-byte sequences for Unicode, so all 
code that uses it where a single-byte value is needed should be updated 
to use byteToNum instead.

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys





More information about the use-livecode mailing list