Reading and decoding binary data

prothero at earthednet.org prothero at earthednet.org
Thu Mar 13 14:51:42 EDT 2014


Thanks, Richard. That lets me anticipate the new changes. I'm also modifying images and I'l convert that code to use byteToNum.
Bill
William Prothero
http://es.earthednet.org



On Mar 13, 2014, at 9:44 AM, Richard Gaskin <ambassador at fourthworld.com> wrote:

> 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
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list