libplist  2.8.0
API Documentation - Return to Homepage

◆ plist_set_data_val()

PLIST_API void plist_set_data_val ( plist_t node,
const char * val,
uint64_t length )

Set the value of a node.

Forces type of node to PLIST_DATA

Parameters
nodethe node
valthe binary buffer. The buffer is copied when set and will be freed by the node.
lengththe length of the buffer