27#ifndef __COREFOUNDATION_CFDATA_H__
28#define __COREFOUNDATION_CFDATA_H__
30#include <CoreFoundation/CFBase.h>
34typedef const struct __CFData *CFDataRef;
36typedef struct __CFData *CFMutableDataRef;
51CFDataCreateWithBytesNoCopy (
CFAllocatorRef allocator,
const UInt8 * bytes,
58CF_EXPORT
const UInt8 *CFDataGetBytePtr (CFDataRef theData);
61CFDataGetBytes (CFDataRef theData,
CFRange range, UInt8 * buffer);
63CF_EXPORT
CFIndex CFDataGetLength (CFDataRef theData);
69CF_EXPORT CFTypeID CFDataGetTypeID (
void);
79CF_EXPORT CFMutableDataRef
82CF_EXPORT CFMutableDataRef
90CF_EXPORT UInt8 *CFDataGetMutableBytePtr (CFMutableDataRef theData);
97CFDataAppendBytes (CFMutableDataRef theData,
const UInt8 * bytes,
100CF_EXPORT
void CFDataDeleteBytes (CFMutableDataRef theData,
CFRange range);
103CFDataReplaceBytes (CFMutableDataRef theData,
CFRange range,
104 const UInt8 * newBytes,
CFIndex newLength);
107CFDataIncreaseLength (CFMutableDataRef theData,
CFIndex extraLength);
109CF_EXPORT
void CFDataSetLength (CFMutableDataRef theData,
CFIndex length);
signed long CFIndex
Definition CFBase.h:165
const struct __CFAllocator * CFAllocatorRef
A reference to a CFAllocator object.
Definition CFBase.h:301