Re: OCTET_STRING_t -> NSString?
Re: OCTET_STRING_t -> NSString?
- Subject: Re: OCTET_STRING_t -> NSString?
- From: Todd Heberlein <email@hidden>
- Date: Tue, 29 Mar 2011 10:48:55 -0700
> In particular, the beginning of the OCTET_STRING_t's buffer begins with two bytes (decimal values 12 and 21). Am I supposed to skip these? For example, the following code where I skip these first two bytes seems to work, but it seems like a big hack:
OK, it seems that the second byte (21 in this case) is the number of characters encoded (I haven't tried non-ASCII characters). The OCTET_STRING_t for bundle_version begins 12, 5 (where the string resolves to "1.0.2", five characters). I still don't know what the 12 means. And does this mean that an OCTET_STRING can encode at most 256 bytes?
Any thoughts?
Todd
_______________________________________________
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