Lines Matching defs:propertyList

659 static void _CFGenerateXMLPropertyListToData(CFMutableDataRef xml, CFTypeRef propertyList) {
666 _CFAppendXML0(propertyList, 0, xml);
677 CFDataRef _CFPropertyListCreateXMLData(CFAllocatorRef allocator, CFPropertyListRef propertyList, Boolean checkValidPlist) {
680 CFAssert1(propertyList != NULL, __kCFLogAssertion, "%s(): Cannot be called with a NULL property list", __PRETTY_FUNCTION__);
681 if (checkValidPlist && !CFPropertyListIsValid(propertyList, kCFPropertyListXMLFormat_v1_0)) {
682 __CFAssertIsPList(propertyList);
686 _CFGenerateXMLPropertyListToData(xml, propertyList);
690 CFDataRef CFPropertyListCreateXMLData(CFAllocatorRef allocator, CFPropertyListRef propertyList) {
691 return _CFPropertyListCreateXMLData(allocator, propertyList, true);
694 CF_EXPORT CFDataRef _CFPropertyListCreateXMLDataWithExtras(CFAllocatorRef allocator, CFPropertyListRef propertyList) {
695 return _CFPropertyListCreateXMLData(allocator, propertyList, false);
2732 CFDataRef CFPropertyListCreateData(CFAllocatorRef allocator, CFPropertyListRef propertyList, CFPropertyListFormat format, CFOptionFlags options, CFErrorRef *error) {
2736 CFAssert1(propertyList != NULL, __kCFLogAssertion, "%s(): Cannot be called with a NULL property list", __PRETTY_FUNCTION__);
2737 __CFAssertIsPList(propertyList);
2743 if (!_CFPropertyListIsValidWithErrorString(propertyList, format, &validErr)) {
2753 data = _CFPropertyListCreateXMLData(allocator, propertyList, true);
2759 CFIndex len = CFPropertyListWrite(propertyList, stream, format, options, error);
2767 __CFBinaryPlistWrite(propertyList, dataForPlist, 0, options, error);
2779 CFIndex CFPropertyListWrite(CFPropertyListRef propertyList, CFWriteStreamRef stream, CFPropertyListFormat format, CFOptionFlags options, CFErrorRef *error) {
2784 CFAssert1(propertyList != NULL, __kCFLogAssertion, "%s(): Cannot be called with a NULL property list", __PRETTY_FUNCTION__);
2785 __CFAssertIsPList(propertyList);
2790 if (!_CFPropertyListIsValidWithErrorString(propertyList, format, &validErr)) {
2800 CFDataRef data = _CFPropertyListCreateXMLData(kCFAllocatorSystemDefault, propertyList, true);
2838 CFIndex len = __CFBinaryPlistWrite(propertyList, stream, 0, options, error);
2845 CFIndex CFPropertyListWriteToStream(CFPropertyListRef propertyList, CFWriteStreamRef stream, CFPropertyListFormat format, CFStringRef *errorString) {
2852 if (!_CFPropertyListIsValidWithErrorString(propertyList, format, &validErr)) {
2866 CFIndex result = CFPropertyListWrite(propertyList, stream, format, 0, &error);
3018 CFPropertyListRef CFPropertyListCreateDeepCopy(CFAllocatorRef allocator, CFPropertyListRef propertyList, CFOptionFlags mutabilityOption) {
3021 CFAssert1(propertyList != NULL, __kCFLogAssertion, "%s(): cannot copy a NULL property list", __PRETTY_FUNCTION__);
3022 __CFAssertIsPList(propertyList);
3024 if (!CFPropertyListIsValid(propertyList, kCFPropertyListBinaryFormat_v1_0)) return NULL;
3026 CFTypeID typeID = CFGetTypeID(propertyList);
3028 CFDictionaryRef dict = (CFDictionaryRef)propertyList;
3073 result = _arrayDeepImmutableCopy(allocator, (CFArrayRef)propertyList, mutabilityOption);
3075 result = _arrayDeepMutableCopy(allocator, (CFArrayRef)propertyList, mutabilityOption);
3079 result = CFDataCreateMutableCopy(allocator, 0, (CFDataRef)propertyList);
3081 result = CFDataCreateCopy(allocator, (CFDataRef)propertyList);
3086 CFNumberType numType = _CFNumberGetType2((CFNumberRef)propertyList);
3087 CFNumberGetValue((CFNumberRef)propertyList, numType, (void *)bytes);
3091 CFRetain(propertyList);
3092 result = propertyList;
3095 result = CFDateCreate(allocator, CFDateGetAbsoluteTime((CFDateRef)propertyList));
3098 result = CFStringCreateMutableCopy(allocator, 0, (CFStringRef)propertyList);
3100 result = CFStringCreateCopy(allocator, (CFStringRef)propertyList);
3103 CFAssert2(false, __kCFLogAssertion, "%s(): %p is not a property list type", __PRETTY_FUNCTION__, propertyList);