libplist  2.7.0
API Documentation - Return to Homepage

◆ plist_get_data_ptr()

PLIST_API const char * plist_get_data_ptr ( plist_t  node,
uint64_t *  length 
)

Get a pointer to the data buffer of a PLIST_DATA node.

Note
DO NOT MODIFY the buffer. Mind that the buffer is only available until the plist node gets freed. Make a copy if needed.
Parameters
nodeThe node
lengthPointer to a uint64_t that will be set to the length of the buffer
Returns
Pointer to the buffer