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

Re: byte swapping large chunks of data


  • Subject: Re: byte swapping large chunks of data
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 30 Aug 2007 17:29:26 -0400
  • Organization: Rogue Research

On 8/30/07 2:39 PM, Jaime Magiera said:

>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)

A good question for the performance list I'd say.  In fact, it's
probably been asked already.  There's this:
<http://developer.apple.com/hardwaredrivers/ve/algorithms.html#byte_swap>

but of course that's PPC only.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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

References: 
 >byte swapping large chunks of data (From: Jaime Magiera <email@hidden>)

  • Prev by Date: Re: Where are the target and action variables?
  • Next by Date: Who Calls Accessors in Bookmarks?
  • Previous by thread: Re: byte swapping large chunks of data
  • Next by thread: Where are the target and action variables?
  • Index(es):
    • Date
    • Thread