The 'byte' chunk type and friends ('byteToNum' and 'numToByte') were introduced 
in Revolution 3.0 - and guarantee linear access to a piece in a container 
(variable, field, etc)
The idea is to let you retrieve individual bytes in a container, even when 
there's a mix of ASCII and Unicode in there. Right now, 'byte' and 'char' are 
the same, unless the local property 'useUnicode' is set to true. But in the 
future, Mark Waddingham wants to make 'char' adaptive to the encoding of the 
container or even part of the container.
So if you're processing binary data using 'char' right now to get to individual 
bytes, you should move over to 'byte' to avoid future surprises. See also the 
revUp newsletter article that I wrote a while back:
<http://www.runrev.com/newsletter/january/issue63/newsletter4.php>

Jan Schenkel
=====
Quartam Reports & PDF Library for Revolution
<http://www.quartam.com>

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)


--- On Wed, 8/12/09, [email protected] <[email protected]> wrote:

> From: [email protected] <[email protected]>
> Subject: Bytes (was: password in a script)
> To: [email protected]
> Date: Wednesday, August 12, 2009, 7:39 AM
> Just curious, "byte" seems to be a
> native word in Rev, though I don't see 
> it in the dictionary. I know there are memos and addendums
> galore.
> 
> Is it a synonym for "char", as it seems to be, or something
> more?
> 
> Craig Newman
> 
> 
> In a message dated 8/12/09 9:19:24 AM, [email protected]
> writes:
> 
> 
> > on the client:
> > --generate a random 4 byte 'nonce' value
> > repeat 4
> >    put any byte of
> "0123456789abcdefghijklmnopqrstuvwxyz" after tNonce
> > end repeat
> > 
> 
> _______________________________________________
> use-revolution mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to