libplist  2.7.0
API Documentation - Return to Homepage

◆ plist_data_val_contains()

PLIST_API int plist_data_val_contains ( plist_t  datanode,
const uint8_t *  cmpval,
size_t  n 
)

Helper function to match a given data blob within the value of a PLIST_DATA node.

Parameters
datanodenode of type PLIST_KEY
cmpvaldata blob to match
nsize of data blob passed in cmpval
Returns
1 if the node's value contains the given data blob or 0 if not.