Re: bit/byte processing in cocoa
Re: bit/byte processing in cocoa
- Subject: Re: bit/byte processing in cocoa
- From: Bob Ippolito <email@hidden>
- Date: Thu, 13 Jan 2005 11:58:37 -0500
On Jan 13, 2005, at 4:28, Shawn Erickson wrote:
On Jan 12, 2005, at 10:07 PM, Jon wrote:
I was wondering how to deal with bits/bytes in cocoa. How could I,
say AND a char with another? Or XOR it, or use other things like
shr/shl etc? Sorry for the newbie question, but I can't figure it
out.
How you do it in C? Objective-C is a super set of C so anything you
can do in C you can do in Objective-C.
(of course I am assuming you the C programming language)
I personally have no idea what "shr" or "shl" is nor much idea exactly
what you are trying to do and how you are having problems with it
(what of Cocoa are you using, etc.) so providing more information
would be helpful.
shr and shl are (x86?) assembly mnemonics for shifting bits right and
left respectively.
But yes, do what Shawn says and use regular 'ol C syntax.
-bob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden