CFDataGetBytes

Header: CFData.h Carbon status: Supported

Copies the byte contents of a CFData object to an external buffer.

void CFDataGetBytes (
    CFDataRef data, 
    CFRange range, 
    UInt8 *buffer
);
Parameter descriptions
data

Pass a reference to the CFData object whose byte contents you want to access.

range

Pass a structure of CFRange initialized with the range of bytes in the CFData object that you would like to get. If you would like all of the contents, pass CFRangeMake(0,CFDataGetLength()).

buffer

Pass a pointer to a byte buffer of length range.length that you have allocated on the stack or heap. On return, the buffer contains the requested range of bytes.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)