• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OCTET_STRING_t -> NSString?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: OCTET_STRING_t -> NSString?
      • From: "Stephen J. Butler" <email@hidden>
References: 
 >OCTET_STRING_t -> NSString? (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Re: Distribution via DMG fails
  • Next by Date: Re: OCTET_STRING_t -> NSString?
  • Previous by thread: OCTET_STRING_t -> NSString?
  • Next by thread: Re: OCTET_STRING_t -> NSString?
  • Index(es):
    • Date
    • Thread