• 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
byte swapping large chunks of data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

byte swapping large chunks of data


  • Subject: byte swapping large chunks of data
  • From: Jaime Magiera <email@hidden>
  • Date: Thu, 30 Aug 2007 14:39:59 -0400

Hey folks,

Being new to the whole byte-swapping thing, I have a few questions while writing data for Quicktime Movies and other files of the like. Until now, I've been adding bytes to the files as longs, using EndianU32_NtoB for the swapping. This works properly of course. However, I'm curious if there are methods for swapping larger chunks of bytes (96, 36, etc.) at a time. (other than iterating)

Is there a way I could do a swap on a whole NSData? That would be the ultimate solution.

thanks for any help,

Jaime Magiera
Sensory Research
http://www.sensoryresearch.net




_______________________________________________

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: byte swapping large chunks of data
      • From: "Sean McBride" <email@hidden>
    • Re: byte swapping large chunks of data
      • From: "Clark Cox" <email@hidden>
  • Prev by Date: Re: NSMutableString appendString: "appending self" allowed?
  • Next by Date: Where are the target and action variables?
  • Previous by thread: Re: Making an initial change to document, and don't want the doc marked as changed
  • Next by thread: Re: byte swapping large chunks of data
  • Index(es):
    • Date
    • Thread