Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
byte swapping large chunks of data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

byte swapping large chunks of data



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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.