|
|
Log In | Not a Member? |
Contact ADC |
| < Previous PageNext Page > |
バイトスワップルーチンを提供するAPIを以下に示します。ほとんどの状況では、プログラミングを行っているフレームワークに合致するルーチンを使用するのが最善です。Core FoundationとFoundationのAPIには、浮動小数点値をスワップするための関数がありますが、下記のその他のAPIにはその関数はありません。
POSIX (Portable Operating System Interface)のバイト順序関数 (ntohl、htonl、ntohs、htons)。これらはMac OS X Man Pagesで説明されています。
Darwinのバイト順序関数とマクロ。ヘッダファイル「libkern/OSByteOrder.h」に定義されています。このヘッダはカーネルフレームワークにありますが、高レベルアプリケーションから使用しても問題ありません。
Core Foundationのバイト順序関数。ヘッダファイル「CoreFoundation/CFByteOrder.h」に定義されており、『Byte-Order Utilities Reference』で解説されています。これらの関数の使い方の詳細については、『Memory Management Programming Guide for Core Foundation』の「Byte Swapping」を参照してください。
Foundationのバイト順序関数。ヘッダファイル「Foundation/NSByteOrder.h」に定義されており、『Foundation Objective-C Reference Collection』で解説されています。
Core Endian APIは、ヘッダファイル「CarbonCore/Endian.h」に定義されており、『Core Endian Reference』に解説されています。
| < Previous PageNext Page > |
Last updated: 2006-03-08
|
Get information on Apple products.
Visit the Apple Store online or at retail locations. 1-800-MY-APPLE Copyright © 2007 Apple Inc. All rights reserved. | Terms of use | Privacy Notice |