Re: byte swapping large chunks of data
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