CFDataCreateMutable |
||||
Header: | CFData.h | Carbon status: | Supported | |
Creates a mutable, empty CFData object.
CFMutableDataRef CFDataCreateMutable ( CFAllocatorRef allocator, CFIndex capacity );
Pass a reference to an allocator object or pass NULL to request the current default allocator.
Pass an integer that specifies the maximum number of bytes that the CFData object can contain. If this parameter is zero, the object can grow to a size only limited by the constraints of available memory and address space.
A reference to a mutable CFData object or NULL if there was a problem creating the object.
The CFDataCreateMutable function creates an empty (that is, content-less) but mutable CFData object. You can add raw data to this object with the CFDataAppendBytes function, and thereafter you can replace and delete characters with the appropriate CFData functions. If the capacity parameter is greater than zero, any attempt to add characters beyond this limit can result in undefined behavior.
Supported in Carbon. Available in Carbon 1.0.2 and later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)