Setting bytes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Setting bytes

Mike Cowlishaw-3
In this case, your schoolboy is wrong -- the byte datatype in Java is
signed; that is byte values go from -128 to +127, not 0 to 255.

The good news is that NetRexx now provides a way you can express what
you want directly in hex:

   foo = [byte 2x88, 2x89]  -- and so on.

See the 'Supplement' document for details.

Mike Cowlishaw
IBM Fellow, IBM UK Laboratories
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>