Re: Logical Operation With byte[] -- What is it doing?
- From: Hal Vaughan <hal@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 23 Dec 2005 00:14:24 -0500
Roedy Green wrote:
> On Thu, 22 Dec 2005 23:28:44 -0500, Hal Vaughan
> <hal@xxxxxxxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted someone
> who said :
>
>> a = bRawData[i] & 0xFF;
>
> see http://mindprod.com/jgloss/unsigned.html
So, if I understand correctly, that is transferring the byte to the variable
a as an unsigned integer.
But it does leave bRawData[i] and bRawData unaffected, right? So if a is
not used for anything else, the line still serves no purpose, right?
Hal
.
- Follow-Ups:
- Re: Logical Operation With byte[] -- What is it doing?
- From: Roedy Green
- Re: Logical Operation With byte[] -- What is it doing?
- References:
- Logical Operation With byte[] -- What is it doing?
- From: Hal Vaughan
- Re: Logical Operation With byte[] -- What is it doing?
- From: Roedy Green
- Logical Operation With byte[] -- What is it doing?
- Prev by Date: Re: Logical Operation With byte[] -- What is it doing?
- Next by Date: Re: .Java File Error
- Previous by thread: Re: Logical Operation With byte[] -- What is it doing?
- Next by thread: Re: Logical Operation With byte[] -- What is it doing?
- Index(es):
Relevant Pages
|