Re: NSData dataWithBytes:Length: all 00

2009-07-21 Thread James Walker
Chase Meadors wrote: I have the following code, which is a category on NSData. It is always called on especially designated NSData objects with four bytes. - (NSData *)resolve { unsigned char *buf = [self bytes]; const unsigned char *newBytes[4] = { (buf[3] - 0x08), buf[2], b

Re: NSData dataWithBytes:Length: all 00

2009-07-21 Thread Stephen J. Butler
On Tue, Jul 21, 2009 at 3:38 PM, Chase Meadors wrote: > I have the following code, which is a category on NSData. It is always > called on especially designated NSData objects with four bytes. > > - (NSData *)resolve { > >        unsigned char *buf = [self bytes]; > >        const unsigned char *ne

NSData dataWithBytes:Length: all 00

2009-07-21 Thread Chase Meadors
I have the following code, which is a category on NSData. It is always called on especially designated NSData objects with four bytes. - (NSData *)resolve { unsigned char *buf = [self bytes]; const unsigned char *newBytes[4] = { (buf[3] - 0x08), buf[2], buf[1], buf[