• 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
NSData. add 6 bytes to NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSData. add 6 bytes to NSData


  • Subject: NSData. add 6 bytes to NSData
  • From: Carlo Gulliani <email@hidden>
  • Date: Sat, 4 Jul 2009 04:47:31 -0700 (PDT)

Hi, everybody, I need to add 6 bytes to my NSData

steps:

1. write into NSData

NSData *data = [NSData dataWithBytes:(const char*)&packet length:sizeof(packet)];

2. read from NSData
3. In loop i need to add 6 bytes
4. And again wtite into NSData

first step i did, and from 2 to 4 i dont know how to do. Anybody could help me? Thanks in advance!



_______________________________________________

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: NSData. add 6 bytes to NSData
      • From: Peter Mulholland <email@hidden>
  • Prev by Date: Re: Send files from iphone
  • Next by Date: Re: NSData. add 6 bytes to NSData
  • Previous by thread: Re: looks like my syntax is wrong. Does not compile
  • Next by thread: Re: NSData. add 6 bytes to NSData
  • Index(es):
    • Date
    • Thread