CFDataCreateWithBytesNoCopy
コピーせずバイト列からCFDataを作成して返します
CFDataRef CFDataCreateWithBytesNoCopy (
CFAllocatorRef allocator ,
const UInt8 * bytes ,
CFIndex length ,
CFAllocatorRef bytesDeallocator );
解説
コピーせずバイト列からCFDataを作成して返します。
返り値
引数
( CFAllocatorRef )allocator
( const UInt8 * )bytes
( CFIndex )length
( CFAllocatorRef )bytesDeallocator
クラス
CFData
Function
使用可能
10.0
参照
例文
#include <CoreFoundation/CoreFoundation.h> int main (int argc, const char * argv[]) { const UInt8 bytes[] = {0,0xff,0,0,0,0,0,0xff}; CFDataRef dataRef = CFDataCreateWithBytesNoCopy(kCFAllocatorDefault, bytes, 8,kCFAllocatorDefault); CFShow(dataRef); return 0; }