Re: unpacking binary data
Re: unpacking binary data
- Subject: Re: unpacking binary data
- From: "stephen joseph butler" <email@hidden>
- Date: Sun, 30 Mar 2008 22:29:58 -0500
On Sun, Mar 30, 2008 at 10:23 PM, C Sandeep <email@hidden> wrote:
> Im working on an cocoa application that needs to, among other things,
> unpack binary data, into NSString preferably. I have used perl's
> unpack (http://perldoc.perl.org/functions/unpack.html) in the past to
> do such a thing. I have looked at NSData's documentation, however Im
> at a loss on how to accomplish the same. Any help is greatly
> appreciated. Thanks.
Look at -[NSString initWithData:encoding:]. Or, if you only need a range of
the bytes, -[NSString initWithBytes:length:encoding:].
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden