Documentation
¶
Overview ¶
Package corefoundation provides Go bindings for the CoreFoundation framework.
Access low-level functions, primitive data types, and various collection types that are bridged seamlessly with the Foundation framework.
Core Foundation is a framework that provides fundamental software services useful to application services, application environments, and to applications themselves. Core Foundation also provides abstractions for common data types, facilitates internationalization with Unicode string storage, and offers a suite of utilities such as plug-in support, XML property lists, URL resource access, and preferences.
Utilities ¶
- Base Utilities (CFComparatorFunction, CFIndex, CFOptionFlags, CFRange, CFComparisonResult)
- Byte-Order Utilities (CFSwappedFloat32, CFSwappedFloat64, CFByteOrder)
- Core Foundation URL Access Utilities (CFURLError)
- Preferences Utilities
- Socket Name Server Utilities
- Time Utilities (CFAbsoluteTime, CFGregorianDate, CFGregorianUnits, CFTimeInterval, CFGregorianUnitFlags)
Opaque Types ¶
- CFAllocator (CFAllocatorAllocateCallBack, CFAllocatorCopyDescriptionCallBack, CFAllocatorDeallocateCallBack, CFAllocatorPreferredSizeCallBack, CFAllocatorReallocateCallBack)
- CFArray (CFArrayApplierFunction, CFArrayCopyDescriptionCallBack, CFArrayEqualCallBack, CFArrayReleaseCallBack, CFArrayRetainCallBack)
- CFAttributedString
- CFBag (CFBagApplierFunction, CFBagCopyDescriptionCallBack, CFBagEqualCallBack, CFBagHashCallBack, CFBagReleaseCallBack)
- CFBinaryHeap (CFBinaryHeapApplierFunction, CFBinaryHeapCallBacks, CFBinaryHeapCompareContext)
- CFBitVector (CFBit)
- CFBoolean
- CFBundle (CFBundleRefNum)
- CFCalendar (CFCalendarUnit)
- CFCharacterSet (CFCharacterSetPredefinedSet)
- CFData (CFDataSearchFlags)
- CFDate
- CFDateFormatter (CFDateFormatterStyle)
- CFDictionary (CFDictionaryApplierFunction, CFDictionaryCopyDescriptionCallBack, CFDictionaryEqualCallBack, CFDictionaryHashCallBack, CFDictionaryReleaseCallBack)
- CFError
- CFFileDescriptor (CFFileDescriptorNativeDescriptor, CFFileDescriptorCallBack, CFFileDescriptorContext)
- CFFileSecurity: Encapsulates a file system object’s security information in a Core Foundation object.
- CFLocale (CFLocaleLanguageDirection)
- CFMachPort (CFMachPortCallBack, CFMachPortInvalidationCallBack, CFMachPortContext)
- CFMessagePort (CFMessagePortCallBack, CFMessagePortInvalidationCallBack, CFMessagePortContext)
- CFMutableArray
- CFMutableAttributedString
- CFMutableBag
- CFMutableBitVector
- CFMutableCharacterSet
- CFMutableData
- CFMutableDictionary
- CFMutableSet
- CFMutableString (CFStringNormalizationForm)
- CFNotificationCenter (CFNotificationCallback, CFNotificationSuspensionBehavior)
- CFNull
- CFNumber (CFNumberType)
- CFNumberFormatter (CFNumberFormatterStyle, CFNumberFormatterOptionFlags, CFNumberFormatterPadPosition, CFNumberFormatterRoundingMode)
- CFPlugIn (CFPlugInDynamicRegisterFunction, CFPlugInFactoryFunction, CFPlugInUnloadFunction)
- CFPlugInInstance (CFPlugInInstanceDeallocateInstanceDataFunction, CFPlugInInstanceGetInterfaceFunction)
- CFPropertyList (CFPropertyListMutabilityOptions, CFPropertyListFormat)
- CFReadStream (CFReadStreamClientCallBack, CFStreamClientContext)
- CFRunLoop
- CFRunLoopObserver (CFRunLoopObserverCallBack, CFRunLoopObserverContext, CFRunLoopActivity)
- CFRunLoopSource (CFRunLoopSourceContext, CFRunLoopSourceContext1)
- CFRunLoopTimer (CFRunLoopTimerCallBack, CFRunLoopTimerContext)
- CFSet (CFSetApplierFunction, CFSetCopyDescriptionCallBack, CFSetEqualCallBack, CFSetHashCallBack, CFSetReleaseCallBack)
- CFSocket (CFSocketCallBack, CFSocketContext, CFSocketNativeHandle, CFSocketSignature, CFSocketCallBackType)
- CFString (CFStringEncoding, CFStringEncodings, CFStringCompareFlags, CFStringInlineBuffer, CFStringBuiltInEncodings)
- CFStringTokenizer (CFStringTokenizerTokenType)
- CFTimeZone (CFTimeZoneNameStyle)
- CFTree (CFTreeApplierFunction, CFTreeCopyDescriptionCallBack, CFTreeReleaseCallBack, CFTreeRetainCallBack, CFTreeContext)
- CFURL (CFURLBookmarkCreationOptions, CFURLBookmarkFileCreationOptions, CFURLBookmarkResolutionOptions, CFURLComponentType, CFURLPathStyle)
- CFUserNotification (CFUserNotificationCallBack)
- CFURLEnumerator: A reference to a object.
- CFUUID (CFUUIDBytes)
- CFWriteStream (CFWriteStreamClientCallBack)
- CFXMLNode (CFXMLAttributeDeclarationInfo, CFXMLAttributeListDeclarationInfo, CFXMLDocumentInfo, CFXMLDocumentTypeInfo, CFXMLElementInfo)
- CFXMLParser (CFXMLParserAddChildCallBack, CFXMLParserCopyDescriptionCallBack, CFXMLParserCreateXMLStructureCallBack, CFXMLParserEndXMLStructureCallBack, CFXMLParserHandleErrorCallBack)
- CFXMLTree
Variables ¶
- kCFURLUbiquitousItemIsSyncPausedKey
- kCFURLUbiquitousItemSupportedSyncControlsKey
Functions ¶
- CFAttributedStringGetStatisticalWritingDirections(_:_:_:_:_:)
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func CFAllocatorAllocate(allocator CFAllocatorRef, size int, hint uint64) unsafe.Pointer
- func CFAllocatorAllocateBytes(allocator CFAllocatorRef, size int, hint uint64) unsafe.Pointer
- func CFAllocatorAllocateTyped(allocator CFAllocatorRef, size int, descriptor CFAllocatorTypeID, hint uint64) unsafe.Pointer
- func CFAllocatorDeallocate(allocator CFAllocatorRef, ptr unsafe.Pointer)
- func CFAllocatorGetContext(allocator CFAllocatorRef, context *CFAllocatorContext)
- func CFAllocatorGetPreferredSizeForSize(allocator CFAllocatorRef, size int, hint uint64) int
- func CFAllocatorGetTypeID() uint
- func CFAllocatorReallocate(allocator CFAllocatorRef, ptr unsafe.Pointer, newsize int, hint uint64) unsafe.Pointer
- func CFAllocatorReallocateBytes(allocator CFAllocatorRef, ptr unsafe.Pointer, newsize int, hint uint64) unsafe.Pointer
- func CFAllocatorReallocateTyped(allocator CFAllocatorRef, ptr unsafe.Pointer, newsize int, ...) unsafe.Pointer
- func CFAllocatorSetDefault(allocator CFAllocatorRef)
- func CFArrayAppendArray(theArray CFMutableArrayRef, otherArray CFArrayRef, otherRange CFRange)
- func CFArrayAppendValue(theArray CFMutableArrayRef, value unsafe.Pointer)
- func CFArrayApplyFunction(theArray CFArrayRef, range_ CFRange, applier CFArrayApplierFunction, ...)
- func CFArrayBSearchValues(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer, ...) int
- func CFArrayContainsValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) bool
- func CFArrayExchangeValuesAtIndices(theArray CFMutableArrayRef, idx1 int, idx2 int)
- func CFArrayGetCount(theArray CFArrayRef) int
- func CFArrayGetCountOfValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) int
- func CFArrayGetFirstIndexOfValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) int
- func CFArrayGetLastIndexOfValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) int
- func CFArrayGetTypeID() uint
- func CFArrayGetValueAtIndex(theArray CFArrayRef, idx int) unsafe.Pointer
- func CFArrayGetValues(theArray CFArrayRef, range_ CFRange, values unsafe.Pointer)
- func CFArrayInsertValueAtIndex(theArray CFMutableArrayRef, idx int, value unsafe.Pointer)
- func CFArrayRemoveAllValues(theArray CFMutableArrayRef)
- func CFArrayRemoveValueAtIndex(theArray CFMutableArrayRef, idx int)
- func CFArrayReplaceValues(theArray CFMutableArrayRef, range_ CFRange, newValues unsafe.Pointer, ...)
- func CFArraySetValueAtIndex(theArray CFMutableArrayRef, idx int, value unsafe.Pointer)
- func CFArraySortValues(theArray CFMutableArrayRef, range_ CFRange, comparator CFComparatorFunction, ...)
- func CFAttributedStringBeginEditing(aStr CFMutableAttributedStringRef)
- func CFAttributedStringEndEditing(aStr CFMutableAttributedStringRef)
- func CFAttributedStringGetBidiLevelsAndResolvedDirections(attributedString CFAttributedStringRef, range_ CFRange, baseDirection int8, ...) bool
- func CFAttributedStringGetLength(aStr CFAttributedStringRef) int
- func CFAttributedStringGetStatisticalWritingDirections(attributedString CFAttributedStringRef, range_ CFRange, baseDirection int8, ...) bool
- func CFAttributedStringGetTypeID() uint
- func CFAttributedStringRemoveAttribute(aStr CFMutableAttributedStringRef, range_ CFRange, attrName CFStringRef)
- func CFAttributedStringReplaceAttributedString(aStr CFMutableAttributedStringRef, range_ CFRange, ...)
- func CFAttributedStringReplaceString(aStr CFMutableAttributedStringRef, range_ CFRange, replacement CFStringRef)
- func CFAttributedStringSetAttribute(aStr CFMutableAttributedStringRef, range_ CFRange, attrName CFStringRef, ...)
- func CFAttributedStringSetAttributes(aStr CFMutableAttributedStringRef, range_ CFRange, replacement CFDictionaryRef, ...)
- func CFBagAddValue(theBag CFMutableBagRef, value unsafe.Pointer)
- func CFBagApplyFunction(theBag CFBagRef, applier CFBagApplierFunction, context unsafe.Pointer)
- func CFBagContainsValue(theBag CFBagRef, value unsafe.Pointer) bool
- func CFBagGetCount(theBag CFBagRef) int
- func CFBagGetCountOfValue(theBag CFBagRef, value unsafe.Pointer) int
- func CFBagGetTypeID() uint
- func CFBagGetValue(theBag CFBagRef, value unsafe.Pointer) unsafe.Pointer
- func CFBagGetValueIfPresent(theBag CFBagRef, candidate unsafe.Pointer, value unsafe.Pointer) bool
- func CFBagGetValues(theBag CFBagRef, values unsafe.Pointer)
- func CFBagRemoveAllValues(theBag CFMutableBagRef)
- func CFBagRemoveValue(theBag CFMutableBagRef, value unsafe.Pointer)
- func CFBagReplaceValue(theBag CFMutableBagRef, value unsafe.Pointer)
- func CFBagSetValue(theBag CFMutableBagRef, value unsafe.Pointer)
- func CFBinaryHeapAddValue(heap CFBinaryHeapRef, value unsafe.Pointer)
- func CFBinaryHeapApplyFunction(heap CFBinaryHeapRef, applier CFBinaryHeapApplierFunction, ...)
- func CFBinaryHeapContainsValue(heap CFBinaryHeapRef, value unsafe.Pointer) bool
- func CFBinaryHeapGetCount(heap CFBinaryHeapRef) int
- func CFBinaryHeapGetCountOfValue(heap CFBinaryHeapRef, value unsafe.Pointer) int
- func CFBinaryHeapGetMinimum(heap CFBinaryHeapRef) unsafe.Pointer
- func CFBinaryHeapGetMinimumIfPresent(heap CFBinaryHeapRef, value unsafe.Pointer) bool
- func CFBinaryHeapGetTypeID() uint
- func CFBinaryHeapGetValues(heap CFBinaryHeapRef, values unsafe.Pointer)
- func CFBinaryHeapRemoveAllValues(heap CFBinaryHeapRef)
- func CFBinaryHeapRemoveMinimumValue(heap CFBinaryHeapRef)
- func CFBitVectorContainsBit(bv CFBitVectorRef, range_ CFRange, value CFBit) bool
- func CFBitVectorFlipBitAtIndex(bv CFMutableBitVectorRef, idx int)
- func CFBitVectorFlipBits(bv CFMutableBitVectorRef, range_ CFRange)
- func CFBitVectorGetBits(bv CFBitVectorRef, range_ CFRange, bytes *uint8)
- func CFBitVectorGetCount(bv CFBitVectorRef) int
- func CFBitVectorGetCountOfBit(bv CFBitVectorRef, range_ CFRange, value CFBit) int
- func CFBitVectorGetFirstIndexOfBit(bv CFBitVectorRef, range_ CFRange, value CFBit) int
- func CFBitVectorGetLastIndexOfBit(bv CFBitVectorRef, range_ CFRange, value CFBit) int
- func CFBitVectorGetTypeID() uint
- func CFBitVectorSetAllBits(bv CFMutableBitVectorRef, value CFBit)
- func CFBitVectorSetBitAtIndex(bv CFMutableBitVectorRef, idx int, value CFBit)
- func CFBitVectorSetBits(bv CFMutableBitVectorRef, range_ CFRange, value CFBit)
- func CFBitVectorSetCount(bv CFMutableBitVectorRef, count int)
- func CFBooleanGetTypeID() uint
- func CFBooleanGetValue(boolean CFBooleanRef) bool
- func CFBundleGetDataPointerForName(bundle CFBundleRef, symbolName CFStringRef) unsafe.Pointer
- func CFBundleGetDataPointersForNames(bundle CFBundleRef, symbolNames CFArrayRef, stbl unsafe.Pointer)
- func CFBundleGetFunctionPointerForName(bundle CFBundleRef, functionName CFStringRef) unsafe.Pointer
- func CFBundleGetFunctionPointersForNames(bundle CFBundleRef, functionNames CFArrayRef, ftbl unsafe.Pointer)
- func CFBundleGetPackageInfo(bundle CFBundleRef, packageType *uint32, packageCreator *uint32)
- func CFBundleGetPackageInfoInDirectory(url CFURLRef, packageType *uint32, packageCreator *uint32) bool
- func CFBundleGetTypeID() uint
- func CFBundleGetVersionNumber(bundle CFBundleRef) uint32
- func CFBundleIsArchitectureLoadable(arch int32) bool
- func CFBundleIsExecutableLoadable(bundle CFBundleRef) bool
- func CFBundleIsExecutableLoadableForURL(url CFURLRef) bool
- func CFBundleIsExecutableLoaded(bundle CFBundleRef) bool
- func CFBundleLoadExecutable(bundle CFBundleRef) bool
- func CFBundleLoadExecutableAndReturnError(bundle CFBundleRef, err *CFErrorRef) bool
- func CFBundlePreflightExecutable(bundle CFBundleRef, err *CFErrorRef) bool
- func CFBundleUnloadExecutable(bundle CFBundleRef)
- func CFCalendarAddComponents(calendar CFCalendarRef, at *CFAbsoluteTime, options uint64, ...) bool
- func CFCalendarComposeAbsoluteTime(calendar CFCalendarRef, at *CFAbsoluteTime, componentDesc string) bool
- func CFCalendarDecomposeAbsoluteTime(calendar CFCalendarRef, at CFAbsoluteTime, componentDesc string) bool
- func CFCalendarGetComponentDifference(calendar CFCalendarRef, startingAT CFAbsoluteTime, resultAT CFAbsoluteTime, ...) bool
- func CFCalendarGetFirstWeekday(calendar CFCalendarRef) int
- func CFCalendarGetMinimumDaysInFirstWeek(calendar CFCalendarRef) int
- func CFCalendarGetOrdinalityOfUnit(calendar CFCalendarRef, smallerUnit CFCalendarUnit, biggerUnit CFCalendarUnit, ...) int
- func CFCalendarGetTimeRangeOfUnit(calendar CFCalendarRef, unit CFCalendarUnit, at CFAbsoluteTime, ...) bool
- func CFCalendarGetTypeID() uint
- func CFCalendarSetFirstWeekday(calendar CFCalendarRef, wkdy int)
- func CFCalendarSetLocale(calendar CFCalendarRef, locale CFLocaleRef)
- func CFCalendarSetMinimumDaysInFirstWeek(calendar CFCalendarRef, mwd int)
- func CFCalendarSetTimeZone(calendar CFCalendarRef, tz CFTimeZoneRef)
- func CFCharacterSetAddCharactersInRange(theSet CFMutableCharacterSetRef, theRange CFRange)
- func CFCharacterSetAddCharactersInString(theSet CFMutableCharacterSetRef, theString CFStringRef)
- func CFCharacterSetGetTypeID() uint
- func CFCharacterSetHasMemberInPlane(theSet CFCharacterSetRef, thePlane int) bool
- func CFCharacterSetIntersect(theSet CFMutableCharacterSetRef, theOtherSet CFCharacterSetRef)
- func CFCharacterSetInvert(theSet CFMutableCharacterSetRef)
- func CFCharacterSetIsCharacterMember(theSet CFCharacterSetRef, theChar uint16) bool
- func CFCharacterSetIsLongCharacterMember(theSet CFCharacterSetRef, theChar uint32) bool
- func CFCharacterSetIsSupersetOfSet(theSet CFCharacterSetRef, theOtherset CFCharacterSetRef) bool
- func CFCharacterSetRemoveCharactersInRange(theSet CFMutableCharacterSetRef, theRange CFRange)
- func CFCharacterSetRemoveCharactersInString(theSet CFMutableCharacterSetRef, theString CFStringRef)
- func CFCharacterSetUnion(theSet CFMutableCharacterSetRef, theOtherSet CFCharacterSetRef)
- func CFDataAppendBytes(theData CFMutableDataRef, bytes *uint8, length int)
- func CFDataDeleteBytes(theData CFMutableDataRef, range_ CFRange)
- func CFDataGetBytePtr(theData CFDataRef) *uint8
- func CFDataGetBytes(theData CFDataRef, range_ CFRange, buffer *uint8)
- func CFDataGetLength(theData CFDataRef) int
- func CFDataGetMutableBytePtr(theData CFMutableDataRef) *uint8
- func CFDataGetTypeID() uint
- func CFDataIncreaseLength(theData CFMutableDataRef, extraLength int)
- func CFDataReplaceBytes(theData CFMutableDataRef, range_ CFRange, newBytes *uint8, newLength int)
- func CFDataSetLength(theData CFMutableDataRef, length int)
- func CFDateFormatterGetAbsoluteTimeFromString(formatter CFDateFormatterRef, string_ CFStringRef, rangep *CFRange, ...) bool
- func CFDateFormatterGetTypeID() uint
- func CFDateFormatterSetFormat(formatter CFDateFormatterRef, formatString CFStringRef)
- func CFDateFormatterSetProperty(formatter CFDateFormatterRef, key CFStringRef, value CFTypeRef)
- func CFDateGetTimeIntervalSinceDate(theDate CFDateRef, otherDate CFDateRef) float64
- func CFDateGetTypeID() uint
- func CFDictionaryAddValue(theDict CFMutableDictionaryRef, key unsafe.Pointer, value unsafe.Pointer)
- func CFDictionaryApplyFunction(theDict CFDictionaryRef, applier CFDictionaryApplierFunction, ...)
- func CFDictionaryContainsKey(theDict CFDictionaryRef, key unsafe.Pointer) bool
- func CFDictionaryContainsValue(theDict CFDictionaryRef, value unsafe.Pointer) bool
- func CFDictionaryGetCount(theDict CFDictionaryRef) int
- func CFDictionaryGetCountOfKey(theDict CFDictionaryRef, key unsafe.Pointer) int
- func CFDictionaryGetCountOfValue(theDict CFDictionaryRef, value unsafe.Pointer) int
- func CFDictionaryGetKeysAndValues(theDict CFDictionaryRef, keys unsafe.Pointer, values unsafe.Pointer)
- func CFDictionaryGetTypeID() uint
- func CFDictionaryGetValue(theDict CFDictionaryRef, key unsafe.Pointer) unsafe.Pointer
- func CFDictionaryGetValueIfPresent(theDict CFDictionaryRef, key unsafe.Pointer, value unsafe.Pointer) bool
- func CFDictionaryRemoveAllValues(theDict CFMutableDictionaryRef)
- func CFDictionaryRemoveValue(theDict CFMutableDictionaryRef, key unsafe.Pointer)
- func CFDictionaryReplaceValue(theDict CFMutableDictionaryRef, key unsafe.Pointer, value unsafe.Pointer)
- func CFDictionarySetValue(theDict CFMutableDictionaryRef, key unsafe.Pointer, value unsafe.Pointer)
- func CFEqual(cf1 CFTypeRef, cf2 CFTypeRef) bool
- func CFErrorGetCode(err CFErrorRef) int
- func CFErrorGetTypeID() uint
- func CFFileDescriptorDisableCallBacks(f CFFileDescriptorRef, callBackTypes uint64)
- func CFFileDescriptorEnableCallBacks(f CFFileDescriptorRef, callBackTypes uint64)
- func CFFileDescriptorGetContext(f CFFileDescriptorRef, context *CFFileDescriptorContext)
- func CFFileDescriptorGetTypeID() uint
- func CFFileDescriptorInvalidate(f CFFileDescriptorRef)
- func CFFileDescriptorIsValid(f CFFileDescriptorRef) bool
- func CFFileSecurityClearProperties(fileSec CFFileSecurityRef, clearPropertyMask CFFileSecurityClearOptions) bool
- func CFFileSecurityCopyAccessControlList(fileSec CFFileSecurityRef, accessControlList uintptr) bool
- func CFFileSecurityCopyGroupUUID(fileSec CFFileSecurityRef, groupUUID *CFUUIDRef) bool
- func CFFileSecurityCopyOwnerUUID(fileSec CFFileSecurityRef, ownerUUID *CFUUIDRef) bool
- func CFFileSecurityGetGroup(fileSec CFFileSecurityRef, group *uint32) bool
- func CFFileSecurityGetMode(fileSec CFFileSecurityRef, mode *uint16) bool
- func CFFileSecurityGetOwner(fileSec CFFileSecurityRef, owner *uint32) bool
- func CFFileSecurityGetTypeID() uint
- func CFFileSecuritySetAccessControlList(fileSec CFFileSecurityRef, accessControlList unsafe.Pointer) bool
- func CFFileSecuritySetGroup(fileSec CFFileSecurityRef, group uint32) bool
- func CFFileSecuritySetGroupUUID(fileSec CFFileSecurityRef, groupUUID CFUUIDRef) bool
- func CFFileSecuritySetMode(fileSec CFFileSecurityRef, mode uint16) bool
- func CFFileSecuritySetOwner(fileSec CFFileSecurityRef, owner uint32) bool
- func CFFileSecuritySetOwnerUUID(fileSec CFFileSecurityRef, ownerUUID CFUUIDRef) bool
- func CFGetRetainCount(cf CFTypeRef) int
- func CFGetTypeID(cf CFTypeRef) uint
- func CFHash(cf CFTypeRef) uint
- func CFLocaleGetTypeID() uint
- func CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier(localeIdentifier CFLocaleIdentifier) uint32
- func CFMachPortGetContext(port CFMachPortRef, context *CFMachPortContext)
- func CFMachPortGetPort(port CFMachPortRef) uint32
- func CFMachPortGetTypeID() uint
- func CFMachPortInvalidate(port CFMachPortRef)
- func CFMachPortIsValid(port CFMachPortRef) bool
- func CFMachPortSetInvalidationCallBack(port CFMachPortRef, callout CFMachPortInvalidationCallBack)
- func CFMessagePortGetContext(ms CFMessagePortRef, context *CFMessagePortContext)
- func CFMessagePortGetTypeID() uint
- func CFMessagePortInvalidate(ms CFMessagePortRef)
- func CFMessagePortIsRemote(ms CFMessagePortRef) bool
- func CFMessagePortIsValid(ms CFMessagePortRef) bool
- func CFMessagePortSendRequest(remote CFMessagePortRef, msgid int32, data CFDataRef, sendTimeout float64, ...) int32
- func CFMessagePortSetDispatchQueue(ms CFMessagePortRef, queue dispatch.Queue)
- func CFMessagePortSetInvalidationCallBack(ms CFMessagePortRef, callout CFMessagePortInvalidationCallBack)
- func CFMessagePortSetName(ms CFMessagePortRef, newName CFStringRef) bool
- func CFNotificationCenterAddObserver(center CFNotificationCenterRef, observer unsafe.Pointer, ...)
- func CFNotificationCenterGetTypeID() uint
- func CFNotificationCenterPostNotification(center CFNotificationCenterRef, name CFNotificationName, object unsafe.Pointer, ...)
- func CFNotificationCenterPostNotificationWithOptions(center CFNotificationCenterRef, name CFNotificationName, object unsafe.Pointer, ...)
- func CFNotificationCenterRemoveEveryObserver(center CFNotificationCenterRef, observer unsafe.Pointer)
- func CFNotificationCenterRemoveObserver(center CFNotificationCenterRef, observer unsafe.Pointer, ...)
- func CFNullGetTypeID() uint
- func CFNumberFormatterGetDecimalInfoForCurrencyCode(currencyCode CFStringRef, defaultFractionDigits *int32, ...) bool
- func CFNumberFormatterGetTypeID() uint
- func CFNumberFormatterGetValueFromString(formatter CFNumberFormatterRef, string_ CFStringRef, rangep *CFRange, ...) bool
- func CFNumberFormatterSetFormat(formatter CFNumberFormatterRef, formatString CFStringRef)
- func CFNumberFormatterSetProperty(formatter CFNumberFormatterRef, key CFNumberFormatterKey, value CFTypeRef)
- func CFNumberGetByteSize(number CFNumberRef) int
- func CFNumberGetTypeID() uint
- func CFNumberGetValue(number CFNumberRef, theType CFNumberType, valuePtr unsafe.Pointer) bool
- func CFNumberIsFloatType(number CFNumberRef) bool
- func CFPlugInAddInstanceForFactory(factoryID CFUUIDRef)
- func CFPlugInGetTypeID() uint
- func CFPlugInInstanceCreate(allocator CFAllocatorRef, factoryUUID CFUUIDRef, typeUUID CFUUIDRef) unsafe.Pointer
- func CFPlugInInstanceGetInstanceData(instance CFPlugInInstanceRef) unsafe.Pointer
- func CFPlugInInstanceGetInterfaceFunctionTable(instance CFPlugInInstanceRef, interfaceName CFStringRef, ftbl unsafe.Pointer) bool
- func CFPlugInInstanceGetTypeID() uint
- func CFPlugInIsLoadOnDemand(plugIn CFPlugInRef) bool
- func CFPlugInRegisterFactoryFunction(factoryUUID CFUUIDRef, func_ CFPlugInFactoryFunction) bool
- func CFPlugInRegisterFactoryFunctionByName(factoryUUID CFUUIDRef, plugIn CFPlugInRef, functionName CFStringRef) bool
- func CFPlugInRegisterPlugInType(factoryUUID CFUUIDRef, typeUUID CFUUIDRef) bool
- func CFPlugInRemoveInstanceForFactory(factoryID CFUUIDRef)
- func CFPlugInSetLoadOnDemand(plugIn CFPlugInRef, flag bool)
- func CFPlugInUnregisterFactory(factoryUUID CFUUIDRef) bool
- func CFPlugInUnregisterPlugInType(factoryUUID CFUUIDRef, typeUUID CFUUIDRef) bool
- func CFPreferencesAddSuitePreferencesToApp(applicationID CFStringRef, suiteID CFStringRef)
- func CFPreferencesAppSynchronize(applicationID CFStringRef) bool
- func CFPreferencesAppValueIsForced(key CFStringRef, applicationID CFStringRef) bool
- func CFPreferencesGetAppBooleanValue(key CFStringRef, applicationID CFStringRef, keyExistsAndHasValidFormat *bool) bool
- func CFPreferencesGetAppIntegerValue(key CFStringRef, applicationID CFStringRef, keyExistsAndHasValidFormat *bool) int
- func CFPreferencesRemoveSuitePreferencesFromApp(applicationID CFStringRef, suiteID CFStringRef)
- func CFPreferencesSetAppValue(key CFStringRef, value CFPropertyListRef, applicationID CFStringRef)
- func CFPreferencesSetMultiple(keysToSet CFDictionaryRef, keysToRemove CFArrayRef, applicationID CFStringRef, ...)
- func CFPreferencesSetValue(key CFStringRef, value CFPropertyListRef, applicationID CFStringRef, ...)
- func CFPreferencesSynchronize(applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) bool
- func CFPropertyListIsValid(plist CFPropertyListRef, format CFPropertyListFormat) bool
- func CFPropertyListWrite(propertyList CFPropertyListRef, stream CFWriteStreamRef, ...) int
- func CFReadStreamClose(stream CFReadStreamRef)
- func CFReadStreamCopyDispatchQueue(stream CFReadStreamRef) dispatch.Queue
- func CFReadStreamGetBuffer(stream CFReadStreamRef, maxBytesToRead int, numBytesRead *int) *uint8
- func CFReadStreamGetTypeID() uint
- func CFReadStreamHasBytesAvailable(stream CFReadStreamRef) bool
- func CFReadStreamOpen(stream CFReadStreamRef) bool
- func CFReadStreamRead(stream CFReadStreamRef, buffer *uint8, bufferLength int) int
- func CFReadStreamScheduleWithRunLoop(stream CFReadStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode)
- func CFReadStreamSetClient(stream CFReadStreamRef, streamEvents uint64, ...) bool
- func CFReadStreamSetDispatchQueue(stream CFReadStreamRef, q dispatch.Queue)
- func CFReadStreamSetProperty(stream CFReadStreamRef, propertyName CFStreamPropertyKey, ...) bool
- func CFReadStreamUnscheduleFromRunLoop(stream CFReadStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode)
- func CFRelease(cf CFTypeRef)
- func CFRunLoopAddCommonMode(rl CFRunLoopRef, mode CFRunLoopMode)
- func CFRunLoopAddObserver(rl CFRunLoopRef, observer CFRunLoopObserverRef, mode CFRunLoopMode)
- func CFRunLoopAddSource(rl CFRunLoopRef, source CFRunLoopSourceRef, mode CFRunLoopMode)
- func CFRunLoopAddTimer(rl CFRunLoopRef, timer CFRunLoopTimerRef, mode CFRunLoopMode)
- func CFRunLoopContainsObserver(rl CFRunLoopRef, observer CFRunLoopObserverRef, mode CFRunLoopMode) bool
- func CFRunLoopContainsSource(rl CFRunLoopRef, source CFRunLoopSourceRef, mode CFRunLoopMode) bool
- func CFRunLoopContainsTimer(rl CFRunLoopRef, timer CFRunLoopTimerRef, mode CFRunLoopMode) bool
- func CFRunLoopGetTypeID() uint
- func CFRunLoopIsWaiting(rl CFRunLoopRef) bool
- func CFRunLoopObserverDoesRepeat(observer CFRunLoopObserverRef) bool
- func CFRunLoopObserverGetActivities(observer CFRunLoopObserverRef) uint64
- func CFRunLoopObserverGetContext(observer CFRunLoopObserverRef, context *CFRunLoopObserverContext)
- func CFRunLoopObserverGetOrder(observer CFRunLoopObserverRef) int
- func CFRunLoopObserverGetTypeID() uint
- func CFRunLoopObserverInvalidate(observer CFRunLoopObserverRef)
- func CFRunLoopObserverIsValid(observer CFRunLoopObserverRef) bool
- func CFRunLoopPerformBlock(rl CFRunLoopRef, mode CFTypeRef)
- func CFRunLoopRemoveObserver(rl CFRunLoopRef, observer CFRunLoopObserverRef, mode CFRunLoopMode)
- func CFRunLoopRemoveSource(rl CFRunLoopRef, source CFRunLoopSourceRef, mode CFRunLoopMode)
- func CFRunLoopRemoveTimer(rl CFRunLoopRef, timer CFRunLoopTimerRef, mode CFRunLoopMode)
- func CFRunLoopRun()
- func CFRunLoopSourceGetContext(source CFRunLoopSourceRef, context *CFRunLoopSourceContext)
- func CFRunLoopSourceGetOrder(source CFRunLoopSourceRef) int
- func CFRunLoopSourceGetTypeID() uint
- func CFRunLoopSourceInvalidate(source CFRunLoopSourceRef)
- func CFRunLoopSourceIsValid(source CFRunLoopSourceRef) bool
- func CFRunLoopSourceSignal(source CFRunLoopSourceRef)
- func CFRunLoopStop(rl CFRunLoopRef)
- func CFRunLoopTimerDoesRepeat(timer CFRunLoopTimerRef) bool
- func CFRunLoopTimerGetContext(timer CFRunLoopTimerRef, context *CFRunLoopTimerContext)
- func CFRunLoopTimerGetInterval(timer CFRunLoopTimerRef) float64
- func CFRunLoopTimerGetOrder(timer CFRunLoopTimerRef) int
- func CFRunLoopTimerGetTolerance(timer CFRunLoopTimerRef) float64
- func CFRunLoopTimerGetTypeID() uint
- func CFRunLoopTimerInvalidate(timer CFRunLoopTimerRef)
- func CFRunLoopTimerIsValid(timer CFRunLoopTimerRef) bool
- func CFRunLoopTimerSetNextFireDate(timer CFRunLoopTimerRef, fireDate CFAbsoluteTime)
- func CFRunLoopTimerSetTolerance(timer CFRunLoopTimerRef, tolerance float64)
- func CFRunLoopWakeUp(rl CFRunLoopRef)
- func CFSetAddValue(theSet CFMutableSetRef, value unsafe.Pointer)
- func CFSetApplyFunction(theSet CFSetRef, applier CFSetApplierFunction, context unsafe.Pointer)
- func CFSetContainsValue(theSet CFSetRef, value unsafe.Pointer) bool
- func CFSetGetCount(theSet CFSetRef) int
- func CFSetGetCountOfValue(theSet CFSetRef, value unsafe.Pointer) int
- func CFSetGetTypeID() uint
- func CFSetGetValue(theSet CFSetRef, value unsafe.Pointer) unsafe.Pointer
- func CFSetGetValueIfPresent(theSet CFSetRef, candidate unsafe.Pointer, value unsafe.Pointer) bool
- func CFSetGetValues(theSet CFSetRef, values unsafe.Pointer)
- func CFSetRemoveAllValues(theSet CFMutableSetRef)
- func CFSetRemoveValue(theSet CFMutableSetRef, value unsafe.Pointer)
- func CFSetReplaceValue(theSet CFMutableSetRef, value unsafe.Pointer)
- func CFSetSetValue(theSet CFMutableSetRef, value unsafe.Pointer)
- func CFShow(obj CFTypeRef)
- func CFShowStr(str CFStringRef)
- func CFSocketDisableCallBacks(s CFSocketRef, callBackTypes uint64)
- func CFSocketEnableCallBacks(s CFSocketRef, callBackTypes uint64)
- func CFSocketGetContext(s CFSocketRef, context *CFSocketContext)
- func CFSocketGetDefaultNameRegistryPortNumber() uint16
- func CFSocketGetSocketFlags(s CFSocketRef) uint64
- func CFSocketGetTypeID() uint
- func CFSocketInvalidate(s CFSocketRef)
- func CFSocketIsValid(s CFSocketRef) bool
- func CFSocketSetDefaultNameRegistryPortNumber(port uint16)
- func CFSocketSetSocketFlags(s CFSocketRef, flags uint64)
- func CFStreamCreateBoundPair(alloc CFAllocatorRef, readStream *CFReadStreamRef, ...)
- func CFStreamCreatePairWithPeerSocketSignature(alloc CFAllocatorRef, signature *CFSocketSignature, ...)deprecated
- func CFStreamCreatePairWithSocket(alloc CFAllocatorRef, sock CFSocketNativeHandle, readStream *CFReadStreamRef, ...)deprecated
- func CFStreamCreatePairWithSocketToHost(alloc CFAllocatorRef, host CFStringRef, port uint32, ...)deprecated
- func CFStringAppend(theString CFMutableStringRef, appendedString CFStringRef)
- func CFStringAppendCString(theString CFMutableStringRef, cStr string, encoding uint32)
- func CFStringAppendCharacters(theString CFMutableStringRef, chars *uint16, numChars int)
- func CFStringAppendFormat(theString CFMutableStringRef, formatOptions CFDictionaryRef, ...)
- func CFStringAppendFormatAndArguments(theString CFMutableStringRef, formatOptions CFDictionaryRef, ...)
- func CFStringAppendPascalString(theString CFMutableStringRef, pStr unsafe.Pointer, encoding uint32)
- func CFStringCapitalize(theString CFMutableStringRef, locale CFLocaleRef)
- func CFStringConvertEncodingToNSStringEncoding(encoding uint32) uint
- func CFStringConvertEncodingToWindowsCodepage(encoding uint32) uint32
- func CFStringConvertIANACharSetNameToEncoding(theString CFStringRef) uint32
- func CFStringConvertNSStringEncodingToEncoding(encoding uint) uint32
- func CFStringConvertWindowsCodepageToEncoding(codepage uint32) uint32
- func CFStringDelete(theString CFMutableStringRef, range_ CFRange)
- func CFStringFindAndReplace(theString CFMutableStringRef, stringToFind CFStringRef, ...) int
- func CFStringFindCharacterFromSet(theString CFStringRef, theSet CFCharacterSetRef, rangeToSearch CFRange, ...) bool
- func CFStringFindWithOptions(theString CFStringRef, stringToFind CFStringRef, rangeToSearch CFRange, ...) bool
- func CFStringFindWithOptionsAndLocale(theString CFStringRef, stringToFind CFStringRef, rangeToSearch CFRange, ...) bool
- func CFStringFold(theString CFMutableStringRef, theFlags CFStringCompareFlags, ...)
- func CFStringGetBytes(theString CFStringRef, range_ CFRange, encoding uint32, lossByte uint8, ...) int
- func CFStringGetCString(theString CFStringRef, buffer *byte, bufferSize int, encoding uint32) bool
- func CFStringGetCStringPtr(theString CFStringRef, encoding uint32) *byte
- func CFStringGetCharacterAtIndex(theString CFStringRef, idx int) uint16
- func CFStringGetCharacters(theString CFStringRef, range_ CFRange, buffer *uint16)
- func CFStringGetCharactersPtr(theString CFStringRef) *uint16
- func CFStringGetDoubleValue(str CFStringRef) float64
- func CFStringGetFastestEncoding(theString CFStringRef) uint32
- func CFStringGetFileSystemRepresentation(string_ CFStringRef, buffer *byte, maxBufLen int) bool
- func CFStringGetHyphenationLocationBeforeIndex(string_ CFStringRef, location int, limitRange CFRange, options uint64, ...) int
- func CFStringGetIntValue(str CFStringRef) int32
- func CFStringGetLength(theString CFStringRef) int
- func CFStringGetLineBounds(theString CFStringRef, range_ CFRange, lineBeginIndex *int, lineEndIndex *int, ...)
- func CFStringGetListOfAvailableEncodings() *uint32
- func CFStringGetMaximumSizeForEncoding(length int, encoding uint32) int
- func CFStringGetMaximumSizeOfFileSystemRepresentation(string_ CFStringRef) int
- func CFStringGetMostCompatibleMacStringEncoding(encoding uint32) uint32
- func CFStringGetParagraphBounds(string_ CFStringRef, range_ CFRange, parBeginIndex *int, parEndIndex *int, ...)
- func CFStringGetPascalString(theString CFStringRef, buffer *byte, bufferSize int, encoding uint32) bool
- func CFStringGetPascalStringPtr(theString CFStringRef, encoding uint32) *byte
- func CFStringGetSmallestEncoding(theString CFStringRef) uint32
- func CFStringGetSystemEncoding() uint32
- func CFStringGetTypeID() uint
- func CFStringHasPrefix(theString CFStringRef, prefix CFStringRef) bool
- func CFStringHasSuffix(theString CFStringRef, suffix CFStringRef) bool
- func CFStringInsert(str CFMutableStringRef, idx int, insertedStr CFStringRef)
- func CFStringIsEncodingAvailable(encoding uint32) bool
- func CFStringIsHyphenationAvailableForLocale(locale CFLocaleRef) bool
- func CFStringLowercase(theString CFMutableStringRef, locale CFLocaleRef)
- func CFStringNormalize(theString CFMutableStringRef, theForm CFStringNormalizationForm)
- func CFStringPad(theString CFMutableStringRef, padString CFStringRef, length int, ...)
- func CFStringReplace(theString CFMutableStringRef, range_ CFRange, replacement CFStringRef)
- func CFStringReplaceAll(theString CFMutableStringRef, replacement CFStringRef)
- func CFStringSetExternalCharactersNoCopy(theString CFMutableStringRef, chars *uint16, length int, capacity int)
- func CFStringTokenizerGetCurrentSubTokens(tokenizer CFStringTokenizerRef, ranges *CFRange, maxRangeLength int, ...) int
- func CFStringTokenizerGetTypeID() uint
- func CFStringTokenizerSetString(tokenizer CFStringTokenizerRef, string_ CFStringRef, range_ CFRange)
- func CFStringTransform(string_ CFMutableStringRef, range_ *CFRange, transform CFStringRef, ...) bool
- func CFStringTrim(theString CFMutableStringRef, trimString CFStringRef)
- func CFStringTrimWhitespace(theString CFMutableStringRef)
- func CFStringUppercase(theString CFMutableStringRef, locale CFLocaleRef)
- func CFTimeZoneGetDaylightSavingTimeOffset(tz CFTimeZoneRef, at CFAbsoluteTime) float64
- func CFTimeZoneGetSecondsFromGMT(tz CFTimeZoneRef, at CFAbsoluteTime) float64
- func CFTimeZoneGetTypeID() uint
- func CFTimeZoneIsDaylightSavingTime(tz CFTimeZoneRef, at CFAbsoluteTime) bool
- func CFTimeZoneResetSystem()
- func CFTimeZoneSetAbbreviationDictionary(dict CFDictionaryRef)
- func CFTimeZoneSetDefault(tz CFTimeZoneRef)
- func CFTreeAppendChild(tree CFTreeRef, newChild CFTreeRef)
- func CFTreeApplyFunctionToChildren(tree CFTreeRef, applier CFTreeApplierFunction, context unsafe.Pointer)
- func CFTreeGetChildCount(tree CFTreeRef) int
- func CFTreeGetChildren(tree CFTreeRef, children *CFTreeRef)
- func CFTreeGetContext(tree CFTreeRef, context *CFTreeContext)
- func CFTreeGetTypeID() uint
- func CFTreeInsertSibling(tree CFTreeRef, newSibling CFTreeRef)
- func CFTreePrependChild(tree CFTreeRef, newChild CFTreeRef)
- func CFTreeRemove(tree CFTreeRef)
- func CFTreeRemoveAllChildren(tree CFTreeRef)
- func CFTreeSetContext(tree CFTreeRef, context *CFTreeContext)
- func CFTreeSortChildren(tree CFTreeRef, comparator CFComparatorFunction, context unsafe.Pointer)
- func CFURLCanBeDecomposed(anURL CFURLRef) bool
- func CFURLClearResourcePropertyCache(url CFURLRef)
- func CFURLClearResourcePropertyCacheForKey(url CFURLRef, key CFStringRef)
- func CFURLCopyResourcePropertyForKey(url CFURLRef, key CFStringRef, propertyValueTypeRefPtr unsafe.Pointer, ...) bool
- func CFURLEnumeratorGetDescendentLevel(enumerator CFURLEnumeratorRef) int
- func CFURLEnumeratorGetTypeID() uint
- func CFURLEnumeratorSkipDescendents(enumerator CFURLEnumeratorRef)
- func CFURLGetBytes(url CFURLRef, buffer *uint8, bufferLength int) int
- func CFURLGetFileSystemRepresentation(url CFURLRef, resolveAgainstBase bool, buffer *uint8, maxBufLen int) bool
- func CFURLGetPortNumber(anURL CFURLRef) int32
- func CFURLGetTypeID() uint
- func CFURLHasDirectoryPath(anURL CFURLRef) bool
- func CFURLIsFileReferenceURL(url CFURLRef) bool
- func CFURLResourceIsReachable(url CFURLRef, err *CFErrorRef) bool
- func CFURLSetResourcePropertiesForKeys(url CFURLRef, keyedPropertyValues CFDictionaryRef, err *CFErrorRef) bool
- func CFURLSetResourcePropertyForKey(url CFURLRef, key CFStringRef, propertyValue CFTypeRef, err *CFErrorRef) bool
- func CFURLSetTemporaryResourcePropertyForKey(url CFURLRef, key CFStringRef, propertyValue CFTypeRef)
- func CFURLStartAccessingSecurityScopedResource(url CFURLRef) bool
- func CFURLStopAccessingSecurityScopedResource(url CFURLRef)
- func CFURLWriteBookmarkDataToFile(bookmarkRef CFDataRef, fileURL CFURLRef, ...) bool
- func CFUUIDGetTypeID() uint
- func CFUserNotificationCancel(userNotification CFUserNotificationRef) int32
- func CFUserNotificationDisplayAlert(timeout float64, flags uint64, iconURL CFURLRef, soundURL CFURLRef, ...) int32
- func CFUserNotificationDisplayNotice(timeout float64, flags uint64, iconURL CFURLRef, soundURL CFURLRef, ...) int32
- func CFUserNotificationGetTypeID() uint
- func CFUserNotificationReceiveResponse(userNotification CFUserNotificationRef, timeout float64, responseFlags *uint64) int32
- func CFUserNotificationUpdate(userNotification CFUserNotificationRef, timeout float64, flags uint64, ...) int32
- func CFWriteStreamCanAcceptBytes(stream CFWriteStreamRef) bool
- func CFWriteStreamClose(stream CFWriteStreamRef)
- func CFWriteStreamCopyDispatchQueue(stream CFWriteStreamRef) dispatch.Queue
- func CFWriteStreamGetTypeID() uint
- func CFWriteStreamOpen(stream CFWriteStreamRef) bool
- func CFWriteStreamScheduleWithRunLoop(stream CFWriteStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode)
- func CFWriteStreamSetClient(stream CFWriteStreamRef, streamEvents uint64, ...) bool
- func CFWriteStreamSetDispatchQueue(stream CFWriteStreamRef, q dispatch.Queue)
- func CFWriteStreamSetProperty(stream CFWriteStreamRef, propertyName CFStreamPropertyKey, ...) bool
- func CFWriteStreamUnscheduleFromRunLoop(stream CFWriteStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode)
- func CFWriteStreamWrite(stream CFWriteStreamRef, buffer *uint8, bufferLength int) int
- func CFXMLNodeCreate(alloc CFAllocatorRef, xmlType uint32, dataString CFStringRef, ...) unsafe.Pointerdeprecated
- func CFXMLNodeCreateCopy(alloc CFAllocatorRef, origNode unsafe.Pointer) unsafe.Pointerdeprecated
- func CFXMLNodeGetInfoPtr(node unsafe.Pointer) unsafe.Pointerdeprecated
- func CFXMLNodeGetTypeCode(node unsafe.Pointer) uint32deprecated
- func CFXMLNodeGetTypeID() uintdeprecated
- func CFXMLNodeGetVersion(node unsafe.Pointer) intdeprecated
- func CFXMLParserAbort(parser CFXMLParserRef, errorCode CFXMLParserStatusCode, ...)deprecated
- func CFXMLParserGetCallBacks(parser CFXMLParserRef, callBacks *CFXMLParserCallBacks)deprecated
- func CFXMLParserGetContext(parser CFXMLParserRef, context *CFXMLParserContext)deprecated
- func CFXMLParserGetDocument(parser CFXMLParserRef) unsafe.Pointerdeprecated
- func CFXMLParserGetLineNumber(parser CFXMLParserRef) intdeprecated
- func CFXMLParserGetLocation(parser CFXMLParserRef) intdeprecated
- func CFXMLParserGetTypeID() uintdeprecated
- func CFXMLParserParse(parser CFXMLParserRef) booldeprecated
- func CFXMLTreeGetNode(xmlTree CFXMLTreeRef) unsafe.Pointerdeprecated
- type CFAbsoluteTime
- func CFAbsoluteTimeGetCurrent() CFAbsoluteTime
- func CFDateGetAbsoluteTime(theDate CFDateRef) CFAbsoluteTime
- func CFRunLoopGetNextTimerFireDate(rl CFRunLoopRef, mode CFRunLoopMode) CFAbsoluteTime
- func CFRunLoopTimerGetNextFireDate(timer CFRunLoopTimerRef) CFAbsoluteTime
- func CFTimeZoneGetNextDaylightSavingTimeTransition(tz CFTimeZoneRef, at CFAbsoluteTime) CFAbsoluteTime
- type CFAllocatorAllocateCallBack
- type CFAllocatorContext
- type CFAllocatorCopyDescriptionCallBack
- type CFAllocatorDeallocateCallBack
- type CFAllocatorPreferredSizeCallBack
- type CFAllocatorReallocateCallBack
- type CFAllocatorRef
- type CFAllocatorReleaseCallBack
- type CFAllocatorRetainCallBack
- type CFAllocatorTypeID
- type CFArrayApplierFunction
- type CFArrayCallBacks
- type CFArrayCopyDescriptionCallBack
- type CFArrayEqualCallBack
- type CFArrayRef
- func CFArrayCreate(allocator CFAllocatorRef, values unsafe.Pointer, numValues int, ...) CFArrayRef
- func CFArrayCreateCopy(allocator CFAllocatorRef, theArray CFArrayRef) CFArrayRef
- func CFBundleCopyBundleLocalizations(bundle CFBundleRef) CFArrayRef
- func CFBundleCopyExecutableArchitectures(bundle CFBundleRef) CFArrayRef
- func CFBundleCopyExecutableArchitecturesForURL(url CFURLRef) CFArrayRef
- func CFBundleCopyLocalizationsForPreferences(locArray CFArrayRef, prefArray CFArrayRef) CFArrayRef
- func CFBundleCopyLocalizationsForURL(url CFURLRef) CFArrayRef
- func CFBundleCopyPreferredLocalizationsFromArray(locArray CFArrayRef) CFArrayRef
- func CFBundleCopyResourceURLsOfType(bundle CFBundleRef, resourceType CFStringRef, subDirName CFStringRef) CFArrayRef
- func CFBundleCopyResourceURLsOfTypeForLocalization(bundle CFBundleRef, resourceType CFStringRef, subDirName CFStringRef, ...) CFArrayRef
- func CFBundleCopyResourceURLsOfTypeInDirectory(bundleURL CFURLRef, resourceType CFStringRef, subDirName CFStringRef) CFArrayRef
- func CFBundleCreateBundlesFromDirectory(allocator CFAllocatorRef, directoryURL CFURLRef, bundleType CFStringRef) CFArrayRef
- func CFBundleGetAllBundles() CFArrayRef
- func CFLocaleCopyAvailableLocaleIdentifiers() CFArrayRef
- func CFLocaleCopyCommonISOCurrencyCodes() CFArrayRef
- func CFLocaleCopyISOCountryCodes() CFArrayRef
- func CFLocaleCopyISOCurrencyCodes() CFArrayRef
- func CFLocaleCopyISOLanguageCodes() CFArrayRef
- func CFLocaleCopyPreferredLanguages() CFArrayRef
- func CFPlugInFindFactoriesForPlugInType(typeUUID CFUUIDRef) CFArrayRef
- func CFPlugInFindFactoriesForPlugInTypeInPlugIn(typeUUID CFUUIDRef, plugIn CFPlugInRef) CFArrayRef
- func CFPreferencesCopyKeyList(applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) CFArrayRef
- func CFRunLoopCopyAllModes(rl CFRunLoopRef) CFArrayRef
- func CFStringCreateArrayBySeparatingStrings(alloc CFAllocatorRef, theString CFStringRef, separatorString CFStringRef) CFArrayRef
- func CFStringCreateArrayWithFindResults(alloc CFAllocatorRef, theString CFStringRef, stringToFind CFStringRef, ...) CFArrayRef
- func CFTimeZoneCopyKnownNames() CFArrayRef
- type CFArrayReleaseCallBack
- type CFArrayRetainCallBack
- type CFAttributedString
- type CFAttributedStringRef
- func CFAttributedStringCreate(alloc CFAllocatorRef, str CFStringRef, attributes CFDictionaryRef) CFAttributedStringRef
- func CFAttributedStringCreateCopy(alloc CFAllocatorRef, aStr CFAttributedStringRef) CFAttributedStringRef
- func CFAttributedStringCreateWithSubstring(alloc CFAllocatorRef, aStr CFAttributedStringRef, range_ CFRange) CFAttributedStringRef
- type CFBagApplierFunction
- type CFBagCallBacks
- type CFBagCopyDescriptionCallBack
- type CFBagEqualCallBack
- type CFBagHashCallBack
- type CFBagRef
- type CFBagReleaseCallBack
- type CFBagRetainCallBack
- type CFBinaryHeapApplierFunction
- type CFBinaryHeapCallBacks
- type CFBinaryHeapCompareContext
- type CFBinaryHeapRef
- type CFBit
- type CFBitVectorRef
- type CFBooleanRef
- type CFBundle
- type CFBundleRef
- type CFBundleRefNum
- type CFByteOrder
- type CFCalendarIdentifier
- type CFCalendarRef
- type CFCalendarUnit
- type CFCharacterSet
- type CFCharacterSetPredefinedSet
- type CFCharacterSetRef
- func CFCharacterSetCreateCopy(alloc CFAllocatorRef, theSet CFCharacterSetRef) CFCharacterSetRef
- func CFCharacterSetCreateInvertedSet(alloc CFAllocatorRef, theSet CFCharacterSetRef) CFCharacterSetRef
- func CFCharacterSetCreateWithBitmapRepresentation(alloc CFAllocatorRef, theData CFDataRef) CFCharacterSetRef
- func CFCharacterSetCreateWithCharactersInRange(alloc CFAllocatorRef, theRange CFRange) CFCharacterSetRef
- func CFCharacterSetCreateWithCharactersInString(alloc CFAllocatorRef, theString CFStringRef) CFCharacterSetRef
- func CFCharacterSetGetPredefined(theSetIdentifier CFCharacterSetPredefinedSet) CFCharacterSetRef
- type CFComparatorFunction
- type CFComparisonResult
- func CFDateCompare(theDate CFDateRef, otherDate CFDateRef, context unsafe.Pointer) CFComparisonResult
- func CFNumberCompare(number CFNumberRef, otherNumber CFNumberRef, context unsafe.Pointer) CFComparisonResult
- func CFStringCompare(theString1 CFStringRef, theString2 CFStringRef, ...) CFComparisonResult
- func CFStringCompareWithOptions(theString1 CFStringRef, theString2 CFStringRef, rangeToCompare CFRange, ...) CFComparisonResult
- func CFStringCompareWithOptionsAndLocale(theString1 CFStringRef, theString2 CFStringRef, rangeToCompare CFRange, ...) CFComparisonResult
- type CFDataRef
- func CFCharacterSetCreateBitmapRepresentation(alloc CFAllocatorRef, theSet CFCharacterSetRef) CFDataRef
- func CFDataCreate(allocator CFAllocatorRef, bytes *uint8, length int) CFDataRef
- func CFDataCreateCopy(allocator CFAllocatorRef, theData CFDataRef) CFDataRef
- func CFDataCreateWithBytesNoCopy(allocator CFAllocatorRef, bytes *uint8, length int, ...) CFDataRef
- func CFPropertyListCreateData(allocator CFAllocatorRef, propertyList CFPropertyListRef, ...) CFDataRef
- func CFSocketCopyAddress(s CFSocketRef) CFDataRef
- func CFSocketCopyPeerAddress(s CFSocketRef) CFDataRef
- func CFStringCreateExternalRepresentation(alloc CFAllocatorRef, theString CFStringRef, encoding uint32, lossByte uint8) CFDataRef
- func CFTimeZoneGetData(tz CFTimeZoneRef) CFDataRef
- func CFURLCreateBookmarkData(allocator CFAllocatorRef, url CFURLRef, options CFURLBookmarkCreationOptions, ...) CFDataRef
- func CFURLCreateBookmarkDataFromFile(allocator CFAllocatorRef, fileURL CFURLRef, errorRef *CFErrorRef) CFDataRef
- func CFURLCreateData(allocator CFAllocatorRef, url CFURLRef, encoding uint32, escapeWhitespace bool) CFDataRef
- func CFXMLTreeCreateXMLData(allocator CFAllocatorRef, xmlTree CFXMLTreeRef) CFDataRefdeprecated
- type CFDataSearchFlags
- type CFDateFormatterKey
- type CFDateFormatterRef
- type CFDateFormatterStyle
- type CFDateRef
- type CFDictionaryApplierFunction
- type CFDictionaryCopyDescriptionCallBack
- type CFDictionaryEqualCallBack
- type CFDictionaryHashCallBack
- type CFDictionaryKeyCallBacks
- type CFDictionaryRef
- func CFAttributedStringGetAttributes(aStr CFAttributedStringRef, loc int, effectiveRange *CFRange) CFDictionaryRef
- func CFAttributedStringGetAttributesAndLongestEffectiveRange(aStr CFAttributedStringRef, loc int, inRange CFRange, ...) CFDictionaryRef
- func CFBundleCopyInfoDictionaryForURL(url CFURLRef) CFDictionaryRef
- func CFBundleCopyInfoDictionaryInDirectory(bundleURL CFURLRef) CFDictionaryRef
- func CFBundleGetInfoDictionary(bundle CFBundleRef) CFDictionaryRef
- func CFBundleGetLocalInfoDictionary(bundle CFBundleRef) CFDictionaryRef
- func CFDictionaryCreate(allocator CFAllocatorRef, keys unsafe.Pointer, values unsafe.Pointer, ...) CFDictionaryRef
- func CFDictionaryCreateCopy(allocator CFAllocatorRef, theDict CFDictionaryRef) CFDictionaryRef
- func CFErrorCopyUserInfo(err CFErrorRef) CFDictionaryRef
- func CFLocaleCreateComponentsFromLocaleIdentifier(allocator CFAllocatorRef, localeID CFLocaleIdentifier) CFDictionaryRef
- func CFPreferencesCopyMultiple(keysToFetch CFArrayRef, applicationID CFStringRef, userName CFStringRef, ...) CFDictionaryRef
- func CFTimeZoneCopyAbbreviationDictionary() CFDictionaryRef
- func CFURLCopyResourcePropertiesForKeys(url CFURLRef, keys CFArrayRef, err *CFErrorRef) CFDictionaryRef
- func CFURLCreateResourcePropertiesForKeysFromBookmarkData(allocator CFAllocatorRef, resourcePropertiesToReturn CFArrayRef, ...) CFDictionaryRef
- func CFUserNotificationGetResponseDictionary(userNotification CFUserNotificationRef) CFDictionaryRef
- type CFDictionaryReleaseCallBack
- type CFDictionaryRetainCallBack
- type CFDictionaryValueCallBacks
- type CFErrorDomain
- type CFErrorRef
- func CFErrorCreate(allocator CFAllocatorRef, domain CFErrorDomain, code int, ...) CFErrorRef
- func CFErrorCreateWithUserInfoKeysAndValues(allocator CFAllocatorRef, domain CFErrorDomain, code int, ...) CFErrorRef
- func CFReadStreamCopyError(stream CFReadStreamRef) CFErrorRef
- func CFWriteStreamCopyError(stream CFWriteStreamRef) CFErrorRef
- type CFFileDescriptorCallBack
- type CFFileDescriptorContext
- type CFFileDescriptorNativeDescriptor
- type CFFileDescriptorRef
- type CFFileSecurityClearOptions
- type CFFileSecurityRef
- type CFGregorianDate
- type CFGregorianUnitFlags
- type CFGregorianUnits
- type CFHashCode
- type CFISO8601DateFormatOptions
- type CFIndex
- type CFLocale
- type CFLocaleIdentifier
- func CFLocaleCreateCanonicalLanguageIdentifierFromString(allocator CFAllocatorRef, localeIdentifier CFStringRef) CFLocaleIdentifier
- func CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes(allocator CFAllocatorRef, lcode unsafe.Pointer, rcode unsafe.Pointer) CFLocaleIdentifier
- func CFLocaleCreateCanonicalLocaleIdentifierFromString(allocator CFAllocatorRef, localeIdentifier CFStringRef) CFLocaleIdentifier
- func CFLocaleCreateLocaleIdentifierFromComponents(allocator CFAllocatorRef, dictionary CFDictionaryRef) CFLocaleIdentifier
- func CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode(allocator CFAllocatorRef, lcid uint32) CFLocaleIdentifier
- func CFLocaleGetIdentifier(locale CFLocaleRef) CFLocaleIdentifier
- type CFLocaleKey
- type CFLocaleLanguageDirection
- type CFLocaleRef
- func CFCalendarCopyLocale(calendar CFCalendarRef) CFLocaleRef
- func CFDateFormatterGetLocale(formatter CFDateFormatterRef) CFLocaleRef
- func CFLocaleCopyCurrent() CFLocaleRef
- func CFLocaleCreate(allocator CFAllocatorRef, localeIdentifier CFLocaleIdentifier) CFLocaleRef
- func CFLocaleCreateCopy(allocator CFAllocatorRef, locale CFLocaleRef) CFLocaleRef
- func CFLocaleGetSystem() CFLocaleRef
- func CFNumberFormatterGetLocale(formatter CFNumberFormatterRef) CFLocaleRef
- type CFMachPort
- type CFMachPortCallBack
- type CFMachPortContext
- type CFMachPortInvalidationCallBack
- type CFMachPortRef
- type CFMessagePortCallBack
- type CFMessagePortContext
- type CFMessagePortInvalidationCallBack
- type CFMessagePortRef
- type CFMutableArrayRef
- type CFMutableAttributedStringRef
- type CFMutableBagRef
- type CFMutableBitVectorRef
- type CFMutableCharacterSetRef
- type CFMutableDataRef
- type CFMutableDictionary
- type CFMutableDictionaryRef
- type CFMutableSetRef
- type CFMutableStringRef
- func CFAttributedStringGetMutableString(aStr CFMutableAttributedStringRef) CFMutableStringRef
- func CFStringCreateMutable(alloc CFAllocatorRef, maxLength int) CFMutableStringRef
- func CFStringCreateMutableCopy(alloc CFAllocatorRef, maxLength int, theString CFStringRef) CFMutableStringRef
- func CFStringCreateMutableWithExternalCharactersNoCopy(alloc CFAllocatorRef, chars *uint16, numChars int, capacity int, ...) CFMutableStringRef
- type CFNotificationCallback
- type CFNotificationCenterRef
- type CFNotificationName
- type CFNotificationSuspensionBehavior
- type CFNullRef
- type CFNumberFormatterKey
- type CFNumberFormatterOptionFlags
- type CFNumberFormatterPadPosition
- type CFNumberFormatterRef
- type CFNumberFormatterRoundingMode
- type CFNumberFormatterStyle
- type CFNumberRef
- type CFNumberType
- type CFOptionFlags
- type CFPlugInDynamicRegisterFunction
- type CFPlugInFactoryFunction
- type CFPlugInInstanceDeallocateInstanceDataFunction
- type CFPlugInInstanceGetInterfaceFunction
- type CFPlugInInstanceRef
- type CFPlugInRef
- type CFPlugInUnloadFunction
- type CFPropertyListFormat
- type CFPropertyListMutabilityOptions
- type CFPropertyListRef
- func CFPreferencesCopyAppValue(key CFStringRef, applicationID CFStringRef) CFPropertyListRef
- func CFPreferencesCopyValue(key CFStringRef, applicationID CFStringRef, userName CFStringRef, ...) CFPropertyListRef
- func CFPropertyListCreateDeepCopy(allocator CFAllocatorRef, propertyList CFPropertyListRef, ...) CFPropertyListRef
- func CFPropertyListCreateWithData(allocator CFAllocatorRef, data CFDataRef, options uint64, ...) CFPropertyListRef
- func CFPropertyListCreateWithStream(allocator CFAllocatorRef, stream CFReadStreamRef, streamLength int, ...) CFPropertyListRef
- type CFRange
- func CFCalendarGetMaximumRangeOfUnit(calendar CFCalendarRef, unit CFCalendarUnit) CFRange
- func CFCalendarGetMinimumRangeOfUnit(calendar CFCalendarRef, unit CFCalendarUnit) CFRange
- func CFCalendarGetRangeOfUnit(calendar CFCalendarRef, smallerUnit CFCalendarUnit, biggerUnit CFCalendarUnit, ...) CFRange
- func CFDataFind(theData CFDataRef, dataToFind CFDataRef, searchRange CFRange, ...) CFRange
- func CFStringFind(theString CFStringRef, stringToFind CFStringRef, ...) CFRange
- func CFStringGetRangeOfComposedCharactersAtIndex(theString CFStringRef, theIndex int) CFRange
- func CFStringTokenizerGetCurrentTokenRange(tokenizer CFStringTokenizerRef) CFRange
- func CFURLGetByteRangeForComponent(url CFURLRef, component CFURLComponentType, rangeIncludingSeparators *CFRange) CFRange
- type CFReadStreamClientCallBack
- type CFReadStreamRef
- type CFRunLoopActivity
- type CFRunLoopMode
- type CFRunLoopObserverCallBack
- type CFRunLoopObserverContext
- type CFRunLoopObserverRef
- type CFRunLoopRef
- type CFRunLoopRunResult
- type CFRunLoopSourceContext
- type CFRunLoopSourceContext1
- type CFRunLoopSourceRef
- func CFFileDescriptorCreateRunLoopSource(allocator CFAllocatorRef, f CFFileDescriptorRef, order int) CFRunLoopSourceRef
- func CFMachPortCreateRunLoopSource(allocator CFAllocatorRef, port CFMachPortRef, order int) CFRunLoopSourceRef
- func CFMessagePortCreateRunLoopSource(allocator CFAllocatorRef, local CFMessagePortRef, order int) CFRunLoopSourceRef
- func CFRunLoopSourceCreate(allocator CFAllocatorRef, order int, context *CFRunLoopSourceContext) CFRunLoopSourceRef
- func CFSocketCreateRunLoopSource(allocator CFAllocatorRef, s CFSocketRef, order int) CFRunLoopSourceRef
- func CFUserNotificationCreateRunLoopSource(allocator CFAllocatorRef, userNotification CFUserNotificationRef, ...) CFRunLoopSourceRef
- type CFRunLoopTimerCallBack
- type CFRunLoopTimerContext
- type CFRunLoopTimerRef
- type CFSet
- type CFSetApplierFunction
- type CFSetCallBacks
- type CFSetCopyDescriptionCallBack
- type CFSetEqualCallBack
- type CFSetHashCallBack
- type CFSetRef
- type CFSetReleaseCallBack
- type CFSetRetainCallBack
- type CFSocketCallBack
- type CFSocketCallBackType
- type CFSocketContext
- type CFSocketError
- func CFSocketConnectToAddress(s CFSocketRef, address CFDataRef, timeout float64) CFSocketError
- func CFSocketCopyRegisteredSocketSignature(nameServerSignature *CFSocketSignature, timeout float64, name CFStringRef, ...) CFSocketError
- func CFSocketCopyRegisteredValue(nameServerSignature *CFSocketSignature, timeout float64, name CFStringRef, ...) CFSocketError
- func CFSocketRegisterSocketSignature(nameServerSignature *CFSocketSignature, timeout float64, name CFStringRef, ...) CFSocketError
- func CFSocketRegisterValue(nameServerSignature *CFSocketSignature, timeout float64, name CFStringRef, ...) CFSocketError
- func CFSocketSendData(s CFSocketRef, address CFDataRef, data CFDataRef, timeout float64) CFSocketError
- func CFSocketSetAddress(s CFSocketRef, address CFDataRef) CFSocketError
- func CFSocketUnregister(nameServerSignature *CFSocketSignature, timeout float64, name CFStringRef) CFSocketError
- type CFSocketNativeHandle
- type CFSocketRef
- func CFSocketCreate(allocator CFAllocatorRef, protocolFamily int32, socketType int32, ...) CFSocketRef
- func CFSocketCreateConnectedToSocketSignature(allocator CFAllocatorRef, signature *CFSocketSignature, callBackTypes uint64, ...) CFSocketRef
- func CFSocketCreateWithNative(allocator CFAllocatorRef, sock CFSocketNativeHandle, callBackTypes uint64, ...) CFSocketRef
- func CFSocketCreateWithSocketSignature(allocator CFAllocatorRef, signature *CFSocketSignature, callBackTypes uint64, ...) CFSocketRef
- type CFSocketSignature
- type CFStreamClientContext
- type CFStreamError
- type CFStreamErrorDomain
- type CFStreamEventType
- type CFStreamPropertyKey
- type CFStreamStatus
- type CFStringBuiltInEncodings
- type CFStringCompareFlags
- type CFStringEncoding
- type CFStringEncodings
- type CFStringInlineBuffer
- type CFStringNormalizationForm
- type CFStringRef
- func CFAttributedStringGetString(aStr CFAttributedStringRef) CFStringRef
- func CFBundleCopyLocalizedString(bundle CFBundleRef, key CFStringRef, value CFStringRef, tableName CFStringRef) CFStringRef
- func CFBundleCopyLocalizedStringForLocalizations(bundle CFBundleRef, key CFStringRef, value CFStringRef, tableName CFStringRef, ...) CFStringRef
- func CFBundleGetDevelopmentRegion(bundle CFBundleRef) CFStringRef
- func CFBundleGetIdentifier(bundle CFBundleRef) CFStringRef
- func CFCopyDescription(cf CFTypeRef) CFStringRef
- func CFCopyTypeIDDescription(type_id uint) CFStringRef
- func CFDateFormatterCreateDateFormatFromTemplate(allocator CFAllocatorRef, tmplate CFStringRef, options uint64, ...) CFStringRef
- func CFDateFormatterCreateStringWithAbsoluteTime(allocator CFAllocatorRef, formatter CFDateFormatterRef, at CFAbsoluteTime) CFStringRef
- func CFDateFormatterCreateStringWithDate(allocator CFAllocatorRef, formatter CFDateFormatterRef, date CFDateRef) CFStringRef
- func CFDateFormatterGetFormat(formatter CFDateFormatterRef) CFStringRef
- func CFErrorCopyDescription(err CFErrorRef) CFStringRef
- func CFErrorCopyFailureReason(err CFErrorRef) CFStringRef
- func CFErrorCopyRecoverySuggestion(err CFErrorRef) CFStringRef
- func CFLocaleCopyDisplayNameForPropertyValue(displayLocale CFLocaleRef, key CFLocaleKey, value CFStringRef) CFStringRef
- func CFMessagePortGetName(ms CFMessagePortRef) CFStringRef
- func CFNumberFormatterCreateStringWithNumber(allocator CFAllocatorRef, formatter CFNumberFormatterRef, number CFNumberRef) CFStringRef
- func CFNumberFormatterCreateStringWithValue(allocator CFAllocatorRef, formatter CFNumberFormatterRef, ...) CFStringRef
- func CFNumberFormatterGetFormat(formatter CFNumberFormatterRef) CFStringRef
- func CFPlugInInstanceGetFactoryName(instance CFPlugInInstanceRef) CFStringRef
- func CFStringConvertEncodingToIANACharSetName(encoding uint32) CFStringRef
- func CFStringCreateByCombiningStrings(alloc CFAllocatorRef, theArray CFArrayRef, separatorString CFStringRef) CFStringRef
- func CFStringCreateCopy(alloc CFAllocatorRef, theString CFStringRef) CFStringRef
- func CFStringCreateFromExternalRepresentation(alloc CFAllocatorRef, data CFDataRef, encoding uint32) CFStringRef
- func CFStringCreateStringWithValidatedFormat(alloc CFAllocatorRef, formatOptions CFDictionaryRef, ...) CFStringRef
- func CFStringCreateStringWithValidatedFormatAndArguments(alloc CFAllocatorRef, formatOptions CFDictionaryRef, ...) CFStringRef
- func CFStringCreateWithBytes(alloc CFAllocatorRef, bytes *uint8, numBytes int, encoding uint32, ...) CFStringRef
- func CFStringCreateWithBytesNoCopy(alloc CFAllocatorRef, bytes *uint8, numBytes int, encoding uint32, ...) CFStringRef
- func CFStringCreateWithCString(alloc CFAllocatorRef, cStr string, encoding uint32) CFStringRef
- func CFStringCreateWithCStringNoCopy(alloc CFAllocatorRef, cStr string, encoding uint32, ...) CFStringRef
- func CFStringCreateWithCharacters(alloc CFAllocatorRef, chars *uint16, numChars int) CFStringRef
- func CFStringCreateWithCharactersNoCopy(alloc CFAllocatorRef, chars *uint16, numChars int, ...) CFStringRef
- func CFStringCreateWithFileSystemRepresentation(alloc CFAllocatorRef, buffer *byte) CFStringRef
- func CFStringCreateWithFormat(alloc CFAllocatorRef, formatOptions CFDictionaryRef, format CFStringRef) CFStringRef
- func CFStringCreateWithFormatAndArguments(alloc CFAllocatorRef, formatOptions CFDictionaryRef, format CFStringRef, ...) CFStringRef
- func CFStringCreateWithPascalString(alloc CFAllocatorRef, pStr unsafe.Pointer, encoding uint32) CFStringRef
- func CFStringCreateWithPascalStringNoCopy(alloc CFAllocatorRef, pStr unsafe.Pointer, encoding uint32, ...) CFStringRef
- func CFStringCreateWithSubstring(alloc CFAllocatorRef, str CFStringRef, range_ CFRange) CFStringRef
- func CFStringGetNameOfEncoding(encoding uint32) CFStringRef
- func CFStringTokenizerCopyBestStringLanguage(string_ CFStringRef, range_ CFRange) CFStringRef
- func CFTimeZoneCopyAbbreviation(tz CFTimeZoneRef, at CFAbsoluteTime) CFStringRef
- func CFTimeZoneCopyLocalizedName(tz CFTimeZoneRef, style CFTimeZoneNameStyle, locale CFLocaleRef) CFStringRef
- func CFTimeZoneGetName(tz CFTimeZoneRef) CFStringRef
- func CFURLCopyFileSystemPath(anURL CFURLRef, pathStyle CFURLPathStyle) CFStringRef
- func CFURLCopyFragment(anURL CFURLRef, charactersToLeaveEscaped CFStringRef) CFStringRef
- func CFURLCopyHostName(anURL CFURLRef) CFStringRef
- func CFURLCopyLastPathComponent(url CFURLRef) CFStringRef
- func CFURLCopyNetLocation(anURL CFURLRef) CFStringRef
- func CFURLCopyPassword(anURL CFURLRef) CFStringRef
- func CFURLCopyPath(anURL CFURLRef) CFStringRef
- func CFURLCopyPathExtension(url CFURLRef) CFStringRef
- func CFURLCopyQueryString(anURL CFURLRef, charactersToLeaveEscaped CFStringRef) CFStringRef
- func CFURLCopyResourceSpecifier(anURL CFURLRef) CFStringRef
- func CFURLCopyScheme(anURL CFURLRef) CFStringRef
- func CFURLCopyStrictPath(anURL CFURLRef, isAbsolute *bool) CFStringRef
- func CFURLCopyUserName(anURL CFURLRef) CFStringRef
- func CFURLCreateStringByReplacingPercentEscapes(allocator CFAllocatorRef, originalString CFStringRef, ...) CFStringRef
- func CFURLGetString(anURL CFURLRef) CFStringRef
- func CFUUIDCreateString(alloc CFAllocatorRef, uuid CFUUIDRef) CFStringRef
- func CFUserNotificationGetResponseValue(userNotification CFUserNotificationRef, key CFStringRef, idx int) CFStringRef
- func CFXMLCreateStringByEscapingEntities(allocator CFAllocatorRef, string_ CFStringRef, ...) CFStringRef
- func CFXMLCreateStringByUnescapingEntities(allocator CFAllocatorRef, string_ CFStringRef, ...) CFStringRef
- func CFXMLNodeGetString(node unsafe.Pointer) CFStringRefdeprecated
- func CFXMLParserCopyErrorDescription(parser CFXMLParserRef) CFStringRefdeprecated
- type CFStringTokenizerRef
- type CFStringTokenizerTokenType
- type CFSwappedFloat32
- type CFSwappedFloat64
- type CFTimeInterval
- type CFTimeZoneNameStyle
- type CFTimeZoneRef
- func CFCalendarCopyTimeZone(calendar CFCalendarRef) CFTimeZoneRef
- func CFTimeZoneCopyDefault() CFTimeZoneRef
- func CFTimeZoneCopySystem() CFTimeZoneRef
- func CFTimeZoneCreate(allocator CFAllocatorRef, name CFStringRef, data CFDataRef) CFTimeZoneRef
- func CFTimeZoneCreateWithName(allocator CFAllocatorRef, name CFStringRef, tryAbbrev bool) CFTimeZoneRef
- func CFTimeZoneCreateWithTimeIntervalFromGMT(allocator CFAllocatorRef, ti float64) CFTimeZoneRef
- type CFTreeApplierFunction
- type CFTreeContext
- type CFTreeCopyDescriptionCallBack
- type CFTreeRef
- func CFTreeCreate(allocator CFAllocatorRef, context *CFTreeContext) CFTreeRef
- func CFTreeFindRoot(tree CFTreeRef) CFTreeRef
- func CFTreeGetChildAtIndex(tree CFTreeRef, idx int) CFTreeRef
- func CFTreeGetFirstChild(tree CFTreeRef) CFTreeRef
- func CFTreeGetNextSibling(tree CFTreeRef) CFTreeRef
- func CFTreeGetParent(tree CFTreeRef) CFTreeRef
- type CFTreeReleaseCallBack
- type CFTreeRetainCallBack
- type CFTypeID
- type CFTypeRef
- func CFAttributedStringGetAttribute(aStr CFAttributedStringRef, loc int, attrName CFStringRef, ...) CFTypeRef
- func CFAttributedStringGetAttributeAndLongestEffectiveRange(aStr CFAttributedStringRef, loc int, attrName CFStringRef, inRange CFRange, ...) CFTypeRef
- func CFAutorelease(arg CFTypeRef) CFTypeRef
- func CFBundleGetValueForInfoDictionaryKey(bundle CFBundleRef, key CFStringRef) CFTypeRef
- func CFDateFormatterCopyProperty(formatter CFDateFormatterRef, key CFDateFormatterKey) CFTypeRef
- func CFLocaleGetValue(locale CFLocaleRef, key CFLocaleKey) CFTypeRef
- func CFMakeCollectable(cf CFTypeRef) CFTypeRef
- func CFNumberFormatterCopyProperty(formatter CFNumberFormatterRef, key CFNumberFormatterKey) CFTypeRef
- func CFReadStreamCopyProperty(stream CFReadStreamRef, propertyName CFStreamPropertyKey) CFTypeRef
- func CFRetain(cf CFTypeRef) CFTypeRef
- func CFStringTokenizerCopyCurrentTokenAttribute(tokenizer CFStringTokenizerRef, attribute uint64) CFTypeRef
- func CFURLCreateResourcePropertyForKeyFromBookmarkData(allocator CFAllocatorRef, resourcePropertyKey CFStringRef, bookmark CFDataRef) CFTypeRef
- func CFWriteStreamCopyProperty(stream CFWriteStreamRef, propertyName CFStreamPropertyKey) CFTypeRef
- type CFURLBookmarkCreationOptions
- type CFURLBookmarkFileCreationOptions
- type CFURLBookmarkResolutionOptions
- type CFURLComponentType
- type CFURLEnumeratorOptions
- type CFURLEnumeratorRef
- type CFURLEnumeratorResult
- type CFURLError
- type CFURLPathStyle
- type CFURLRef
- func CFBundleCopyAuxiliaryExecutableURL(bundle CFBundleRef, executableName CFStringRef) CFURLRef
- func CFBundleCopyBuiltInPlugInsURL(bundle CFBundleRef) CFURLRef
- func CFBundleCopyBundleURL(bundle CFBundleRef) CFURLRef
- func CFBundleCopyExecutableURL(bundle CFBundleRef) CFURLRef
- func CFBundleCopyPrivateFrameworksURL(bundle CFBundleRef) CFURLRef
- func CFBundleCopyResourceURL(bundle CFBundleRef, resourceName CFStringRef, resourceType CFStringRef, ...) CFURLRef
- func CFBundleCopyResourceURLForLocalization(bundle CFBundleRef, resourceName CFStringRef, resourceType CFStringRef, ...) CFURLRef
- func CFBundleCopyResourceURLInDirectory(bundleURL CFURLRef, resourceName CFStringRef, resourceType CFStringRef, ...) CFURLRef
- func CFBundleCopyResourcesDirectoryURL(bundle CFBundleRef) CFURLRef
- func CFBundleCopySharedFrameworksURL(bundle CFBundleRef) CFURLRef
- func CFBundleCopySharedSupportURL(bundle CFBundleRef) CFURLRef
- func CFBundleCopySupportFilesDirectoryURL(bundle CFBundleRef) CFURLRef
- func CFURLCopyAbsoluteURL(relativeURL CFURLRef) CFURLRef
- func CFURLCreateAbsoluteURLWithBytes(alloc CFAllocatorRef, relativeURLBytes *uint8, length int, encoding uint32, ...) CFURLRef
- func CFURLCreateByResolvingBookmarkData(allocator CFAllocatorRef, bookmark CFDataRef, ...) CFURLRef
- func CFURLCreateCopyAppendingPathComponent(allocator CFAllocatorRef, url CFURLRef, pathComponent CFStringRef, ...) CFURLRef
- func CFURLCreateCopyAppendingPathExtension(allocator CFAllocatorRef, url CFURLRef, extension CFStringRef) CFURLRef
- func CFURLCreateCopyDeletingLastPathComponent(allocator CFAllocatorRef, url CFURLRef) CFURLRef
- func CFURLCreateCopyDeletingPathExtension(allocator CFAllocatorRef, url CFURLRef) CFURLRef
- func CFURLCreateFilePathURL(allocator CFAllocatorRef, url CFURLRef, err *CFErrorRef) CFURLRef
- func CFURLCreateFileReferenceURL(allocator CFAllocatorRef, url CFURLRef, err *CFErrorRef) CFURLRef
- func CFURLCreateFromFileSystemRepresentation(allocator CFAllocatorRef, buffer *uint8, bufLen int, isDirectory bool) CFURLRef
- func CFURLCreateFromFileSystemRepresentationRelativeToBase(allocator CFAllocatorRef, buffer *uint8, bufLen int, isDirectory bool, ...) CFURLRef
- func CFURLCreateWithBytes(allocator CFAllocatorRef, URLBytes *uint8, length int, encoding uint32, ...) CFURLRef
- func CFURLCreateWithFileSystemPath(allocator CFAllocatorRef, filePath CFStringRef, pathStyle CFURLPathStyle, ...) CFURLRef
- func CFURLCreateWithFileSystemPathRelativeToBase(allocator CFAllocatorRef, filePath CFStringRef, pathStyle CFURLPathStyle, ...) CFURLRef
- func CFURLCreateWithString(allocator CFAllocatorRef, URLString CFStringRef, baseURL CFURLRef) CFURLRef
- func CFURLGetBaseURL(anURL CFURLRef) CFURLRef
- func CFXMLParserGetSourceURL(parser CFXMLParserRef) CFURLRefdeprecated
- type CFUUID
- type CFUUIDBytes
- type CFUUIDRef
- func CFUUIDCreate(alloc CFAllocatorRef) CFUUIDRef
- func CFUUIDCreateFromString(alloc CFAllocatorRef, uuidStr CFStringRef) CFUUIDRef
- func CFUUIDCreateFromUUIDBytes(alloc CFAllocatorRef, bytes CFUUIDBytes) CFUUIDRef
- func CFUUIDCreateWithBytes(alloc CFAllocatorRef, byte0 uint8, byte1 uint8, byte2 uint8, byte3 uint8, ...) CFUUIDRef
- func CFUUIDGetConstantUUIDWithBytes(alloc CFAllocatorRef, byte0 uint8, byte1 uint8, byte2 uint8, byte3 uint8, ...) CFUUIDRef
- type CFUserNotificationCallBack
- type CFUserNotificationRef
- type CFWriteStreamClientCallBack
- type CFWriteStreamRef
- func CFWriteStreamCreateWithAllocatedBuffers(alloc CFAllocatorRef, bufferAllocator CFAllocatorRef) CFWriteStreamRef
- func CFWriteStreamCreateWithBuffer(alloc CFAllocatorRef, buffer *uint8, bufferCapacity int) CFWriteStreamRef
- func CFWriteStreamCreateWithFile(alloc CFAllocatorRef, fileURL CFURLRef) CFWriteStreamRef
- type CFXMLAttributeDeclarationInfo
- type CFXMLAttributeListDeclarationInfo
- type CFXMLDocumentInfo
- type CFXMLDocumentTypeInfo
- type CFXMLElementInfo
- type CFXMLElementTypeDeclarationInfo
- type CFXMLEntityInfo
- type CFXMLEntityReferenceInfo
- type CFXMLEntityTypeCode
- type CFXMLExternalID
- type CFXMLNotationInfo
- type CFXMLParserAddChildCallBack
- type CFXMLParserCallBacks
- type CFXMLParserContext
- type CFXMLParserCopyDescriptionCallBack
- type CFXMLParserCreateXMLStructureCallBack
- type CFXMLParserEndXMLStructureCallBack
- type CFXMLParserHandleErrorCallBack
- type CFXMLParserOptions
- type CFXMLParserRef
- type CFXMLParserReleaseCallBack
- type CFXMLParserResolveExternalEntityCallBack
- type CFXMLParserRetainCallBack
- type CFXMLParserStatusCode
- type CFXMLProcessingInstructionInfo
- type CFXMLTreeRef
- func CFXMLTreeCreateFromData(allocator CFAllocatorRef, xmlData CFDataRef, dataSource CFURLRef, ...) CFXMLTreeRefdeprecated
- func CFXMLTreeCreateFromDataWithError(allocator CFAllocatorRef, xmlData CFDataRef, dataSource CFURLRef, ...) CFXMLTreeRefdeprecated
- func CFXMLTreeCreateWithDataFromURL(allocator CFAllocatorRef, dataSource CFURLRef, parseOptions uint64, ...) CFXMLTreeRefdeprecated
- func CFXMLTreeCreateWithNode(allocator CFAllocatorRef, node unsafe.Pointer) CFXMLTreeRefdeprecated
- type CGAffineTransform
- type CGAffineTransformComponents
- type CGFloat
- type CGPoint
- type CGRect
- type CGRectEdge
- type CGSize
- type CGVector
- type HRESULT
- type IUnknownVTbl
- type KCFBundleExecutableArchitecture
- type KCFFileDescriptor
- type KCFMessagePort
- type KCFNotification
- type KCFPropertyList
- type KCFSocket
- type KCFStringTokenizer
- type KCFUserNotification
- type LPVOID
- type REFIID
- type ULONG
Constants ¶
const KCFCalendarComponentsWrap uint = 1
const KCFNotFound int = -1
KCFNotFound is a constant that indicates that a search operation did not succeed in locating the target value.
See: https://developer.apple.com/documentation/CoreFoundation/kCFNotFound
Variables ¶
var ( // KCFBundleDevelopmentRegionKey is the name of the development language of the bundle. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFBundleDevelopmentRegionKey KCFBundleDevelopmentRegionKey string // KCFBundleExecutableKey is the name of the executable in this bundle (if any). // // See: https://developer.apple.com/documentation/CoreFoundation/kCFBundleExecutableKey KCFBundleExecutableKey string // KCFBundleIdentifierKey is the bundle identifier. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFBundleIdentifierKey KCFBundleIdentifierKey string // KCFBundleInfoDictionaryVersionKey is the version of the information property list format. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFBundleInfoDictionaryVersionKey KCFBundleInfoDictionaryVersionKey string // KCFBundleLocalizationsKey is allows an unbundled application that handles localization itself to specify which localizations it has available. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFBundleLocalizationsKey KCFBundleLocalizationsKey string // KCFBundleNameKey is the human-readable name of the bundle. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFBundleNameKey KCFBundleNameKey string // KCFBundleVersionKey is the version number of the bundle. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFBundleVersionKey KCFBundleVersionKey string // KCFErrorDescriptionKey is key to identify the description in the `userInfo` dictionary. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFErrorDescriptionKey KCFErrorDescriptionKey string // KCFErrorFilePathKey is key to identify associated file path in the `userInfo` dictionary. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFErrorFilePathKey KCFErrorFilePathKey string // KCFErrorLocalizedDescriptionKey is key to identify the user-presentable description in the `userInfo` dictionary. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFErrorLocalizedDescriptionKey KCFErrorLocalizedDescriptionKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFErrorLocalizedFailureKey KCFErrorLocalizedFailureKey string // KCFErrorLocalizedFailureReasonKey is key to identify the user-presentable failure reason in the `userInfo` dictionary. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFErrorLocalizedFailureReasonKey KCFErrorLocalizedFailureReasonKey string // KCFErrorLocalizedRecoverySuggestionKey is key to identify the user-presentable recovery suggestion in the `userInfo` dictionary. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFErrorLocalizedRecoverySuggestionKey KCFErrorLocalizedRecoverySuggestionKey string // KCFErrorURLKey is key to identify associated URL in the `userInfo` dictionary. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFErrorURLKey KCFErrorURLKey string // KCFErrorUnderlyingErrorKey is key to identify the underlying error in the `userInfo` dictionary. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFErrorUnderlyingErrorKey KCFErrorUnderlyingErrorKey string // KCFPlugInDynamicRegisterFunctionKey is used to specify a plug-in’s registration function. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFPlugInDynamicRegisterFunctionKey KCFPlugInDynamicRegisterFunctionKey string // KCFPlugInDynamicRegistrationKey is indicates whether a plug-in requires dynamic registration. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFPlugInDynamicRegistrationKey KCFPlugInDynamicRegistrationKey string // KCFPlugInFactoriesKey is used to statically register factory functions. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFPlugInFactoriesKey KCFPlugInFactoriesKey string // KCFPlugInTypesKey is used to statically register the factories that can create each supported type. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFPlugInTypesKey KCFPlugInTypesKey string // KCFPlugInUnloadFunctionKey is used to specify a plug-in’s unload function. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFPlugInUnloadFunctionKey KCFPlugInUnloadFunctionKey string // KCFPreferencesAnyApplication is indicates a preference that applies to any application. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFPreferencesAnyApplication KCFPreferencesAnyApplication string // KCFPreferencesAnyHost is indicates a preference that applies to any host. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFPreferencesAnyHost KCFPreferencesAnyHost string // KCFPreferencesAnyUser is indicates a preference that applies to any user. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFPreferencesAnyUser KCFPreferencesAnyUser string // KCFPreferencesCurrentApplication is indicates a preference that applies only to the current application. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFPreferencesCurrentApplication KCFPreferencesCurrentApplication string // KCFPreferencesCurrentHost is indicates a preference that applies only to the current host. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFPreferencesCurrentHost KCFPreferencesCurrentHost string // KCFPreferencesCurrentUser is indicates a preference that applies only to the current user. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFPreferencesCurrentUser KCFPreferencesCurrentUser string // KCFSocketCommandKey is not used. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFSocketCommandKey KCFSocketCommandKey string // KCFSocketErrorKey is not used. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFSocketErrorKey KCFSocketErrorKey string // KCFSocketNameKey is not used. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFSocketNameKey KCFSocketNameKey string // KCFSocketRegisterCommand is not used. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFSocketRegisterCommand KCFSocketRegisterCommand string // KCFSocketResultKey is not used. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFSocketResultKey KCFSocketResultKey string // KCFSocketRetrieveCommand is not used. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFSocketRetrieveCommand KCFSocketRetrieveCommand string // KCFSocketValueKey is not used. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFSocketValueKey KCFSocketValueKey string // KCFStreamPropertySOCKSPassword is constant for the key required to set a user’s password. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamPropertySOCKSPassword KCFStreamPropertySOCKSPassword string // KCFStreamPropertySOCKSProxy is sOCKS proxy property key. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamPropertySOCKSProxy KCFStreamPropertySOCKSProxy string // KCFStreamPropertySOCKSProxyHost is constant for the SOCKS proxy host key. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamPropertySOCKSProxyHost KCFStreamPropertySOCKSProxyHost string // KCFStreamPropertySOCKSProxyPort is constant for the SOCKS proxy host port key. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamPropertySOCKSProxyPort KCFStreamPropertySOCKSProxyPort string // KCFStreamPropertySOCKSUser is constant for the key required to set a user name. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamPropertySOCKSUser KCFStreamPropertySOCKSUser string // KCFStreamPropertySOCKSVersion is constant for the SOCKS version key. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamPropertySOCKSVersion KCFStreamPropertySOCKSVersion string // KCFStreamPropertyShouldCloseNativeSocket is should Close Native Socket property key. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamPropertyShouldCloseNativeSocket KCFStreamPropertyShouldCloseNativeSocket string // KCFStreamPropertySocketSecurityLevel is socket Security Level property key. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamPropertySocketSecurityLevel KCFStreamPropertySocketSecurityLevel string // KCFStreamSocketSOCKSVersion4 is constant used in the `kCFStreamSockerSOCKSVersion` key to specify SOCKS4 as the SOCKS version for the stream. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamSocketSOCKSVersion4 KCFStreamSocketSOCKSVersion4 string // KCFStreamSocketSOCKSVersion5 is constant used in the `kCFStreamSOCKSVersion` key to specify SOCKS5 as the SOCKS version for the stream. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamSocketSOCKSVersion5 KCFStreamSocketSOCKSVersion5 string // KCFStreamSocketSecurityLevelNegotiatedSSL is specifies that the highest level security protocol that can be negotiated be set as the security protocol for a socket stream. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamSocketSecurityLevelNegotiatedSSL KCFStreamSocketSecurityLevelNegotiatedSSL string // KCFStreamSocketSecurityLevelNone is specifies that no security level be set. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamSocketSecurityLevelNone KCFStreamSocketSecurityLevelNone string // KCFStreamSocketSecurityLevelTLSv1 is specifies that TLS version 1 be set as the security protocol for a socket stream. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamSocketSecurityLevelTLSv1 KCFStreamSocketSecurityLevelTLSv1 string // KCFStringTransformFullwidthHalfwidth is the identifier of a reversible transform to convert full-width characters to their half-width equivalents. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformFullwidthHalfwidth KCFStringTransformFullwidthHalfwidth string // KCFStringTransformHiraganaKatakana is the identifier of a reversible transform to transliterate text to Katakana from Hiragana. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformHiraganaKatakana KCFStringTransformHiraganaKatakana string // KCFStringTransformLatinArabic is the identifier of a reversible transform to transliterate text to Arabic from Latin. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformLatinArabic KCFStringTransformLatinArabic string // KCFStringTransformLatinCyrillic is the identifier of a reversible transform to transliterate text to Cyrillic from Latin. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformLatinCyrillic KCFStringTransformLatinCyrillic string // KCFStringTransformLatinGreek is the identifier of a reversible transform to transliterate text to Greek from Latin. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformLatinGreek KCFStringTransformLatinGreek string // KCFStringTransformLatinHangul is the identifier of a reversible transform to transliterate text to Hangul from Latin. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformLatinHangul KCFStringTransformLatinHangul string // KCFStringTransformLatinHebrew is the identifier of a reversible transform to transliterate text to Hebrew from Latin. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformLatinHebrew KCFStringTransformLatinHebrew string // KCFStringTransformLatinHiragana is the identifier of a reversible transform to transliterate text to Hiragana from Latin. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformLatinHiragana KCFStringTransformLatinHiragana string // KCFStringTransformLatinKatakana is the identifier of a reversible transform to transliterate text to Katakana from Latin. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformLatinKatakana KCFStringTransformLatinKatakana string // KCFStringTransformLatinThai is the identifier of a reversible transform to transliterate text to Thai from Latin. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformLatinThai KCFStringTransformLatinThai string // KCFStringTransformMandarinLatin is the identifier of a transform to transliterate text to Latin from ideographs interpreted as Mandarin Chinese. This transform is not reversible. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformMandarinLatin KCFStringTransformMandarinLatin string // KCFStringTransformStripCombiningMarks is the identifier of a transform to strip combining marks (accents or diacritics). // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformStripCombiningMarks KCFStringTransformStripCombiningMarks string // KCFStringTransformStripDiacritics is the identifier of a transform to remove diacritic markings. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformStripDiacritics KCFStringTransformStripDiacritics string // KCFStringTransformToLatin is the identifier of a transform to transliterate all text possible to Latin script. Ideographs are transliterated as Mandarin Chinese. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformToLatin KCFStringTransformToLatin string // KCFStringTransformToUnicodeName is the identifier of a reversible transform to transliterate characters other than printable ASCII to their Unicode character name in braces. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformToUnicodeName KCFStringTransformToUnicodeName string // KCFStringTransformToXMLHex is the identifier of a reversible transform to transliterate characters other than printable ASCII to XML/HTML numeric entities. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringTransformToXMLHex KCFStringTransformToXMLHex string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLAddedToDirectoryDateKey KCFURLAddedToDirectoryDateKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLApplicationIsScriptableKey KCFURLApplicationIsScriptableKey string // KCFURLAttributeModificationDateKey is key for the last time the resource’s attributes were modified, returned as a [CFDate] object if the volume supports attribute modification dates, or `nil` if attribute modification dates are unsupported. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLAttributeModificationDateKey KCFURLAttributeModificationDateKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLCanonicalPathKey KCFURLCanonicalPathKey string // KCFURLContentAccessDateKey is key for the last time the resource was accessed, returned as a [CFDate] object if the volume supports access dates, or `nil` if access dates are unsupported. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLContentAccessDateKey KCFURLContentAccessDateKey string // KCFURLContentModificationDateKey is key for the last time the resource was modified, returned as a [CFDate] object if the volume supports modification dates, or `nil` if modification dates are unsupported. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLContentModificationDateKey KCFURLContentModificationDateKey string // KCFURLCreationDateKey is key for the resource’s creation date, returned as a [CFDate] object if the volume supports creation dates, or `nil` if creation dates are unsupported. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLCreationDateKey KCFURLCreationDateKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLDirectoryEntryCountKey KCFURLDirectoryEntryCountKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLDocumentIdentifierKey KCFURLDocumentIdentifierKey string // KCFURLFileAllocatedSizeKey is key for the total size allocated on disk for the file, returned as an [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileAllocatedSizeKey KCFURLFileAllocatedSizeKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileContentIdentifierKey KCFURLFileContentIdentifierKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileIdentifierKey KCFURLFileIdentifierKey string // KCFURLFileResourceIdentifierKey is key for the resource’s unique identifier, returned as a [CFType] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileResourceIdentifierKey KCFURLFileResourceIdentifierKey string // KCFURLFileResourceTypeBlockSpecial is the resource is a block special file. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileResourceTypeBlockSpecial KCFURLFileResourceTypeBlockSpecial string // KCFURLFileResourceTypeCharacterSpecial is the resource is a character special file. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileResourceTypeCharacterSpecial KCFURLFileResourceTypeCharacterSpecial string // KCFURLFileResourceTypeDirectory is the resource is a directory. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileResourceTypeDirectory KCFURLFileResourceTypeDirectory string // KCFURLFileResourceTypeKey is key for the resource’s object type, returned as a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileResourceTypeKey KCFURLFileResourceTypeKey string // KCFURLFileResourceTypeNamedPipe is the resource is a named pipe. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileResourceTypeNamedPipe KCFURLFileResourceTypeNamedPipe string // KCFURLFileResourceTypeRegular is the resource is a regular file. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileResourceTypeRegular KCFURLFileResourceTypeRegular string // KCFURLFileResourceTypeSocket is the resource is a socket. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileResourceTypeSocket KCFURLFileResourceTypeSocket string // KCFURLFileResourceTypeSymbolicLink is the resource is a symbolic link. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileResourceTypeSymbolicLink KCFURLFileResourceTypeSymbolicLink string // KCFURLFileResourceTypeUnknown is the resource’s type is unknown. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileResourceTypeUnknown KCFURLFileResourceTypeUnknown string // KCFURLFileSecurityKey is key for the resource’s security information, returned as a [CFFileSecurity] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileSecurityKey KCFURLFileSecurityKey string // KCFURLFileSizeKey is key for the file’s size in bytes, returned as a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLFileSizeKey KCFURLFileSizeKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLGenerationIdentifierKey KCFURLGenerationIdentifierKey string // KCFURLHasHiddenExtensionKey is key for determining whether the resource’s extension is normally removed from its localized name, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLHasHiddenExtensionKey KCFURLHasHiddenExtensionKey string // KCFURLIsAliasFileKey is key for determining whether the file is an alias, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsAliasFileKey KCFURLIsAliasFileKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsApplicationKey KCFURLIsApplicationKey string // KCFURLIsDirectoryKey is key for determining whether the resource is a directory, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsDirectoryKey KCFURLIsDirectoryKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsExcludedFromBackupKey KCFURLIsExcludedFromBackupKey string // KCFURLIsExecutableKey is key for determining whether the current process (as determined by the EUID) can execute the resource (if it is a file) or search the resource (if it is a directory), returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsExecutableKey KCFURLIsExecutableKey string // KCFURLIsHiddenKey is key for determining whether the resource is normally not displayed to users, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsHiddenKey KCFURLIsHiddenKey string // KCFURLIsMountTriggerKey is key for determining whether the URL is a file system trigger directory, returned as a [CFBoolean] object. Traversing or opening a file system trigger directory causes an attempt to mount a file system on the directory. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsMountTriggerKey KCFURLIsMountTriggerKey string // KCFURLIsPackageKey is key for determining whether the resource is a packaged directory, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsPackageKey KCFURLIsPackageKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsPurgeableKey KCFURLIsPurgeableKey string // KCFURLIsReadableKey is key for determining whether the current process (as determined by the EUID) can read the resource, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsReadableKey KCFURLIsReadableKey string // KCFURLIsRegularFileKey is key for determining whether the resource is a regular file, as opposed to a directory or a symbolic link. Returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsRegularFileKey KCFURLIsRegularFileKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsSparseKey KCFURLIsSparseKey string // KCFURLIsSymbolicLinkKey is key for determining whether the resource is a symbolic link, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsSymbolicLinkKey KCFURLIsSymbolicLinkKey string // KCFURLIsSystemImmutableKey is key for determining whether the resource’s system immutable bit is set, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsSystemImmutableKey KCFURLIsSystemImmutableKey string // KCFURLIsUbiquitousItemKey is a [CFBoolean] value that tells whether the item is synced to the cloud. (read-only). // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsUbiquitousItemKey KCFURLIsUbiquitousItemKey string // KCFURLIsUserImmutableKey is key for determining whether the resource’s user immutable bit is set, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsUserImmutableKey KCFURLIsUserImmutableKey string // KCFURLIsVolumeKey is key for determining whether the resource is the root directory of a volume, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsVolumeKey KCFURLIsVolumeKey string // KCFURLIsWritableKey is key for determining whether the current process (as determined by the EUID) can write to the resource, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLIsWritableKey KCFURLIsWritableKey string // KCFURLKeysOfUnsetValuesKey is key for the resource properties that have not been set after the [CFURLSetResourcePropertiesForKeys(_:_:_:)] function returns an error, returned as an array of [CFString] objects. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLKeysOfUnsetValuesKey KCFURLKeysOfUnsetValuesKey string // KCFURLLabelNumberKey is key for the resource’s label number, returned as a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLLabelNumberKey KCFURLLabelNumberKey string // KCFURLLinkCountKey is key for the number of hard links to the resource, returned as a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLLinkCountKey KCFURLLinkCountKey string // KCFURLLocalizedLabelKey is key for the resource’s localized label text, returned as a [CFString] object, or [NULL] if the resource has no localized label text. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLLocalizedLabelKey KCFURLLocalizedLabelKey string // KCFURLLocalizedNameKey is key for the resource’s localized or extension-hidden name, retuned as a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLLocalizedNameKey KCFURLLocalizedNameKey string // KCFURLLocalizedTypeDescriptionKey is key for the resource’s localized type description, returned as a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLLocalizedTypeDescriptionKey KCFURLLocalizedTypeDescriptionKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLMayHaveExtendedAttributesKey KCFURLMayHaveExtendedAttributesKey string KCFURLMayShareFileContentKey string // KCFURLNameKey is key for the resource’s name in the file system, returned as a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLNameKey KCFURLNameKey string // KCFURLParentDirectoryURLKey is key for the parent directory of the resource, returned as a [CFURL] object, or `nil` if the resource is the root directory of its volume. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLParentDirectoryURLKey KCFURLParentDirectoryURLKey string // KCFURLPathKey is a [CFString] value containing the URL’s path as a file system path. (read-only). // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLPathKey KCFURLPathKey string // KCFURLPreferredIOBlockSizeKey is key for the optimal block size to use when reading or writing this file’s data, returned as a [CFNumber] object, or [NULL] if the preferred size is not available. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLPreferredIOBlockSizeKey KCFURLPreferredIOBlockSizeKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLQuarantinePropertiesKey KCFURLQuarantinePropertiesKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLTagNamesKey KCFURLTagNamesKey string // KCFURLTotalFileAllocatedSizeKey is key for the total allocated size of the file in bytes, returned as a [CFNumber] object. This includes the size of any file metadata. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLTotalFileAllocatedSizeKey KCFURLTotalFileAllocatedSizeKey string // KCFURLTotalFileSizeKey is key for the total displayable size of the file in bytes, returned as a [CFNumber] object. This includes the size of any file metadata. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLTotalFileSizeKey KCFURLTotalFileSizeKey string // KCFURLTypeIdentifierKey is key for the resource’s uniform type identifier (UTI), returned as a [CFString] object. // // Deprecated: Deprecated since macOS 26.2. Use NSURLContentTypeKey instead // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLTypeIdentifierKey KCFURLTypeIdentifierKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemDownloadingErrorKey KCFURLUbiquitousItemDownloadingErrorKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemDownloadingStatusCurrent KCFURLUbiquitousItemDownloadingStatusCurrent string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemDownloadingStatusDownloaded KCFURLUbiquitousItemDownloadingStatusDownloaded string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemDownloadingStatusKey KCFURLUbiquitousItemDownloadingStatusKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemDownloadingStatusNotDownloaded KCFURLUbiquitousItemDownloadingStatusNotDownloaded string // KCFURLUbiquitousItemHasUnresolvedConflictsKey is a [CFBoolean] value that tells whether the item has conflicts outstanding. (read-only). // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemHasUnresolvedConflictsKey KCFURLUbiquitousItemHasUnresolvedConflictsKey string // KCFURLUbiquitousItemIsDownloadingKey is a [CFBoolean] value that tells whether data for the item is being downloaded. (read-only). // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemIsDownloadingKey KCFURLUbiquitousItemIsDownloadingKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemIsExcludedFromSyncKey KCFURLUbiquitousItemIsExcludedFromSyncKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemIsSyncPausedKey KCFURLUbiquitousItemIsSyncPausedKey string // KCFURLUbiquitousItemIsUploadedKey is a [CFBoolean] value that tells whether there is data present in the cloud for this item. (read-only). // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemIsUploadedKey KCFURLUbiquitousItemIsUploadedKey string // KCFURLUbiquitousItemIsUploadingKey is a [CFBoolean] value that tells whether data for the item is being uploaded. (read-only). // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemIsUploadingKey KCFURLUbiquitousItemIsUploadingKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemSupportedSyncControlsKey KCFURLUbiquitousItemSupportedSyncControlsKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLUbiquitousItemUploadingErrorKey KCFURLUbiquitousItemUploadingErrorKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeAvailableCapacityForImportantUsageKey KCFURLVolumeAvailableCapacityForImportantUsageKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeAvailableCapacityForOpportunisticUsageKey KCFURLVolumeAvailableCapacityForOpportunisticUsageKey string // KCFURLVolumeAvailableCapacityKey is key for the volume’s available capacity in bytes, returned as a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeAvailableCapacityKey KCFURLVolumeAvailableCapacityKey string // KCFURLVolumeCreationDateKey is key for the volume’s creation date, returned as a [CFDate] object, or [NULL] if it cannot be determined. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeCreationDateKey KCFURLVolumeCreationDateKey string // KCFURLVolumeIdentifierKey is key for the unique identifier of the resource’s volume, returned as a [CFType] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeIdentifierKey KCFURLVolumeIdentifierKey string // KCFURLVolumeIsAutomountedKey is key for determining whether the volume is automounted, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeIsAutomountedKey KCFURLVolumeIsAutomountedKey string // KCFURLVolumeIsBrowsableKey is key for determining whether the volume is visible in GUI-based file-browsing environments, such as the Desktop or the Finder application, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeIsBrowsableKey KCFURLVolumeIsBrowsableKey string // KCFURLVolumeIsEjectableKey is key for determining whether the volume is ejectable from the drive mechanism under software control, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeIsEjectableKey KCFURLVolumeIsEjectableKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeIsEncryptedKey KCFURLVolumeIsEncryptedKey string // KCFURLVolumeIsInternalKey is key for determining whether the volume is connected to an internal bus, returned as a [CFBoolean] object, or [NULL] if it cannot be determined. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeIsInternalKey KCFURLVolumeIsInternalKey string // KCFURLVolumeIsJournalingKey is key for determining whether the volume is currently journaling, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeIsJournalingKey KCFURLVolumeIsJournalingKey string // KCFURLVolumeIsLocalKey is key for determining whether the volume is stored on a local device, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeIsLocalKey KCFURLVolumeIsLocalKey string // KCFURLVolumeIsReadOnlyKey is key for determining whether the volume is read-only, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeIsReadOnlyKey KCFURLVolumeIsReadOnlyKey string // KCFURLVolumeIsRemovableKey is key for determining whether the volume is removable from the drive mechanism, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeIsRemovableKey KCFURLVolumeIsRemovableKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeIsRootFileSystemKey KCFURLVolumeIsRootFileSystemKey string // KCFURLVolumeLocalizedFormatDescriptionKey is key for the volume’s descriptive format name, returned as a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeLocalizedFormatDescriptionKey KCFURLVolumeLocalizedFormatDescriptionKey string // KCFURLVolumeLocalizedNameKey is the user-presentable name of the volume, returned as a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeLocalizedNameKey KCFURLVolumeLocalizedNameKey string // KCFURLVolumeMaximumFileSizeKey is key for the largest file size supported by the volume in bytes, returned as a [CFNumber] object, or [NULL] if it cannot be determined. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeMaximumFileSizeKey KCFURLVolumeMaximumFileSizeKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeMountFromLocationKey KCFURLVolumeMountFromLocationKey string // KCFURLVolumeNameKey is the name of the volume, returned as a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeNameKey KCFURLVolumeNameKey string // KCFURLVolumeResourceCountKey is key for the total number of resources on the volume, returned as a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeResourceCountKey KCFURLVolumeResourceCountKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSubtypeKey KCFURLVolumeSubtypeKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsAccessPermissionsKey KCFURLVolumeSupportsAccessPermissionsKey string // KCFURLVolumeSupportsAdvisoryFileLockingKey is key for determining whether the volume implements whole-file advisory locks in the style of flock, along with the `O_EXLOCK` and `O_SHLOCK` flags of the open function, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsAdvisoryFileLockingKey KCFURLVolumeSupportsAdvisoryFileLockingKey string // KCFURLVolumeSupportsCasePreservedNamesKey is key for determining whether the volume supports case-preserved names, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsCasePreservedNamesKey KCFURLVolumeSupportsCasePreservedNamesKey string // KCFURLVolumeSupportsCaseSensitiveNamesKey is key for determining whether the volume supports case-sensitive names, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsCaseSensitiveNamesKey KCFURLVolumeSupportsCaseSensitiveNamesKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsCompressionKey KCFURLVolumeSupportsCompressionKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsExclusiveRenamingKey KCFURLVolumeSupportsExclusiveRenamingKey string // KCFURLVolumeSupportsExtendedSecurityKey is key for determining whether the volume supports extended security (access control lists), returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsExtendedSecurityKey KCFURLVolumeSupportsExtendedSecurityKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsFileCloningKey KCFURLVolumeSupportsFileCloningKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsFileProtectionKey KCFURLVolumeSupportsFileProtectionKey string // KCFURLVolumeSupportsHardLinksKey is key for determining whether the volume supports hard links, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsHardLinksKey KCFURLVolumeSupportsHardLinksKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsImmutableFilesKey KCFURLVolumeSupportsImmutableFilesKey string // KCFURLVolumeSupportsJournalingKey is key for determining whether the volume supports journaling, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsJournalingKey KCFURLVolumeSupportsJournalingKey string // KCFURLVolumeSupportsPersistentIDsKey is key for determining whether the volume supports persistent IDs, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsPersistentIDsKey KCFURLVolumeSupportsPersistentIDsKey string // KCFURLVolumeSupportsRenamingKey is key for determining whether the volume can be renamed, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsRenamingKey KCFURLVolumeSupportsRenamingKey string // KCFURLVolumeSupportsRootDirectoryDatesKey is key for determining whether the volume supports reliable storage of times for the root directory, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsRootDirectoryDatesKey KCFURLVolumeSupportsRootDirectoryDatesKey string // KCFURLVolumeSupportsSparseFilesKey is key for determining whether the volume supports sparse files, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsSparseFilesKey KCFURLVolumeSupportsSparseFilesKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsSwapRenamingKey KCFURLVolumeSupportsSwapRenamingKey string // KCFURLVolumeSupportsSymbolicLinksKey is key for determining whether the volume supports symbolic links, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsSymbolicLinksKey KCFURLVolumeSupportsSymbolicLinksKey string // KCFURLVolumeSupportsVolumeSizesKey is key for determining whether the volume supports returning volume size information, returned as a [CFBoolean] object. If `true`, volume size information is available as values of the [kCFURLVolumeTotalCapacityKey] and [kCFURLVolumeAvailableCapacityKey] keys. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsVolumeSizesKey KCFURLVolumeSupportsVolumeSizesKey string // KCFURLVolumeSupportsZeroRunsKey is key for determining whether the volume supports zero runs, returned as a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeSupportsZeroRunsKey KCFURLVolumeSupportsZeroRunsKey string // KCFURLVolumeTotalCapacityKey is key for the volume’s capacity in bytes, returned as a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeTotalCapacityKey KCFURLVolumeTotalCapacityKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeTypeNameKey KCFURLVolumeTypeNameKey string // KCFURLVolumeURLForRemountingKey is key for the URL needed to remount the network volume, returned as a [CFURL] object, or [NULL] if a URL is not available. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeURLForRemountingKey KCFURLVolumeURLForRemountingKey string // KCFURLVolumeURLKey is key for the root directory of the resource’s volume, returned as a [CFURL] object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeURLKey KCFURLVolumeURLKey string // KCFURLVolumeUUIDStringKey is key for the volume’s persistent UUID, returned as a [CFString] object, or [NULL] if a persistent UUID is not available. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFURLVolumeUUIDStringKey KCFURLVolumeUUIDStringKey string // KCFUserNotificationAlertHeaderKey is the title of the notification dialog. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationAlertHeaderKey KCFUserNotificationAlertHeaderKey string // KCFUserNotificationAlertMessageKey is the message string to display in the dialog. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationAlertMessageKey KCFUserNotificationAlertMessageKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationAlertTopMostKey KCFUserNotificationAlertTopMostKey string // KCFUserNotificationAlternateButtonTitleKey is the title of an optional alternate button. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationAlternateButtonTitleKey KCFUserNotificationAlternateButtonTitleKey string // KCFUserNotificationCheckBoxTitlesKey is the list of titles for all the checkboxes or radio buttons to display. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationCheckBoxTitlesKey KCFUserNotificationCheckBoxTitlesKey string // KCFUserNotificationDefaultButtonTitleKey is the title of the default button. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationDefaultButtonTitleKey KCFUserNotificationDefaultButtonTitleKey string // KCFUserNotificationIconURLKey is a file URL pointing to the icon to display in the dialog. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationIconURLKey KCFUserNotificationIconURLKey string // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationKeyboardTypesKey KCFUserNotificationKeyboardTypesKey string // KCFUserNotificationLocalizationURLKey is a file URL pointing to a bundle that contains localized versions of the strings displayed in the dialog. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationLocalizationURLKey KCFUserNotificationLocalizationURLKey string // KCFUserNotificationOtherButtonTitleKey is the title of an optional third button. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationOtherButtonTitleKey KCFUserNotificationOtherButtonTitleKey string // KCFUserNotificationPopUpSelectionKey is the item that was selected from a pop-up menu. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationPopUpSelectionKey KCFUserNotificationPopUpSelectionKey string // KCFUserNotificationPopUpTitlesKey is the list of strings to display in a pop-up menu. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationPopUpTitlesKey KCFUserNotificationPopUpTitlesKey string // KCFUserNotificationProgressIndicatorValueKey is a value to indicate the progress of an operation. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationProgressIndicatorValueKey KCFUserNotificationProgressIndicatorValueKey string // KCFUserNotificationSoundURLKey is a file URL pointing to a sound that will be played when the alert appears. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationSoundURLKey KCFUserNotificationSoundURLKey string // KCFUserNotificationTextFieldTitlesKey is the list of titles for all the text fields to display. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationTextFieldTitlesKey KCFUserNotificationTextFieldTitlesKey string // KCFUserNotificationTextFieldValuesKey is the list of values to put into the text fields. If only one text field is to be displayed, you can pass its value string directly without putting it into an array first. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFUserNotificationTextFieldValuesKey KCFUserNotificationTextFieldValuesKey string // KCFXMLTreeErrorDescription is dictionary key whose value is a CFString containing a readable description of the error. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFXMLTreeErrorDescription KCFXMLTreeErrorDescription string // KCFXMLTreeErrorLineNumber is dictionary key whose value is a CFNumber containing the line number where the error was detected. This may not be the line number where the actual XML error is located. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFXMLTreeErrorLineNumber KCFXMLTreeErrorLineNumber string // KCFXMLTreeErrorLocation is dictionary key whose value is a CFNumber containing the byte location where the error was detected. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFXMLTreeErrorLocation KCFXMLTreeErrorLocation string // KCFXMLTreeErrorStatusCode is dictionary key whose value is a CFNumber containing the error status code. See [CFXMLParser] for possible status code values. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFXMLTreeErrorStatusCode KCFXMLTreeErrorStatusCode string )
Functions ¶
func CFAllocatorAllocate ¶
func CFAllocatorAllocate(allocator CFAllocatorRef, size int, hint uint64) unsafe.Pointer
CFAllocatorAllocate allocates memory using the specified allocator.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorAllocate(_:_:_:)
func CFAllocatorAllocateBytes ¶
func CFAllocatorAllocateBytes(allocator CFAllocatorRef, size int, hint uint64) unsafe.Pointer
CFAllocatorAllocateBytes.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorAllocateBytes(_:_:_:)
func CFAllocatorAllocateTyped ¶
func CFAllocatorAllocateTyped(allocator CFAllocatorRef, size int, descriptor CFAllocatorTypeID, hint uint64) unsafe.Pointer
CFAllocatorAllocateTyped.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorAllocateTyped(_:_:_:_:)
func CFAllocatorDeallocate ¶
func CFAllocatorDeallocate(allocator CFAllocatorRef, ptr unsafe.Pointer)
CFAllocatorDeallocate deallocates a block of memory with a given allocator.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorDeallocate(_:_:)
func CFAllocatorGetContext ¶
func CFAllocatorGetContext(allocator CFAllocatorRef, context *CFAllocatorContext)
CFAllocatorGetContext obtains the context of the specified allocator or of the default allocator.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorGetContext(_:_:)
func CFAllocatorGetPreferredSizeForSize ¶
func CFAllocatorGetPreferredSizeForSize(allocator CFAllocatorRef, size int, hint uint64) int
CFAllocatorGetPreferredSizeForSize obtains the number of bytes likely to be allocated upon a specific request.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorGetPreferredSizeForSize(_:_:_:)
func CFAllocatorGetTypeID ¶
func CFAllocatorGetTypeID() uint
CFAllocatorGetTypeID returns the type identifier for the CFAllocator opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorGetTypeID()
func CFAllocatorReallocate ¶
func CFAllocatorReallocate(allocator CFAllocatorRef, ptr unsafe.Pointer, newsize int, hint uint64) unsafe.Pointer
CFAllocatorReallocate reallocates memory using the specified allocator.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorReallocate(_:_:_:_:)
func CFAllocatorReallocateBytes ¶
func CFAllocatorReallocateBytes(allocator CFAllocatorRef, ptr unsafe.Pointer, newsize int, hint uint64) unsafe.Pointer
CFAllocatorReallocateBytes.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorReallocateBytes(_:_:_:_:)
func CFAllocatorReallocateTyped ¶
func CFAllocatorReallocateTyped(allocator CFAllocatorRef, ptr unsafe.Pointer, newsize int, descriptor CFAllocatorTypeID, hint uint64) unsafe.Pointer
CFAllocatorReallocateTyped.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorReallocateTyped(_:_:_:_:_:)
func CFAllocatorSetDefault ¶
func CFAllocatorSetDefault(allocator CFAllocatorRef)
CFAllocatorSetDefault sets the given allocator as the default for the current thread.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorSetDefault(_:)
func CFArrayAppendArray ¶
func CFArrayAppendArray(theArray CFMutableArrayRef, otherArray CFArrayRef, otherRange CFRange)
CFArrayAppendArray adds the values from one array to another array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayAppendArray(_:_:_:)
func CFArrayAppendValue ¶
func CFArrayAppendValue(theArray CFMutableArrayRef, value unsafe.Pointer)
CFArrayAppendValue adds a value to an array giving it the new largest index.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayAppendValue(_:_:)
func CFArrayApplyFunction ¶
func CFArrayApplyFunction(theArray CFArrayRef, range_ CFRange, applier CFArrayApplierFunction, context unsafe.Pointer)
CFArrayApplyFunction calls a function once for each element in range in an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayApplyFunction(_:_:_:_:)
func CFArrayBSearchValues ¶
func CFArrayBSearchValues(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer, comparator CFComparatorFunction, context unsafe.Pointer) int
CFArrayBSearchValues searches an array for a value using a binary search algorithm.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayBSearchValues(_:_:_:_:_:)
func CFArrayContainsValue ¶
func CFArrayContainsValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) bool
CFArrayContainsValue reports whether or not a value is in an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayContainsValue(_:_:_:)
func CFArrayExchangeValuesAtIndices ¶
func CFArrayExchangeValuesAtIndices(theArray CFMutableArrayRef, idx1 int, idx2 int)
CFArrayExchangeValuesAtIndices exchanges the values at two indices of an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayExchangeValuesAtIndices(_:_:_:)
func CFArrayGetCount ¶
func CFArrayGetCount(theArray CFArrayRef) int
CFArrayGetCount returns the number of values currently in an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetCount(_:)
func CFArrayGetCountOfValue ¶
func CFArrayGetCountOfValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) int
CFArrayGetCountOfValue counts the number of times a given value occurs in an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetCountOfValue(_:_:_:)
func CFArrayGetFirstIndexOfValue ¶
func CFArrayGetFirstIndexOfValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) int
CFArrayGetFirstIndexOfValue searches an array forward for a value.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetFirstIndexOfValue(_:_:_:)
func CFArrayGetLastIndexOfValue ¶
func CFArrayGetLastIndexOfValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) int
CFArrayGetLastIndexOfValue searches an array backward for a value.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetLastIndexOfValue(_:_:_:)
func CFArrayGetTypeID ¶
func CFArrayGetTypeID() uint
CFArrayGetTypeID returns the type identifier for the CFArray opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetTypeID()
func CFArrayGetValueAtIndex ¶
func CFArrayGetValueAtIndex(theArray CFArrayRef, idx int) unsafe.Pointer
CFArrayGetValueAtIndex retrieves a value at a given index.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetValueAtIndex(_:_:)
func CFArrayGetValues ¶
func CFArrayGetValues(theArray CFArrayRef, range_ CFRange, values unsafe.Pointer)
CFArrayGetValues fills a buffer with values from an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetValues(_:_:_:)
func CFArrayInsertValueAtIndex ¶
func CFArrayInsertValueAtIndex(theArray CFMutableArrayRef, idx int, value unsafe.Pointer)
CFArrayInsertValueAtIndex inserts a value into an array at a given index.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayInsertValueAtIndex(_:_:_:)
func CFArrayRemoveAllValues ¶
func CFArrayRemoveAllValues(theArray CFMutableArrayRef)
CFArrayRemoveAllValues removes all the values from an array, making it empty.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayRemoveAllValues(_:)
func CFArrayRemoveValueAtIndex ¶
func CFArrayRemoveValueAtIndex(theArray CFMutableArrayRef, idx int)
CFArrayRemoveValueAtIndex removes the value at a given index from an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayRemoveValueAtIndex(_:_:)
func CFArrayReplaceValues ¶
func CFArrayReplaceValues(theArray CFMutableArrayRef, range_ CFRange, newValues unsafe.Pointer, newCount int)
CFArrayReplaceValues replaces a range of values in an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayReplaceValues(_:_:_:_:)
func CFArraySetValueAtIndex ¶
func CFArraySetValueAtIndex(theArray CFMutableArrayRef, idx int, value unsafe.Pointer)
CFArraySetValueAtIndex changes the value at a given index in an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArraySetValueAtIndex(_:_:_:)
func CFArraySortValues ¶
func CFArraySortValues(theArray CFMutableArrayRef, range_ CFRange, comparator CFComparatorFunction, context unsafe.Pointer)
CFArraySortValues sorts the values in an array using a given comparison function.
See: https://developer.apple.com/documentation/CoreFoundation/CFArraySortValues(_:_:_:_:)
func CFAttributedStringBeginEditing ¶
func CFAttributedStringBeginEditing(aStr CFMutableAttributedStringRef)
CFAttributedStringBeginEditing defers internal consistency-checking and coalescing for a mutable attributed string.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringBeginEditing(_:)
func CFAttributedStringEndEditing ¶
func CFAttributedStringEndEditing(aStr CFMutableAttributedStringRef)
CFAttributedStringEndEditing re-enables internal consistency-checking and coalescing for a mutable attributed string.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringEndEditing(_:)
func CFAttributedStringGetBidiLevelsAndResolvedDirections ¶
func CFAttributedStringGetBidiLevelsAndResolvedDirections(attributedString CFAttributedStringRef, range_ CFRange, baseDirection int8, bidiLevels *uint8, baseDirections *uint8) bool
CFAttributedStringGetBidiLevelsAndResolvedDirections.
func CFAttributedStringGetLength ¶
func CFAttributedStringGetLength(aStr CFAttributedStringRef) int
CFAttributedStringGetLength returns the length of the attributed string in characters.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetLength(_:)
func CFAttributedStringGetStatisticalWritingDirections ¶
func CFAttributedStringGetStatisticalWritingDirections(attributedString CFAttributedStringRef, range_ CFRange, baseDirection int8, bidiLevels *uint8, baseDirections *uint8) bool
CFAttributedStringGetStatisticalWritingDirections.
func CFAttributedStringGetTypeID ¶
func CFAttributedStringGetTypeID() uint
CFAttributedStringGetTypeID returns the type identifier for the CFAttributedString opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetTypeID()
func CFAttributedStringRemoveAttribute ¶
func CFAttributedStringRemoveAttribute(aStr CFMutableAttributedStringRef, range_ CFRange, attrName CFStringRef)
CFAttributedStringRemoveAttribute removes the value of a single attribute over a specified range.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringRemoveAttribute(_:_:_:)
func CFAttributedStringReplaceAttributedString ¶
func CFAttributedStringReplaceAttributedString(aStr CFMutableAttributedStringRef, range_ CFRange, replacement CFAttributedStringRef)
CFAttributedStringReplaceAttributedString replaces the attributed substring over a range with another attributed string.
func CFAttributedStringReplaceString ¶
func CFAttributedStringReplaceString(aStr CFMutableAttributedStringRef, range_ CFRange, replacement CFStringRef)
CFAttributedStringReplaceString modifies the string of an attributed string.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringReplaceString(_:_:_:)
func CFAttributedStringSetAttribute ¶
func CFAttributedStringSetAttribute(aStr CFMutableAttributedStringRef, range_ CFRange, attrName CFStringRef, value CFTypeRef)
CFAttributedStringSetAttribute sets the value of a single attribute over the specified range.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringSetAttribute(_:_:_:_:)
func CFAttributedStringSetAttributes ¶
func CFAttributedStringSetAttributes(aStr CFMutableAttributedStringRef, range_ CFRange, replacement CFDictionaryRef, clearOtherAttributes bool)
CFAttributedStringSetAttributes sets the value of attributes of a mutable attributed string over a specified range.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringSetAttributes(_:_:_:_:)
func CFBagAddValue ¶
func CFBagAddValue(theBag CFMutableBagRef, value unsafe.Pointer)
CFBagAddValue adds a value to a mutable bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagAddValue(_:_:)
func CFBagApplyFunction ¶
func CFBagApplyFunction(theBag CFBagRef, applier CFBagApplierFunction, context unsafe.Pointer)
CFBagApplyFunction calls a function once for each value in a bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagApplyFunction(_:_:_:)
func CFBagContainsValue ¶
CFBagContainsValue reports whether or not a value is in a bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagContainsValue(_:_:)
func CFBagGetCount ¶
CFBagGetCount returns the number of values currently in a bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagGetCount(_:)
func CFBagGetCountOfValue ¶
CFBagGetCountOfValue returns the number of times a value occurs in a bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagGetCountOfValue(_:_:)
func CFBagGetTypeID ¶
func CFBagGetTypeID() uint
CFBagGetTypeID returns the type identifier for the CFBag opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagGetTypeID()
func CFBagGetValue ¶
CFBagGetValue returns a requested value from a bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagGetValue(_:_:)
func CFBagGetValueIfPresent ¶
CFBagGetValueIfPresent reports whether or not a value is in a bag, and returns that value indirectly if it exists.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagGetValueIfPresent(_:_:_:)
func CFBagGetValues ¶
CFBagGetValues fills a buffer with values from a bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagGetValues(_:_:)
func CFBagRemoveAllValues ¶
func CFBagRemoveAllValues(theBag CFMutableBagRef)
CFBagRemoveAllValues removes all values from a mutable bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagRemoveAllValues(_:)
func CFBagRemoveValue ¶
func CFBagRemoveValue(theBag CFMutableBagRef, value unsafe.Pointer)
CFBagRemoveValue removes a value from a mutable bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagRemoveValue(_:_:)
func CFBagReplaceValue ¶
func CFBagReplaceValue(theBag CFMutableBagRef, value unsafe.Pointer)
CFBagReplaceValue replaces a value in a mutable bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagReplaceValue(_:_:)
func CFBagSetValue ¶
func CFBagSetValue(theBag CFMutableBagRef, value unsafe.Pointer)
CFBagSetValue sets a value in a mutable bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagSetValue(_:_:)
func CFBinaryHeapAddValue ¶
func CFBinaryHeapAddValue(heap CFBinaryHeapRef, value unsafe.Pointer)
CFBinaryHeapAddValue adds a value to a binary heap.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapAddValue(_:_:)
func CFBinaryHeapApplyFunction ¶
func CFBinaryHeapApplyFunction(heap CFBinaryHeapRef, applier CFBinaryHeapApplierFunction, context unsafe.Pointer)
CFBinaryHeapApplyFunction iteratively applies a function to all the values in a binary heap.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapApplyFunction(_:_:_:)
func CFBinaryHeapContainsValue ¶
func CFBinaryHeapContainsValue(heap CFBinaryHeapRef, value unsafe.Pointer) bool
CFBinaryHeapContainsValue returns whether a given value is in a binary heap.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapContainsValue(_:_:)
func CFBinaryHeapGetCount ¶
func CFBinaryHeapGetCount(heap CFBinaryHeapRef) int
CFBinaryHeapGetCount returns the number of values currently in a binary heap.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapGetCount(_:)
func CFBinaryHeapGetCountOfValue ¶
func CFBinaryHeapGetCountOfValue(heap CFBinaryHeapRef, value unsafe.Pointer) int
CFBinaryHeapGetCountOfValue counts the number of times a given value occurs in a binary heap.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapGetCountOfValue(_:_:)
func CFBinaryHeapGetMinimum ¶
func CFBinaryHeapGetMinimum(heap CFBinaryHeapRef) unsafe.Pointer
CFBinaryHeapGetMinimum returns the minimum value in a binary heap.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapGetMinimum(_:)
func CFBinaryHeapGetMinimumIfPresent ¶
func CFBinaryHeapGetMinimumIfPresent(heap CFBinaryHeapRef, value unsafe.Pointer) bool
CFBinaryHeapGetMinimumIfPresent returns the minimum value in a binary heap, if present.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapGetMinimumIfPresent(_:_:)
func CFBinaryHeapGetTypeID ¶
func CFBinaryHeapGetTypeID() uint
CFBinaryHeapGetTypeID returns the type identifier of the [CFBinaryHeap] opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapGetTypeID()
func CFBinaryHeapGetValues ¶
func CFBinaryHeapGetValues(heap CFBinaryHeapRef, values unsafe.Pointer)
CFBinaryHeapGetValues copies all the values from a binary heap into a sorted C array.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapGetValues(_:_:)
func CFBinaryHeapRemoveAllValues ¶
func CFBinaryHeapRemoveAllValues(heap CFBinaryHeapRef)
CFBinaryHeapRemoveAllValues removes all values from a binary heap, making it empty.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapRemoveAllValues(_:)
func CFBinaryHeapRemoveMinimumValue ¶
func CFBinaryHeapRemoveMinimumValue(heap CFBinaryHeapRef)
CFBinaryHeapRemoveMinimumValue removes the minimum value from a binary heap.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapRemoveMinimumValue(_:)
func CFBitVectorContainsBit ¶
func CFBitVectorContainsBit(bv CFBitVectorRef, range_ CFRange, value CFBit) bool
CFBitVectorContainsBit returns whether a bit vector contains a particular bit value.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorContainsBit(_:_:_:)
func CFBitVectorFlipBitAtIndex ¶
func CFBitVectorFlipBitAtIndex(bv CFMutableBitVectorRef, idx int)
CFBitVectorFlipBitAtIndex flips a bit value in a bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorFlipBitAtIndex(_:_:)
func CFBitVectorFlipBits ¶
func CFBitVectorFlipBits(bv CFMutableBitVectorRef, range_ CFRange)
CFBitVectorFlipBits flips a range of bit values in a bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorFlipBits(_:_:)
func CFBitVectorGetBits ¶
func CFBitVectorGetBits(bv CFBitVectorRef, range_ CFRange, bytes *uint8)
CFBitVectorGetBits returns the bit values in a range of indices in a bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetBits(_:_:_:)
func CFBitVectorGetCount ¶
func CFBitVectorGetCount(bv CFBitVectorRef) int
CFBitVectorGetCount returns the number of bit values in a bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetCount(_:)
func CFBitVectorGetCountOfBit ¶
func CFBitVectorGetCountOfBit(bv CFBitVectorRef, range_ CFRange, value CFBit) int
CFBitVectorGetCountOfBit counts the number of times a certain bit value occurs within a range of bits in a bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetCountOfBit(_:_:_:)
func CFBitVectorGetFirstIndexOfBit ¶
func CFBitVectorGetFirstIndexOfBit(bv CFBitVectorRef, range_ CFRange, value CFBit) int
CFBitVectorGetFirstIndexOfBit locates the first occurrence of a certain bit value within a range of bits in a bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetFirstIndexOfBit(_:_:_:)
func CFBitVectorGetLastIndexOfBit ¶
func CFBitVectorGetLastIndexOfBit(bv CFBitVectorRef, range_ CFRange, value CFBit) int
CFBitVectorGetLastIndexOfBit locates the last occurrence of a certain bit value within a range of bits in a bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetLastIndexOfBit(_:_:_:)
func CFBitVectorGetTypeID ¶
func CFBitVectorGetTypeID() uint
CFBitVectorGetTypeID returns the type identifier for the CFBitVector opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetTypeID()
func CFBitVectorSetAllBits ¶
func CFBitVectorSetAllBits(bv CFMutableBitVectorRef, value CFBit)
CFBitVectorSetAllBits sets all bits in a bit vector to a particular value.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorSetAllBits(_:_:)
func CFBitVectorSetBitAtIndex ¶
func CFBitVectorSetBitAtIndex(bv CFMutableBitVectorRef, idx int, value CFBit)
CFBitVectorSetBitAtIndex sets the value of a particular bit in a bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorSetBitAtIndex(_:_:_:)
func CFBitVectorSetBits ¶
func CFBitVectorSetBits(bv CFMutableBitVectorRef, range_ CFRange, value CFBit)
CFBitVectorSetBits sets a range of bits in a bit vector to a particular value.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorSetBits(_:_:_:)
func CFBitVectorSetCount ¶
func CFBitVectorSetCount(bv CFMutableBitVectorRef, count int)
CFBitVectorSetCount changes the size of a mutable bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorSetCount(_:_:)
func CFBooleanGetTypeID ¶
func CFBooleanGetTypeID() uint
CFBooleanGetTypeID returns the Core Foundation type identifier for the CFBoolean opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFBooleanGetTypeID()
func CFBooleanGetValue ¶
func CFBooleanGetValue(boolean CFBooleanRef) bool
CFBooleanGetValue returns the value of a CFBoolean object as a standard C type [Boolean].
See: https://developer.apple.com/documentation/CoreFoundation/CFBooleanGetValue(_:)
func CFBundleGetDataPointerForName ¶
func CFBundleGetDataPointerForName(bundle CFBundleRef, symbolName CFStringRef) unsafe.Pointer
CFBundleGetDataPointerForName returns a data pointer to a symbol of the given name.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetDataPointerForName(_:_:)
func CFBundleGetDataPointersForNames ¶
func CFBundleGetDataPointersForNames(bundle CFBundleRef, symbolNames CFArrayRef, stbl unsafe.Pointer)
CFBundleGetDataPointersForNames returns a C array of data pointer to symbols of the given names.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetDataPointersForNames(_:_:_:)
func CFBundleGetFunctionPointerForName ¶
func CFBundleGetFunctionPointerForName(bundle CFBundleRef, functionName CFStringRef) unsafe.Pointer
CFBundleGetFunctionPointerForName returns a pointer to a function in a bundle’s executable code using the function name as the search key.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetFunctionPointerForName(_:_:)
func CFBundleGetFunctionPointersForNames ¶
func CFBundleGetFunctionPointersForNames(bundle CFBundleRef, functionNames CFArrayRef, ftbl unsafe.Pointer)
CFBundleGetFunctionPointersForNames constructs a function table containing pointers to all of the functions found in a bundle’s main executable code.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetFunctionPointersForNames(_:_:_:)
func CFBundleGetPackageInfo ¶
func CFBundleGetPackageInfo(bundle CFBundleRef, packageType *uint32, packageCreator *uint32)
CFBundleGetPackageInfo returns a bundle’s package type and creator.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetPackageInfo(_:_:_:)
func CFBundleGetPackageInfoInDirectory ¶
func CFBundleGetPackageInfoInDirectory(url CFURLRef, packageType *uint32, packageCreator *uint32) bool
CFBundleGetPackageInfoInDirectory returns a bundle’s package type and creator without having to create a CFBundle object.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetPackageInfoInDirectory(_:_:_:)
func CFBundleGetTypeID ¶
func CFBundleGetTypeID() uint
CFBundleGetTypeID returns the type identifier for the CFBundle opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetTypeID()
func CFBundleGetVersionNumber ¶
func CFBundleGetVersionNumber(bundle CFBundleRef) uint32
CFBundleGetVersionNumber returns a bundle’s version number.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetVersionNumber(_:)
func CFBundleIsArchitectureLoadable ¶
CFBundleIsArchitectureLoadable.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleIsArchitectureLoadable(_:)
func CFBundleIsExecutableLoadable ¶
func CFBundleIsExecutableLoadable(bundle CFBundleRef) bool
CFBundleIsExecutableLoadable.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleIsExecutableLoadable(_:)
func CFBundleIsExecutableLoadableForURL ¶
CFBundleIsExecutableLoadableForURL.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleIsExecutableLoadableForURL(_:)
func CFBundleIsExecutableLoaded ¶
func CFBundleIsExecutableLoaded(bundle CFBundleRef) bool
CFBundleIsExecutableLoaded obtains information about the load status for a bundle’s main executable.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleIsExecutableLoaded(_:)
func CFBundleLoadExecutable ¶
func CFBundleLoadExecutable(bundle CFBundleRef) bool
CFBundleLoadExecutable loads a bundle’s main executable code into memory and dynamically links it into the running application.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleLoadExecutable(_:)
func CFBundleLoadExecutableAndReturnError ¶
func CFBundleLoadExecutableAndReturnError(bundle CFBundleRef, err *CFErrorRef) bool
CFBundleLoadExecutableAndReturnError returns a Boolean value that indicates whether a given bundle is loaded, attempting to load it if necessary.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleLoadExecutableAndReturnError(_:_:)
func CFBundlePreflightExecutable ¶
func CFBundlePreflightExecutable(bundle CFBundleRef, err *CFErrorRef) bool
CFBundlePreflightExecutable returns a Boolean value that indicates whether a given bundle is loaded or appears to be loadable.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundlePreflightExecutable(_:_:)
func CFBundleUnloadExecutable ¶
func CFBundleUnloadExecutable(bundle CFBundleRef)
CFBundleUnloadExecutable unloads the main executable for the specified bundle.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleUnloadExecutable(_:)
func CFCalendarAddComponents ¶
func CFCalendarAddComponents(calendar CFCalendarRef, at *CFAbsoluteTime, options uint64, componentDesc string) bool
CFCalendarAddComponents computes the absolute time when specified components are added to a given absolute time.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarAddComponents
func CFCalendarComposeAbsoluteTime ¶
func CFCalendarComposeAbsoluteTime(calendar CFCalendarRef, at *CFAbsoluteTime, componentDesc string) bool
CFCalendarComposeAbsoluteTime computes the absolute time from components in a description string.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarComposeAbsoluteTime
func CFCalendarDecomposeAbsoluteTime ¶
func CFCalendarDecomposeAbsoluteTime(calendar CFCalendarRef, at CFAbsoluteTime, componentDesc string) bool
CFCalendarDecomposeAbsoluteTime computes the components which are indicated by the componentDesc description string for the given absolute time.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarDecomposeAbsoluteTime
func CFCalendarGetComponentDifference ¶
func CFCalendarGetComponentDifference(calendar CFCalendarRef, startingAT CFAbsoluteTime, resultAT CFAbsoluteTime, options uint64, componentDesc string) bool
CFCalendarGetComponentDifference computes the difference between the two absolute times, in terms of specified calendrical components.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetComponentDifference
func CFCalendarGetFirstWeekday ¶
func CFCalendarGetFirstWeekday(calendar CFCalendarRef) int
CFCalendarGetFirstWeekday returns the index of first weekday for a specified calendar.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetFirstWeekday(_:)
func CFCalendarGetMinimumDaysInFirstWeek ¶
func CFCalendarGetMinimumDaysInFirstWeek(calendar CFCalendarRef) int
CFCalendarGetMinimumDaysInFirstWeek returns the minimum number of days in the first week of a specified calendar.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetMinimumDaysInFirstWeek(_:)
func CFCalendarGetOrdinalityOfUnit ¶
func CFCalendarGetOrdinalityOfUnit(calendar CFCalendarRef, smallerUnit CFCalendarUnit, biggerUnit CFCalendarUnit, at CFAbsoluteTime) int
CFCalendarGetOrdinalityOfUnit returns the ordinal number of a calendrical unit within a larger unit at a specified absolute time.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetOrdinalityOfUnit(_:_:_:_:)
func CFCalendarGetTimeRangeOfUnit ¶
func CFCalendarGetTimeRangeOfUnit(calendar CFCalendarRef, unit CFCalendarUnit, at CFAbsoluteTime, startp *CFAbsoluteTime, tip *float64) bool
CFCalendarGetTimeRangeOfUnit returns by reference the start time and duration of a given calendar unit that contains a given absolute time.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetTimeRangeOfUnit(_:_:_:_:_:)
func CFCalendarGetTypeID ¶
func CFCalendarGetTypeID() uint
CFCalendarGetTypeID returns the type identifier for the CFCalendar opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetTypeID()
func CFCalendarSetFirstWeekday ¶
func CFCalendarSetFirstWeekday(calendar CFCalendarRef, wkdy int)
CFCalendarSetFirstWeekday sets the first weekday for a calendar.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarSetFirstWeekday(_:_:)
func CFCalendarSetLocale ¶
func CFCalendarSetLocale(calendar CFCalendarRef, locale CFLocaleRef)
CFCalendarSetLocale sets the locale for a calendar.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarSetLocale(_:_:)
func CFCalendarSetMinimumDaysInFirstWeek ¶
func CFCalendarSetMinimumDaysInFirstWeek(calendar CFCalendarRef, mwd int)
CFCalendarSetMinimumDaysInFirstWeek sets the minimum number of days in the first week of a specified calendar.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarSetMinimumDaysInFirstWeek(_:_:)
func CFCalendarSetTimeZone ¶
func CFCalendarSetTimeZone(calendar CFCalendarRef, tz CFTimeZoneRef)
CFCalendarSetTimeZone sets the time zone for a calendar.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarSetTimeZone(_:_:)
func CFCharacterSetAddCharactersInRange ¶
func CFCharacterSetAddCharactersInRange(theSet CFMutableCharacterSetRef, theRange CFRange)
CFCharacterSetAddCharactersInRange adds a given range to a character set.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetAddCharactersInRange(_:_:)
func CFCharacterSetAddCharactersInString ¶
func CFCharacterSetAddCharactersInString(theSet CFMutableCharacterSetRef, theString CFStringRef)
CFCharacterSetAddCharactersInString adds the characters in a given string to a character set.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetAddCharactersInString(_:_:)
func CFCharacterSetGetTypeID ¶
func CFCharacterSetGetTypeID() uint
CFCharacterSetGetTypeID returns the type identifier of the CFCharacterSet opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetGetTypeID()
func CFCharacterSetHasMemberInPlane ¶
func CFCharacterSetHasMemberInPlane(theSet CFCharacterSetRef, thePlane int) bool
CFCharacterSetHasMemberInPlane reports whether or not a character set contains at least one member character in the specified plane.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetHasMemberInPlane(_:_:)
func CFCharacterSetIntersect ¶
func CFCharacterSetIntersect(theSet CFMutableCharacterSetRef, theOtherSet CFCharacterSetRef)
CFCharacterSetIntersect forms an intersection of two character sets.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetIntersect(_:_:)
func CFCharacterSetInvert ¶
func CFCharacterSetInvert(theSet CFMutableCharacterSetRef)
CFCharacterSetInvert inverts the content of a given character set.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetInvert(_:)
func CFCharacterSetIsCharacterMember ¶
func CFCharacterSetIsCharacterMember(theSet CFCharacterSetRef, theChar uint16) bool
CFCharacterSetIsCharacterMember reports whether or not a given Unicode character is in a character set.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetIsCharacterMember(_:_:)
func CFCharacterSetIsLongCharacterMember ¶
func CFCharacterSetIsLongCharacterMember(theSet CFCharacterSetRef, theChar uint32) bool
CFCharacterSetIsLongCharacterMember reports whether or not a given UTF-32 character is in a character set.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetIsLongCharacterMember(_:_:)
func CFCharacterSetIsSupersetOfSet ¶
func CFCharacterSetIsSupersetOfSet(theSet CFCharacterSetRef, theOtherset CFCharacterSetRef) bool
CFCharacterSetIsSupersetOfSet reports whether or not a character set is a superset of another set.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetIsSupersetOfSet(_:_:)
func CFCharacterSetRemoveCharactersInRange ¶
func CFCharacterSetRemoveCharactersInRange(theSet CFMutableCharacterSetRef, theRange CFRange)
CFCharacterSetRemoveCharactersInRange removes a given range of Unicode characters from a character set.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetRemoveCharactersInRange(_:_:)
func CFCharacterSetRemoveCharactersInString ¶
func CFCharacterSetRemoveCharactersInString(theSet CFMutableCharacterSetRef, theString CFStringRef)
CFCharacterSetRemoveCharactersInString removes the characters in a given string from a character set.
func CFCharacterSetUnion ¶
func CFCharacterSetUnion(theSet CFMutableCharacterSetRef, theOtherSet CFCharacterSetRef)
CFCharacterSetUnion forms the union of two character sets.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetUnion(_:_:)
func CFDataAppendBytes ¶
func CFDataAppendBytes(theData CFMutableDataRef, bytes *uint8, length int)
CFDataAppendBytes appends the bytes from a byte buffer to the contents of a CFData object.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataAppendBytes(_:_:_:)
func CFDataDeleteBytes ¶
func CFDataDeleteBytes(theData CFMutableDataRef, range_ CFRange)
CFDataDeleteBytes deletes the bytes in a CFMutableData object within a specified range.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataDeleteBytes(_:_:)
func CFDataGetBytePtr ¶
CFDataGetBytePtr returns a read-only pointer to the bytes of a CFData object.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataGetBytePtr(_:)
func CFDataGetBytes ¶
CFDataGetBytes copies the byte contents of a CFData object to an external buffer.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataGetBytes(_:_:_:)
func CFDataGetLength ¶
CFDataGetLength returns the number of bytes contained by a CFData object.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataGetLength(_:)
func CFDataGetMutableBytePtr ¶
func CFDataGetMutableBytePtr(theData CFMutableDataRef) *uint8
CFDataGetMutableBytePtr returns a pointer to a mutable byte buffer of a CFMutableData object.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataGetMutableBytePtr(_:)
func CFDataGetTypeID ¶
func CFDataGetTypeID() uint
CFDataGetTypeID returns the type identifier for the CFData opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataGetTypeID()
func CFDataIncreaseLength ¶
func CFDataIncreaseLength(theData CFMutableDataRef, extraLength int)
CFDataIncreaseLength increases the length of a CFMutableData object’s internal byte buffer, zero-filling the extension to the buffer.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataIncreaseLength(_:_:)
func CFDataReplaceBytes ¶
func CFDataReplaceBytes(theData CFMutableDataRef, range_ CFRange, newBytes *uint8, newLength int)
CFDataReplaceBytes replaces those bytes in a CFMutableData object that fall within a specified range with other bytes.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataReplaceBytes(_:_:_:_:)
func CFDataSetLength ¶
func CFDataSetLength(theData CFMutableDataRef, length int)
CFDataSetLength resets the length of a CFMutableData object’s internal byte buffer.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataSetLength(_:_:)
func CFDateFormatterGetAbsoluteTimeFromString ¶
func CFDateFormatterGetAbsoluteTimeFromString(formatter CFDateFormatterRef, string_ CFStringRef, rangep *CFRange, atp *CFAbsoluteTime) bool
CFDateFormatterGetAbsoluteTimeFromString returns an absolute time object representing a given string.
func CFDateFormatterGetTypeID ¶
func CFDateFormatterGetTypeID() uint
CFDateFormatterGetTypeID returns the type identifier for CFDateFormatter.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterGetTypeID()
func CFDateFormatterSetFormat ¶
func CFDateFormatterSetFormat(formatter CFDateFormatterRef, formatString CFStringRef)
CFDateFormatterSetFormat sets the format string of the given date formatter to the specified value.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterSetFormat(_:_:)
func CFDateFormatterSetProperty ¶
func CFDateFormatterSetProperty(formatter CFDateFormatterRef, key CFStringRef, value CFTypeRef)
CFDateFormatterSetProperty sets a date formatter property using a key-value pair.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterSetProperty(_:_:_:)
func CFDateGetTimeIntervalSinceDate ¶
CFDateGetTimeIntervalSinceDate returns the number of elapsed seconds between the given [CFDate] objects.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateGetTimeIntervalSinceDate(_:_:)
func CFDateGetTypeID ¶
func CFDateGetTypeID() uint
CFDateGetTypeID returns the type identifier for the [CFDate] opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateGetTypeID()
func CFDictionaryAddValue ¶
func CFDictionaryAddValue(theDict CFMutableDictionaryRef, key unsafe.Pointer, value unsafe.Pointer)
CFDictionaryAddValue adds a key-value pair to a dictionary if the specified key is not already present.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryAddValue(_:_:_:)
func CFDictionaryApplyFunction ¶
func CFDictionaryApplyFunction(theDict CFDictionaryRef, applier CFDictionaryApplierFunction, context unsafe.Pointer)
CFDictionaryApplyFunction calls a function once for each key-value pair in a dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryApplyFunction(_:_:_:)
func CFDictionaryContainsKey ¶
func CFDictionaryContainsKey(theDict CFDictionaryRef, key unsafe.Pointer) bool
CFDictionaryContainsKey returns a Boolean value that indicates whether a given key is in a dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryContainsKey(_:_:)
func CFDictionaryContainsValue ¶
func CFDictionaryContainsValue(theDict CFDictionaryRef, value unsafe.Pointer) bool
CFDictionaryContainsValue returns a Boolean value that indicates whether a given value is in a dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryContainsValue(_:_:)
func CFDictionaryGetCount ¶
func CFDictionaryGetCount(theDict CFDictionaryRef) int
CFDictionaryGetCount returns the number of key-value pairs in a dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryGetCount(_:)
func CFDictionaryGetCountOfKey ¶
func CFDictionaryGetCountOfKey(theDict CFDictionaryRef, key unsafe.Pointer) int
CFDictionaryGetCountOfKey returns the number of times a key occurs in a dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryGetCountOfKey(_:_:)
func CFDictionaryGetCountOfValue ¶
func CFDictionaryGetCountOfValue(theDict CFDictionaryRef, value unsafe.Pointer) int
CFDictionaryGetCountOfValue counts the number of times a given value occurs in the dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryGetCountOfValue(_:_:)
func CFDictionaryGetKeysAndValues ¶
func CFDictionaryGetKeysAndValues(theDict CFDictionaryRef, keys unsafe.Pointer, values unsafe.Pointer)
CFDictionaryGetKeysAndValues fills two buffers with the keys and values from a dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryGetKeysAndValues(_:_:_:)
func CFDictionaryGetTypeID ¶
func CFDictionaryGetTypeID() uint
CFDictionaryGetTypeID returns the type identifier for the CFDictionary opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryGetTypeID()
func CFDictionaryGetValue ¶
func CFDictionaryGetValue(theDict CFDictionaryRef, key unsafe.Pointer) unsafe.Pointer
CFDictionaryGetValue returns the value associated with a given key.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryGetValue(_:_:)
func CFDictionaryGetValueIfPresent ¶
func CFDictionaryGetValueIfPresent(theDict CFDictionaryRef, key unsafe.Pointer, value unsafe.Pointer) bool
CFDictionaryGetValueIfPresent returns a Boolean value that indicates whether a given value for a given key is in a dictionary, and returns that value indirectly if it exists.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryGetValueIfPresent(_:_:_:)
func CFDictionaryRemoveAllValues ¶
func CFDictionaryRemoveAllValues(theDict CFMutableDictionaryRef)
CFDictionaryRemoveAllValues removes all the key-value pairs from a dictionary, making it empty.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryRemoveAllValues(_:)
func CFDictionaryRemoveValue ¶
func CFDictionaryRemoveValue(theDict CFMutableDictionaryRef, key unsafe.Pointer)
CFDictionaryRemoveValue removes a key-value pair.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryRemoveValue(_:_:)
func CFDictionaryReplaceValue ¶
func CFDictionaryReplaceValue(theDict CFMutableDictionaryRef, key unsafe.Pointer, value unsafe.Pointer)
CFDictionaryReplaceValue replaces a value corresponding to a given key.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryReplaceValue(_:_:_:)
func CFDictionarySetValue ¶
func CFDictionarySetValue(theDict CFMutableDictionaryRef, key unsafe.Pointer, value unsafe.Pointer)
CFDictionarySetValue sets the value corresponding to a given key.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionarySetValue(_:_:_:)
func CFEqual ¶
CFEqual determines whether two Core Foundation objects are considered equal.
See: https://developer.apple.com/documentation/CoreFoundation/CFEqual(_:_:)
func CFErrorGetCode ¶
func CFErrorGetCode(err CFErrorRef) int
CFErrorGetCode returns the error code for a given CFError.
See: https://developer.apple.com/documentation/CoreFoundation/CFErrorGetCode(_:)
func CFErrorGetTypeID ¶
func CFErrorGetTypeID() uint
CFErrorGetTypeID returns the type identifier for the CFError opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFErrorGetTypeID()
func CFFileDescriptorDisableCallBacks ¶
func CFFileDescriptorDisableCallBacks(f CFFileDescriptorRef, callBackTypes uint64)
CFFileDescriptorDisableCallBacks disables callbacks for a given CFFileDescriptor.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorDisableCallBacks(_:_:)
func CFFileDescriptorEnableCallBacks ¶
func CFFileDescriptorEnableCallBacks(f CFFileDescriptorRef, callBackTypes uint64)
CFFileDescriptorEnableCallBacks enables callbacks for a given CFFileDescriptor.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorEnableCallBacks(_:_:)
func CFFileDescriptorGetContext ¶
func CFFileDescriptorGetContext(f CFFileDescriptorRef, context *CFFileDescriptorContext)
CFFileDescriptorGetContext gets the context for a given CFFileDescriptor.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorGetContext(_:_:)
func CFFileDescriptorGetTypeID ¶
func CFFileDescriptorGetTypeID() uint
CFFileDescriptorGetTypeID returns the type identifier for the CFFileDescriptor opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorGetTypeID()
func CFFileDescriptorInvalidate ¶
func CFFileDescriptorInvalidate(f CFFileDescriptorRef)
CFFileDescriptorInvalidate invalidates a CFFileDescriptor object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorInvalidate(_:)
func CFFileDescriptorIsValid ¶
func CFFileDescriptorIsValid(f CFFileDescriptorRef) bool
CFFileDescriptorIsValid returns a Boolean value that indicates whether the native file descriptor for a given CFFileDescriptor is valid.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorIsValid(_:)
func CFFileSecurityClearProperties ¶
func CFFileSecurityClearProperties(fileSec CFFileSecurityRef, clearPropertyMask CFFileSecurityClearOptions) bool
CFFileSecurityClearProperties clears properties from a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityClearProperties(_:_:)
func CFFileSecurityCopyAccessControlList ¶ added in v0.2.0
func CFFileSecurityCopyAccessControlList(fileSec CFFileSecurityRef, accessControlList uintptr) bool
CFFileSecurityCopyAccessControlList copies the access control list associated with a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityCopyAccessControlList(_:_:)
func CFFileSecurityCopyGroupUUID ¶
func CFFileSecurityCopyGroupUUID(fileSec CFFileSecurityRef, groupUUID *CFUUIDRef) bool
CFFileSecurityCopyGroupUUID copies the group UUID associated with a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityCopyGroupUUID(_:_:)
func CFFileSecurityCopyOwnerUUID ¶
func CFFileSecurityCopyOwnerUUID(fileSec CFFileSecurityRef, ownerUUID *CFUUIDRef) bool
CFFileSecurityCopyOwnerUUID copies the owner UUID associated with a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityCopyOwnerUUID(_:_:)
func CFFileSecurityGetGroup ¶
func CFFileSecurityGetGroup(fileSec CFFileSecurityRef, group *uint32) bool
CFFileSecurityGetGroup gets the group ID associated with a CFFileSecurityRef object
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityGetGroup(_:_:)
func CFFileSecurityGetMode ¶
func CFFileSecurityGetMode(fileSec CFFileSecurityRef, mode *uint16) bool
CFFileSecurityGetMode gets the file mode associated with a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityGetMode(_:_:)
func CFFileSecurityGetOwner ¶
func CFFileSecurityGetOwner(fileSec CFFileSecurityRef, owner *uint32) bool
CFFileSecurityGetOwner gets the owner ID associated with a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityGetOwner(_:_:)
func CFFileSecurityGetTypeID ¶
func CFFileSecurityGetTypeID() uint
CFFileSecurityGetTypeID returns the type identifier for the CFFileSecurityRef opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityGetTypeID()
func CFFileSecuritySetAccessControlList ¶
func CFFileSecuritySetAccessControlList(fileSec CFFileSecurityRef, accessControlList unsafe.Pointer) bool
CFFileSecuritySetAccessControlList sets the access control list associated with a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecuritySetAccessControlList(_:_:)
func CFFileSecuritySetGroup ¶
func CFFileSecuritySetGroup(fileSec CFFileSecurityRef, group uint32) bool
CFFileSecuritySetGroup sets the group ID associated with a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecuritySetGroup(_:_:)
func CFFileSecuritySetGroupUUID ¶
func CFFileSecuritySetGroupUUID(fileSec CFFileSecurityRef, groupUUID CFUUIDRef) bool
CFFileSecuritySetGroupUUID sets the group UUID associated with a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecuritySetGroupUUID(_:_:)
func CFFileSecuritySetMode ¶
func CFFileSecuritySetMode(fileSec CFFileSecurityRef, mode uint16) bool
CFFileSecuritySetMode sets the file mode associated with a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecuritySetMode(_:_:)
func CFFileSecuritySetOwner ¶
func CFFileSecuritySetOwner(fileSec CFFileSecurityRef, owner uint32) bool
CFFileSecuritySetOwner sets the owner ID associated with a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecuritySetOwner(_:_:)
func CFFileSecuritySetOwnerUUID ¶
func CFFileSecuritySetOwnerUUID(fileSec CFFileSecurityRef, ownerUUID CFUUIDRef) bool
CFFileSecuritySetOwnerUUID sets the owner UUID associated with a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecuritySetOwnerUUID(_:_:)
func CFGetRetainCount ¶
CFGetRetainCount returns the reference count of a Core Foundation object.
See: https://developer.apple.com/documentation/CoreFoundation/CFGetRetainCount(_:)
func CFGetTypeID ¶
CFGetTypeID returns the unique identifier of an opaque type to which a Core Foundation object belongs.
See: https://developer.apple.com/documentation/CoreFoundation/CFGetTypeID(_:)
func CFHash ¶
CFHash returns a code that can be used to identify an object in a hashing structure.
See: https://developer.apple.com/documentation/CoreFoundation/CFHash(_:)
func CFLocaleGetTypeID ¶
func CFLocaleGetTypeID() uint
CFLocaleGetTypeID returns the type identifier for the CFLocale opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleGetTypeID()
func CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier ¶
func CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier(localeIdentifier CFLocaleIdentifier) uint32
CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier returns a Windows locale code from the locale identifier.
func CFMachPortGetContext ¶
func CFMachPortGetContext(port CFMachPortRef, context *CFMachPortContext)
CFMachPortGetContext returns the context information for a CFMachPort object.
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortGetContext(_:_:)
func CFMachPortGetPort ¶
func CFMachPortGetPort(port CFMachPortRef) uint32
CFMachPortGetPort returns the native Mach port represented by a CFMachPort object.
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortGetPort(_:)
func CFMachPortGetTypeID ¶
func CFMachPortGetTypeID() uint
CFMachPortGetTypeID returns the type identifier for the CFMachPort opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortGetTypeID()
func CFMachPortInvalidate ¶
func CFMachPortInvalidate(port CFMachPortRef)
CFMachPortInvalidate invalidates a CFMachPort object, stopping it from receiving any more messages.
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortInvalidate(_:)
func CFMachPortIsValid ¶
func CFMachPortIsValid(port CFMachPortRef) bool
CFMachPortIsValid returns a Boolean value that indicates whether a CFMachPort object is valid and able to receive messages.
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortIsValid(_:)
func CFMachPortSetInvalidationCallBack ¶
func CFMachPortSetInvalidationCallBack(port CFMachPortRef, callout CFMachPortInvalidationCallBack)
CFMachPortSetInvalidationCallBack sets the callback function invoked when a CFMachPort object is invalidated.
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortSetInvalidationCallBack(_:_:)
func CFMessagePortGetContext ¶
func CFMessagePortGetContext(ms CFMessagePortRef, context *CFMessagePortContext)
CFMessagePortGetContext returns the context information for a CFMessagePort object.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortGetContext(_:_:)
func CFMessagePortGetTypeID ¶
func CFMessagePortGetTypeID() uint
CFMessagePortGetTypeID returns the type identifier for the CFMessagePort opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortGetTypeID()
func CFMessagePortInvalidate ¶
func CFMessagePortInvalidate(ms CFMessagePortRef)
CFMessagePortInvalidate invalidates a CFMessagePort object, stopping it from receiving or sending any more messages.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortInvalidate(_:)
func CFMessagePortIsRemote ¶
func CFMessagePortIsRemote(ms CFMessagePortRef) bool
CFMessagePortIsRemote returns a Boolean value that indicates whether a CFMessagePort object represents a remote port.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortIsRemote(_:)
func CFMessagePortIsValid ¶
func CFMessagePortIsValid(ms CFMessagePortRef) bool
CFMessagePortIsValid returns a Boolean value that indicates whether a CFMessagePort object is valid and able to send or receive messages.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortIsValid(_:)
func CFMessagePortSendRequest ¶
func CFMessagePortSendRequest(remote CFMessagePortRef, msgid int32, data CFDataRef, sendTimeout float64, rcvTimeout float64, replyMode CFStringRef, returnData *CFDataRef) int32
CFMessagePortSendRequest sends a message to a remote CFMessagePort object.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortSendRequest(_:_:_:_:_:_:_:)
func CFMessagePortSetDispatchQueue ¶
func CFMessagePortSetDispatchQueue(ms CFMessagePortRef, queue dispatch.Queue)
CFMessagePortSetDispatchQueue schedules callbacks for the specified message port on the specified dispatch queue.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortSetDispatchQueue(_:_:)
func CFMessagePortSetInvalidationCallBack ¶
func CFMessagePortSetInvalidationCallBack(ms CFMessagePortRef, callout CFMessagePortInvalidationCallBack)
CFMessagePortSetInvalidationCallBack sets the callback function invoked when a CFMessagePort object is invalidated.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortSetInvalidationCallBack(_:_:)
func CFMessagePortSetName ¶
func CFMessagePortSetName(ms CFMessagePortRef, newName CFStringRef) bool
CFMessagePortSetName sets the name of a local CFMessagePort object.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortSetName(_:_:)
func CFNotificationCenterAddObserver ¶
func CFNotificationCenterAddObserver(center CFNotificationCenterRef, observer unsafe.Pointer, callBack CFNotificationCallback, name CFStringRef, object unsafe.Pointer, suspensionBehavior CFNotificationSuspensionBehavior)
CFNotificationCenterAddObserver registers an observer to receive notifications.
func CFNotificationCenterGetTypeID ¶
func CFNotificationCenterGetTypeID() uint
CFNotificationCenterGetTypeID returns the type identifier for the CFNotificationCenter opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterGetTypeID()
func CFNotificationCenterPostNotification ¶
func CFNotificationCenterPostNotification(center CFNotificationCenterRef, name CFNotificationName, object unsafe.Pointer, userInfo CFDictionaryRef, deliverImmediately bool)
CFNotificationCenterPostNotification posts a notification for an object.
func CFNotificationCenterPostNotificationWithOptions ¶
func CFNotificationCenterPostNotificationWithOptions(center CFNotificationCenterRef, name CFNotificationName, object unsafe.Pointer, userInfo CFDictionaryRef, options uint64)
CFNotificationCenterPostNotificationWithOptions posts a notification for an object using specified options.
func CFNotificationCenterRemoveEveryObserver ¶
func CFNotificationCenterRemoveEveryObserver(center CFNotificationCenterRef, observer unsafe.Pointer)
CFNotificationCenterRemoveEveryObserver stops an observer from receiving any notifications from any object.
func CFNotificationCenterRemoveObserver ¶
func CFNotificationCenterRemoveObserver(center CFNotificationCenterRef, observer unsafe.Pointer, name CFNotificationName, object unsafe.Pointer)
CFNotificationCenterRemoveObserver stops an observer from receiving certain notifications.
func CFNullGetTypeID ¶
func CFNullGetTypeID() uint
CFNullGetTypeID returns the type identifier for the CFNull opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFNullGetTypeID()
func CFNumberFormatterGetDecimalInfoForCurrencyCode ¶
func CFNumberFormatterGetDecimalInfoForCurrencyCode(currencyCode CFStringRef, defaultFractionDigits *int32, roundingIncrement []float64) bool
CFNumberFormatterGetDecimalInfoForCurrencyCode returns the number of fraction digits that should be displayed, and the rounding increment, for a given currency.
func CFNumberFormatterGetTypeID ¶
func CFNumberFormatterGetTypeID() uint
CFNumberFormatterGetTypeID returns the type identifier for the [CFNumberFormatter] opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterGetTypeID()
func CFNumberFormatterGetValueFromString ¶
func CFNumberFormatterGetValueFromString(formatter CFNumberFormatterRef, string_ CFStringRef, rangep *CFRange, numberType CFNumberType, valuePtr unsafe.Pointer) bool
CFNumberFormatterGetValueFromString returns a number or value representing a given string.
func CFNumberFormatterSetFormat ¶
func CFNumberFormatterSetFormat(formatter CFNumberFormatterRef, formatString CFStringRef)
CFNumberFormatterSetFormat sets the format string of a number formatter.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterSetFormat(_:_:)
func CFNumberFormatterSetProperty ¶
func CFNumberFormatterSetProperty(formatter CFNumberFormatterRef, key CFNumberFormatterKey, value CFTypeRef)
CFNumberFormatterSetProperty sets a number formatter property using a key-value pair.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterSetProperty(_:_:_:)
func CFNumberGetByteSize ¶
func CFNumberGetByteSize(number CFNumberRef) int
CFNumberGetByteSize returns the number of bytes used by a CFNumber object to store its value.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberGetByteSize(_:)
func CFNumberGetTypeID ¶
func CFNumberGetTypeID() uint
CFNumberGetTypeID returns the type identifier for the CFNumber opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberGetTypeID()
func CFNumberGetValue ¶
func CFNumberGetValue(number CFNumberRef, theType CFNumberType, valuePtr unsafe.Pointer) bool
CFNumberGetValue obtains the value of a CFNumber object cast to a specified type.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberGetValue(_:_:_:)
func CFNumberIsFloatType ¶
func CFNumberIsFloatType(number CFNumberRef) bool
CFNumberIsFloatType determines whether a CFNumber object contains a value stored as one of the defined floating point types.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberIsFloatType(_:)
func CFPlugInAddInstanceForFactory ¶
func CFPlugInAddInstanceForFactory(factoryID CFUUIDRef)
CFPlugInAddInstanceForFactory registers a new instance of a type with [CFPlugIn].
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInAddInstanceForFactory(_:)
func CFPlugInGetTypeID ¶
func CFPlugInGetTypeID() uint
CFPlugInGetTypeID returns the type identifier for the [CFPlugIn] opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInGetTypeID()
func CFPlugInInstanceCreate ¶
func CFPlugInInstanceCreate(allocator CFAllocatorRef, factoryUUID CFUUIDRef, typeUUID CFUUIDRef) unsafe.Pointer
CFPlugInInstanceCreate creates a [CFPlugIn] instance of a given type using a given factory.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstanceCreate(_:_:_:)
func CFPlugInInstanceGetInstanceData ¶
func CFPlugInInstanceGetInstanceData(instance CFPlugInInstanceRef) unsafe.Pointer
CFPlugInInstanceGetInstanceData not recommended.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstanceGetInstanceData(_:)
func CFPlugInInstanceGetInterfaceFunctionTable ¶
func CFPlugInInstanceGetInterfaceFunctionTable(instance CFPlugInInstanceRef, interfaceName CFStringRef, ftbl unsafe.Pointer) bool
CFPlugInInstanceGetInterfaceFunctionTable not recommended.
func CFPlugInInstanceGetTypeID ¶
func CFPlugInInstanceGetTypeID() uint
CFPlugInInstanceGetTypeID not recommended.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstanceGetTypeID()
func CFPlugInIsLoadOnDemand ¶
func CFPlugInIsLoadOnDemand(plugIn CFPlugInRef) bool
CFPlugInIsLoadOnDemand determines whether or not a plug-in is loaded on demand.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInIsLoadOnDemand(_:)
func CFPlugInRegisterFactoryFunction ¶
func CFPlugInRegisterFactoryFunction(factoryUUID CFUUIDRef, func_ CFPlugInFactoryFunction) bool
CFPlugInRegisterFactoryFunction registers a factory function and its UUID with a [CFPlugIn] object.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInRegisterFactoryFunction(_:_:)
func CFPlugInRegisterFactoryFunctionByName ¶
func CFPlugInRegisterFactoryFunctionByName(factoryUUID CFUUIDRef, plugIn CFPlugInRef, functionName CFStringRef) bool
CFPlugInRegisterFactoryFunctionByName registers a factory function with a [CFPlugIn] object using the function’s name instead of its UUID.
func CFPlugInRegisterPlugInType ¶
CFPlugInRegisterPlugInType registers a type and its corresponding factory function with a [CFPlugIn] object.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInRegisterPlugInType(_:_:)
func CFPlugInRemoveInstanceForFactory ¶
func CFPlugInRemoveInstanceForFactory(factoryID CFUUIDRef)
CFPlugInRemoveInstanceForFactory unregisters an instance of a type with [CFPlugIn].
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInRemoveInstanceForFactory(_:)
func CFPlugInSetLoadOnDemand ¶
func CFPlugInSetLoadOnDemand(plugIn CFPlugInRef, flag bool)
CFPlugInSetLoadOnDemand enables or disables load on demand for plug-ins that do dynamic registration (only when a client requests an instance of a supported type).
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInSetLoadOnDemand(_:_:)
func CFPlugInUnregisterFactory ¶
CFPlugInUnregisterFactory removes the given function from a plug-in’s list of registered factory functions.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInUnregisterFactory(_:)
func CFPlugInUnregisterPlugInType ¶
CFPlugInUnregisterPlugInType removes the given type from a plug-in’s list of registered types.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInUnregisterPlugInType(_:_:)
func CFPreferencesAddSuitePreferencesToApp ¶
func CFPreferencesAddSuitePreferencesToApp(applicationID CFStringRef, suiteID CFStringRef)
CFPreferencesAddSuitePreferencesToApp adds suite preferences to an application’s preference search chain.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesAddSuitePreferencesToApp(_:_:)
func CFPreferencesAppSynchronize ¶
func CFPreferencesAppSynchronize(applicationID CFStringRef) bool
CFPreferencesAppSynchronize writes to permanent storage all pending changes to the preference data for the application, and reads the latest preference data from permanent storage.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesAppSynchronize(_:)
func CFPreferencesAppValueIsForced ¶
func CFPreferencesAppValueIsForced(key CFStringRef, applicationID CFStringRef) bool
CFPreferencesAppValueIsForced determines whether or not a given key has been imposed on the user.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesAppValueIsForced(_:_:)
func CFPreferencesGetAppBooleanValue ¶
func CFPreferencesGetAppBooleanValue(key CFStringRef, applicationID CFStringRef, keyExistsAndHasValidFormat *bool) bool
CFPreferencesGetAppBooleanValue convenience function that directly obtains a Boolean preference value for the specified key.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesGetAppBooleanValue(_:_:_:)
func CFPreferencesGetAppIntegerValue ¶
func CFPreferencesGetAppIntegerValue(key CFStringRef, applicationID CFStringRef, keyExistsAndHasValidFormat *bool) int
CFPreferencesGetAppIntegerValue convenience function that directly obtains an integer preference value for the specified key.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesGetAppIntegerValue(_:_:_:)
func CFPreferencesRemoveSuitePreferencesFromApp ¶
func CFPreferencesRemoveSuitePreferencesFromApp(applicationID CFStringRef, suiteID CFStringRef)
CFPreferencesRemoveSuitePreferencesFromApp removes suite preferences from an application’s search chain.
func CFPreferencesSetAppValue ¶
func CFPreferencesSetAppValue(key CFStringRef, value CFPropertyListRef, applicationID CFStringRef)
CFPreferencesSetAppValue adds, modifies, or removes a preference.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesSetAppValue(_:_:_:)
func CFPreferencesSetMultiple ¶
func CFPreferencesSetMultiple(keysToSet CFDictionaryRef, keysToRemove CFArrayRef, applicationID CFStringRef, userName CFStringRef, hostName CFStringRef)
CFPreferencesSetMultiple convenience function that allows you to set and remove multiple preference values.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesSetMultiple(_:_:_:_:_:)
func CFPreferencesSetValue ¶
func CFPreferencesSetValue(key CFStringRef, value CFPropertyListRef, applicationID CFStringRef, userName CFStringRef, hostName CFStringRef)
CFPreferencesSetValue adds, modifies, or removes a preference value for the specified domain.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesSetValue(_:_:_:_:_:)
func CFPreferencesSynchronize ¶
func CFPreferencesSynchronize(applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) bool
CFPreferencesSynchronize for the specified domain, writes all pending changes to preference data to permanent storage, and reads latest preference data from permanent storage.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesSynchronize(_:_:_:)
func CFPropertyListIsValid ¶
func CFPropertyListIsValid(plist CFPropertyListRef, format CFPropertyListFormat) bool
CFPropertyListIsValid determines if a property list is valid.
See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListIsValid(_:_:)
func CFPropertyListWrite ¶
func CFPropertyListWrite(propertyList CFPropertyListRef, stream CFWriteStreamRef, format CFPropertyListFormat, options uint64, err *CFErrorRef) int
CFPropertyListWrite write the bytes of a serialized property list out to a stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListWrite(_:_:_:_:_:)
func CFReadStreamClose ¶
func CFReadStreamClose(stream CFReadStreamRef)
CFReadStreamClose closes a readable stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamClose(_:)
func CFReadStreamCopyDispatchQueue ¶
func CFReadStreamCopyDispatchQueue(stream CFReadStreamRef) dispatch.Queue
CFReadStreamCopyDispatchQueue.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamCopyDispatchQueue(_:)
func CFReadStreamGetBuffer ¶
func CFReadStreamGetBuffer(stream CFReadStreamRef, maxBytesToRead int, numBytesRead *int) *uint8
CFReadStreamGetBuffer returns a pointer to a stream’s internal buffer of unread data, if possible.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamGetBuffer(_:_:_:)
func CFReadStreamGetTypeID ¶
func CFReadStreamGetTypeID() uint
CFReadStreamGetTypeID returns the type identifier the [CFReadStream] opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamGetTypeID()
func CFReadStreamHasBytesAvailable ¶
func CFReadStreamHasBytesAvailable(stream CFReadStreamRef) bool
CFReadStreamHasBytesAvailable returns a Boolean value that indicates whether a readable stream has data that can be read without blocking.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamHasBytesAvailable(_:)
func CFReadStreamOpen ¶
func CFReadStreamOpen(stream CFReadStreamRef) bool
CFReadStreamOpen opens a stream for reading.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamOpen(_:)
func CFReadStreamRead ¶
func CFReadStreamRead(stream CFReadStreamRef, buffer *uint8, bufferLength int) int
CFReadStreamRead reads data from a readable stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamRead(_:_:_:)
func CFReadStreamScheduleWithRunLoop ¶
func CFReadStreamScheduleWithRunLoop(stream CFReadStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode)
CFReadStreamScheduleWithRunLoop schedules a stream into a run loop.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamScheduleWithRunLoop(_:_:_:)
func CFReadStreamSetClient ¶
func CFReadStreamSetClient(stream CFReadStreamRef, streamEvents uint64, clientCB CFReadStreamClientCallBack, clientContext *CFStreamClientContext) bool
CFReadStreamSetClient assigns a client to a stream, which receives callbacks when certain events occur.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamSetClient(_:_:_:_:)
func CFReadStreamSetDispatchQueue ¶
func CFReadStreamSetDispatchQueue(stream CFReadStreamRef, q dispatch.Queue)
CFReadStreamSetDispatchQueue.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamSetDispatchQueue(_:_:)
func CFReadStreamSetProperty ¶
func CFReadStreamSetProperty(stream CFReadStreamRef, propertyName CFStreamPropertyKey, propertyValue CFTypeRef) bool
CFReadStreamSetProperty sets the value of a property for a stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamSetProperty(_:_:_:)
func CFReadStreamUnscheduleFromRunLoop ¶
func CFReadStreamUnscheduleFromRunLoop(stream CFReadStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode)
CFReadStreamUnscheduleFromRunLoop removes a read stream from a given run loop.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamUnscheduleFromRunLoop(_:_:_:)
func CFRelease ¶
func CFRelease(cf CFTypeRef)
CFRelease releases a Core Foundation object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRelease
func CFRunLoopAddCommonMode ¶
func CFRunLoopAddCommonMode(rl CFRunLoopRef, mode CFRunLoopMode)
CFRunLoopAddCommonMode adds a mode to the set of run loop common modes.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopAddCommonMode(_:_:)
func CFRunLoopAddObserver ¶
func CFRunLoopAddObserver(rl CFRunLoopRef, observer CFRunLoopObserverRef, mode CFRunLoopMode)
CFRunLoopAddObserver adds a CFRunLoopObserver object to a run loop mode.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopAddObserver(_:_:_:)
func CFRunLoopAddSource ¶
func CFRunLoopAddSource(rl CFRunLoopRef, source CFRunLoopSourceRef, mode CFRunLoopMode)
CFRunLoopAddSource adds a CFRunLoopSource object to a run loop mode.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopAddSource(_:_:_:)
func CFRunLoopAddTimer ¶
func CFRunLoopAddTimer(rl CFRunLoopRef, timer CFRunLoopTimerRef, mode CFRunLoopMode)
CFRunLoopAddTimer adds a CFRunLoopTimer object to a run loop mode.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopAddTimer(_:_:_:)
func CFRunLoopContainsObserver ¶
func CFRunLoopContainsObserver(rl CFRunLoopRef, observer CFRunLoopObserverRef, mode CFRunLoopMode) bool
CFRunLoopContainsObserver returns a Boolean value that indicates whether a run loop mode contains a particular CFRunLoopObserver object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopContainsObserver(_:_:_:)
func CFRunLoopContainsSource ¶
func CFRunLoopContainsSource(rl CFRunLoopRef, source CFRunLoopSourceRef, mode CFRunLoopMode) bool
CFRunLoopContainsSource returns a Boolean value that indicates whether a run loop mode contains a particular CFRunLoopSource object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopContainsSource(_:_:_:)
func CFRunLoopContainsTimer ¶
func CFRunLoopContainsTimer(rl CFRunLoopRef, timer CFRunLoopTimerRef, mode CFRunLoopMode) bool
CFRunLoopContainsTimer returns a Boolean value that indicates whether a run loop mode contains a particular CFRunLoopTimer object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopContainsTimer(_:_:_:)
func CFRunLoopGetTypeID ¶
func CFRunLoopGetTypeID() uint
CFRunLoopGetTypeID returns the type identifier for the CFRunLoop opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopGetTypeID()
func CFRunLoopIsWaiting ¶
func CFRunLoopIsWaiting(rl CFRunLoopRef) bool
CFRunLoopIsWaiting returns a Boolean value that indicates whether the run loop is waiting for an event.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopIsWaiting(_:)
func CFRunLoopObserverDoesRepeat ¶
func CFRunLoopObserverDoesRepeat(observer CFRunLoopObserverRef) bool
CFRunLoopObserverDoesRepeat returns a Boolean value that indicates whether a CFRunLoopObserver repeats.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverDoesRepeat(_:)
func CFRunLoopObserverGetActivities ¶
func CFRunLoopObserverGetActivities(observer CFRunLoopObserverRef) uint64
CFRunLoopObserverGetActivities returns the run loop stages during which an observer runs.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverGetActivities(_:)
func CFRunLoopObserverGetContext ¶
func CFRunLoopObserverGetContext(observer CFRunLoopObserverRef, context *CFRunLoopObserverContext)
CFRunLoopObserverGetContext returns the context information for a CFRunLoopObserver object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverGetContext(_:_:)
func CFRunLoopObserverGetOrder ¶
func CFRunLoopObserverGetOrder(observer CFRunLoopObserverRef) int
CFRunLoopObserverGetOrder returns the ordering parameter for a CFRunLoopObserver object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverGetOrder(_:)
func CFRunLoopObserverGetTypeID ¶
func CFRunLoopObserverGetTypeID() uint
CFRunLoopObserverGetTypeID returns the type identifier for the CFRunLoopObserver opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverGetTypeID()
func CFRunLoopObserverInvalidate ¶
func CFRunLoopObserverInvalidate(observer CFRunLoopObserverRef)
CFRunLoopObserverInvalidate invalidates a CFRunLoopObserver object, stopping it from ever firing again.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverInvalidate(_:)
func CFRunLoopObserverIsValid ¶
func CFRunLoopObserverIsValid(observer CFRunLoopObserverRef) bool
CFRunLoopObserverIsValid returns a Boolean value that indicates whether a CFRunLoopObserver object is valid and able to fire.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverIsValid(_:)
func CFRunLoopPerformBlock ¶
func CFRunLoopPerformBlock(rl CFRunLoopRef, mode CFTypeRef)
CFRunLoopPerformBlock enqueues a block object on a given runloop to be executed as the runloop cycles in specified modes.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopPerformBlock(_:_:_:)
func CFRunLoopRemoveObserver ¶
func CFRunLoopRemoveObserver(rl CFRunLoopRef, observer CFRunLoopObserverRef, mode CFRunLoopMode)
CFRunLoopRemoveObserver removes a CFRunLoopObserver object from a run loop mode.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopRemoveObserver(_:_:_:)
func CFRunLoopRemoveSource ¶
func CFRunLoopRemoveSource(rl CFRunLoopRef, source CFRunLoopSourceRef, mode CFRunLoopMode)
CFRunLoopRemoveSource removes a CFRunLoopSource object from a run loop mode.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopRemoveSource(_:_:_:)
func CFRunLoopRemoveTimer ¶
func CFRunLoopRemoveTimer(rl CFRunLoopRef, timer CFRunLoopTimerRef, mode CFRunLoopMode)
CFRunLoopRemoveTimer removes a CFRunLoopTimer object from a run loop mode.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopRemoveTimer(_:_:_:)
func CFRunLoopRun ¶
func CFRunLoopRun()
CFRunLoopRun runs the current thread’s CFRunLoop object in its default mode indefinitely.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopRun()
func CFRunLoopSourceGetContext ¶
func CFRunLoopSourceGetContext(source CFRunLoopSourceRef, context *CFRunLoopSourceContext)
CFRunLoopSourceGetContext returns the context information for a CFRunLoopSource object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceGetContext(_:_:)
func CFRunLoopSourceGetOrder ¶
func CFRunLoopSourceGetOrder(source CFRunLoopSourceRef) int
CFRunLoopSourceGetOrder returns the ordering parameter for a CFRunLoopSource object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceGetOrder(_:)
func CFRunLoopSourceGetTypeID ¶
func CFRunLoopSourceGetTypeID() uint
CFRunLoopSourceGetTypeID returns the type identifier of the CFRunLoopSource opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceGetTypeID()
func CFRunLoopSourceInvalidate ¶
func CFRunLoopSourceInvalidate(source CFRunLoopSourceRef)
CFRunLoopSourceInvalidate invalidates a CFRunLoopSource object, stopping it from ever firing again.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceInvalidate(_:)
func CFRunLoopSourceIsValid ¶
func CFRunLoopSourceIsValid(source CFRunLoopSourceRef) bool
CFRunLoopSourceIsValid returns a Boolean value that indicates whether a CFRunLoopSource object is valid and able to fire.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceIsValid(_:)
func CFRunLoopSourceSignal ¶
func CFRunLoopSourceSignal(source CFRunLoopSourceRef)
CFRunLoopSourceSignal signals a CFRunLoopSource object, marking it as ready to fire.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceSignal(_:)
func CFRunLoopStop ¶
func CFRunLoopStop(rl CFRunLoopRef)
CFRunLoopStop forces a CFRunLoop object to stop running.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopStop(_:)
func CFRunLoopTimerDoesRepeat ¶
func CFRunLoopTimerDoesRepeat(timer CFRunLoopTimerRef) bool
CFRunLoopTimerDoesRepeat returns a Boolean value that indicates whether a CFRunLoopTimer object repeats.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerDoesRepeat(_:)
func CFRunLoopTimerGetContext ¶
func CFRunLoopTimerGetContext(timer CFRunLoopTimerRef, context *CFRunLoopTimerContext)
CFRunLoopTimerGetContext returns the context information for a CFRunLoopTimer object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerGetContext(_:_:)
func CFRunLoopTimerGetInterval ¶
func CFRunLoopTimerGetInterval(timer CFRunLoopTimerRef) float64
CFRunLoopTimerGetInterval returns the firing interval of a repeating CFRunLoopTimer object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerGetInterval(_:)
func CFRunLoopTimerGetOrder ¶
func CFRunLoopTimerGetOrder(timer CFRunLoopTimerRef) int
CFRunLoopTimerGetOrder returns the ordering parameter for a CFRunLoopTimer object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerGetOrder(_:)
func CFRunLoopTimerGetTolerance ¶
func CFRunLoopTimerGetTolerance(timer CFRunLoopTimerRef) float64
CFRunLoopTimerGetTolerance.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerGetTolerance(_:)
func CFRunLoopTimerGetTypeID ¶
func CFRunLoopTimerGetTypeID() uint
CFRunLoopTimerGetTypeID returns the type identifier of the CFRunLoopTimer opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerGetTypeID()
func CFRunLoopTimerInvalidate ¶
func CFRunLoopTimerInvalidate(timer CFRunLoopTimerRef)
CFRunLoopTimerInvalidate invalidates a CFRunLoopTimer object, stopping it from ever firing again.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerInvalidate(_:)
func CFRunLoopTimerIsValid ¶
func CFRunLoopTimerIsValid(timer CFRunLoopTimerRef) bool
CFRunLoopTimerIsValid returns a Boolean value that indicates whether a CFRunLoopTimer object is valid and able to fire.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerIsValid(_:)
func CFRunLoopTimerSetNextFireDate ¶
func CFRunLoopTimerSetNextFireDate(timer CFRunLoopTimerRef, fireDate CFAbsoluteTime)
CFRunLoopTimerSetNextFireDate sets the next firing date for a CFRunLoopTimer object .
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerSetNextFireDate(_:_:)
func CFRunLoopTimerSetTolerance ¶
func CFRunLoopTimerSetTolerance(timer CFRunLoopTimerRef, tolerance float64)
CFRunLoopTimerSetTolerance.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerSetTolerance(_:_:)
func CFRunLoopWakeUp ¶
func CFRunLoopWakeUp(rl CFRunLoopRef)
CFRunLoopWakeUp wakes a waiting CFRunLoop object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopWakeUp(_:)
func CFSetAddValue ¶
func CFSetAddValue(theSet CFMutableSetRef, value unsafe.Pointer)
CFSetAddValue adds a value to a CFMutableSet object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetAddValue(_:_:)
func CFSetApplyFunction ¶
func CFSetApplyFunction(theSet CFSetRef, applier CFSetApplierFunction, context unsafe.Pointer)
CFSetApplyFunction calls a function once for each value in a set.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetApplyFunction(_:_:_:)
func CFSetContainsValue ¶
CFSetContainsValue returns a Boolean that indicates whether a set contains a given value.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetContainsValue(_:_:)
func CFSetGetCount ¶
CFSetGetCount returns the number of values currently in a set.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetGetCount(_:)
func CFSetGetCountOfValue ¶
CFSetGetCountOfValue returns the number of values in a set that match a given value.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetGetCountOfValue(_:_:)
func CFSetGetTypeID ¶
func CFSetGetTypeID() uint
CFSetGetTypeID returns the type identifier for the CFSet type.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetGetTypeID()
func CFSetGetValue ¶
CFSetGetValue obtains a specified value from a set.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetGetValue(_:_:)
func CFSetGetValueIfPresent ¶
CFSetGetValueIfPresent reports whether or not a value is in a set, and if it exists returns the value indirectly.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetGetValueIfPresent(_:_:_:)
func CFSetGetValues ¶
CFSetGetValues obtains all values in a set.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetGetValues(_:_:)
func CFSetRemoveAllValues ¶
func CFSetRemoveAllValues(theSet CFMutableSetRef)
CFSetRemoveAllValues removes all values from a CFMutableSet object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetRemoveAllValues(_:)
func CFSetRemoveValue ¶
func CFSetRemoveValue(theSet CFMutableSetRef, value unsafe.Pointer)
CFSetRemoveValue removes a value from a CFMutableSet object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetRemoveValue(_:_:)
func CFSetReplaceValue ¶
func CFSetReplaceValue(theSet CFMutableSetRef, value unsafe.Pointer)
CFSetReplaceValue replaces a value in a CFMutableSet object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetReplaceValue(_:_:)
func CFSetSetValue ¶
func CFSetSetValue(theSet CFMutableSetRef, value unsafe.Pointer)
CFSetSetValue sets a value in a CFMutableSet object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetSetValue(_:_:)
func CFShow ¶
func CFShow(obj CFTypeRef)
CFShow prints a description of a Core Foundation object to stderr.
See: https://developer.apple.com/documentation/CoreFoundation/CFShow(_:)
func CFShowStr ¶
func CFShowStr(str CFStringRef)
CFShowStr prints the attributes of a string during debugging.
See: https://developer.apple.com/documentation/CoreFoundation/CFShowStr(_:)
func CFSocketDisableCallBacks ¶
func CFSocketDisableCallBacks(s CFSocketRef, callBackTypes uint64)
CFSocketDisableCallBacks disables the callback function of a CFSocket object for certain types of socket activity.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketDisableCallBacks(_:_:)
func CFSocketEnableCallBacks ¶
func CFSocketEnableCallBacks(s CFSocketRef, callBackTypes uint64)
CFSocketEnableCallBacks enables the callback function of a CFSocket object for certain types of socket activity.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketEnableCallBacks(_:_:)
func CFSocketGetContext ¶
func CFSocketGetContext(s CFSocketRef, context *CFSocketContext)
CFSocketGetContext returns the context information for a CFSocket object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketGetContext(_:_:)
func CFSocketGetDefaultNameRegistryPortNumber ¶
func CFSocketGetDefaultNameRegistryPortNumber() uint16
CFSocketGetDefaultNameRegistryPortNumber returns the default port number with which to connect to a CFSocket name server.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketGetDefaultNameRegistryPortNumber()
func CFSocketGetSocketFlags ¶
func CFSocketGetSocketFlags(s CFSocketRef) uint64
CFSocketGetSocketFlags returns flags that control certain behaviors of a CFSocket object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketGetSocketFlags(_:)
func CFSocketGetTypeID ¶
func CFSocketGetTypeID() uint
CFSocketGetTypeID returns the type identifier for the CFSocket opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketGetTypeID()
func CFSocketInvalidate ¶
func CFSocketInvalidate(s CFSocketRef)
CFSocketInvalidate invalidates a CFSocket object, stopping it from sending or receiving any more messages.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketInvalidate(_:)
func CFSocketIsValid ¶
func CFSocketIsValid(s CFSocketRef) bool
CFSocketIsValid returns a Boolean value that indicates whether a CFSocket object is valid and able to send or receive messages.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketIsValid(_:)
func CFSocketSetDefaultNameRegistryPortNumber ¶
func CFSocketSetDefaultNameRegistryPortNumber(port uint16)
CFSocketSetDefaultNameRegistryPortNumber sets the default port number with which to connect to a CFSocket name server.
func CFSocketSetSocketFlags ¶
func CFSocketSetSocketFlags(s CFSocketRef, flags uint64)
CFSocketSetSocketFlags sets flags that control certain behaviors of a CFSocket object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketSetSocketFlags(_:_:)
func CFStreamCreateBoundPair ¶
func CFStreamCreateBoundPair(alloc CFAllocatorRef, readStream *CFReadStreamRef, writeStream *CFWriteStreamRef, transferBufferSize int)
CFStreamCreateBoundPair creates a bound pair of read and write streams.
See: https://developer.apple.com/documentation/CoreFoundation/CFStreamCreateBoundPair(_:_:_:_:)
func CFStreamCreatePairWithPeerSocketSignature
deprecated
func CFStreamCreatePairWithPeerSocketSignature(alloc CFAllocatorRef, signature *CFSocketSignature, readStream *CFReadStreamRef, writeStream *CFWriteStreamRef)
CFStreamCreatePairWithPeerSocketSignature creates readable and writable streams connected to a socket.
Deprecated: Deprecated since macOS 26.2. Use nw_connection_t in Network framework instead
func CFStreamCreatePairWithSocket
deprecated
func CFStreamCreatePairWithSocket(alloc CFAllocatorRef, sock CFSocketNativeHandle, readStream *CFReadStreamRef, writeStream *CFWriteStreamRef)
CFStreamCreatePairWithSocket creates readable and writable streams connected to a socket.
Deprecated: Deprecated since macOS 26.2. Use nw_connection_t in Network framework instead
See: https://developer.apple.com/documentation/CoreFoundation/CFStreamCreatePairWithSocket(_:_:_:_:)
func CFStreamCreatePairWithSocketToHost
deprecated
func CFStreamCreatePairWithSocketToHost(alloc CFAllocatorRef, host CFStringRef, port uint32, readStream *CFReadStreamRef, writeStream *CFWriteStreamRef)
CFStreamCreatePairWithSocketToHost creates readable and writable streams connected to a TCP/IP port of a particular host.
Deprecated: Deprecated since macOS 26.2. Use nw_connection_t in Network framework instead
func CFStringAppend ¶
func CFStringAppend(theString CFMutableStringRef, appendedString CFStringRef)
CFStringAppend appends the characters of a string to those of a CFMutableString object.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringAppend(_:_:)
func CFStringAppendCString ¶
func CFStringAppendCString(theString CFMutableStringRef, cStr string, encoding uint32)
CFStringAppendCString appends a C string to the character contents of a CFMutableString object.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringAppendCString(_:_:_:)
func CFStringAppendCharacters ¶
func CFStringAppendCharacters(theString CFMutableStringRef, chars *uint16, numChars int)
CFStringAppendCharacters appends a buffer of Unicode characters to the character contents of a CFMutableString object.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringAppendCharacters(_:_:_:)
func CFStringAppendFormat ¶
func CFStringAppendFormat(theString CFMutableStringRef, formatOptions CFDictionaryRef, format CFStringRef)
CFStringAppendFormat appends a formatted string to the character contents of a CFMutableString object.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringAppendFormat
func CFStringAppendFormatAndArguments ¶ added in v0.2.0
func CFStringAppendFormatAndArguments(theString CFMutableStringRef, formatOptions CFDictionaryRef, format CFStringRef, arguments uintptr)
CFStringAppendFormatAndArguments appends a formatted string to the character contents of a CFMutableString object.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringAppendFormatAndArguments(_:_:_:_:)
func CFStringAppendPascalString ¶
func CFStringAppendPascalString(theString CFMutableStringRef, pStr unsafe.Pointer, encoding uint32)
CFStringAppendPascalString appends a Pascal string to the character contents of a CFMutableString object.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringAppendPascalString(_:_:_:)
func CFStringCapitalize ¶
func CFStringCapitalize(theString CFMutableStringRef, locale CFLocaleRef)
CFStringCapitalize changes the first character in each word of a string to uppercase (if it is a lowercase alphabetical character).
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCapitalize(_:_:)
func CFStringConvertEncodingToNSStringEncoding ¶
CFStringConvertEncodingToNSStringEncoding returns the Cocoa encoding constant that maps most closely to a given Core Foundation encoding constant.
func CFStringConvertEncodingToWindowsCodepage ¶
CFStringConvertEncodingToWindowsCodepage returns the Windows codepage identifier that maps most closely to a given Core Foundation encoding constant.
func CFStringConvertIANACharSetNameToEncoding ¶
func CFStringConvertIANACharSetNameToEncoding(theString CFStringRef) uint32
CFStringConvertIANACharSetNameToEncoding returns the Core Foundation encoding constant that is the closest mapping to a given IANA registry “charset” name.
func CFStringConvertNSStringEncodingToEncoding ¶
CFStringConvertNSStringEncodingToEncoding returns the Core Foundation encoding constant that is the closest mapping to a given Cocoa encoding.
func CFStringConvertWindowsCodepageToEncoding ¶
CFStringConvertWindowsCodepageToEncoding returns the Core Foundation encoding constant that is the closest mapping to a given Windows codepage identifier.
func CFStringDelete ¶
func CFStringDelete(theString CFMutableStringRef, range_ CFRange)
CFStringDelete deletes a range of characters in a string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringDelete(_:_:)
func CFStringFindAndReplace ¶
func CFStringFindAndReplace(theString CFMutableStringRef, stringToFind CFStringRef, replacementString CFStringRef, rangeToSearch CFRange, compareOptions CFStringCompareFlags) int
CFStringFindAndReplace replaces all occurrences of a substring within a given range.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringFindAndReplace(_:_:_:_:_:)
func CFStringFindCharacterFromSet ¶
func CFStringFindCharacterFromSet(theString CFStringRef, theSet CFCharacterSetRef, rangeToSearch CFRange, searchOptions CFStringCompareFlags, result *CFRange) bool
CFStringFindCharacterFromSet query the range of the first character contained in the specified character set.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringFindCharacterFromSet(_:_:_:_:_:)
func CFStringFindWithOptions ¶
func CFStringFindWithOptions(theString CFStringRef, stringToFind CFStringRef, rangeToSearch CFRange, searchOptions CFStringCompareFlags, result *CFRange) bool
CFStringFindWithOptions searches for a substring within a range of the characters represented by a string and, if the substring is found, returns its range within the object’s characters.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringFindWithOptions(_:_:_:_:_:)
func CFStringFindWithOptionsAndLocale ¶
func CFStringFindWithOptionsAndLocale(theString CFStringRef, stringToFind CFStringRef, rangeToSearch CFRange, searchOptions CFStringCompareFlags, locale CFLocaleRef, result *CFRange) bool
CFStringFindWithOptionsAndLocale returns a Boolean value that indicates whether a given string was found in a given source string.
func CFStringFold ¶
func CFStringFold(theString CFMutableStringRef, theFlags CFStringCompareFlags, theLocale CFLocaleRef)
CFStringFold folds a given string into the form specified by optional flags.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringFold(_:_:_:)
func CFStringGetBytes ¶
func CFStringGetBytes(theString CFStringRef, range_ CFRange, encoding uint32, lossByte uint8, isExternalRepresentation bool, buffer *uint8, maxBufLen int, usedBufLen *int) int
CFStringGetBytes fetches a range of the characters from a string into a byte buffer after converting the characters to a specified encoding.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetBytes(_:_:_:_:_:_:_:_:)
func CFStringGetCString ¶
func CFStringGetCString(theString CFStringRef, buffer *byte, bufferSize int, encoding uint32) bool
CFStringGetCString copies the character contents of a string to a local C string buffer after converting the characters to a given encoding.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetCString(_:_:_:_:)
func CFStringGetCStringPtr ¶
func CFStringGetCStringPtr(theString CFStringRef, encoding uint32) *byte
CFStringGetCStringPtr quickly obtains a pointer to a C-string buffer containing the characters of a string in a given encoding.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetCStringPtr(_:_:)
func CFStringGetCharacterAtIndex ¶
func CFStringGetCharacterAtIndex(theString CFStringRef, idx int) uint16
CFStringGetCharacterAtIndex returns the Unicode character at a specified location in a string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetCharacterAtIndex(_:_:)
func CFStringGetCharacters ¶
func CFStringGetCharacters(theString CFStringRef, range_ CFRange, buffer *uint16)
CFStringGetCharacters copies a range of the Unicode characters from a string to a user-provided buffer.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetCharacters(_:_:_:)
func CFStringGetCharactersPtr ¶
func CFStringGetCharactersPtr(theString CFStringRef) *uint16
CFStringGetCharactersPtr quickly obtains a pointer to the contents of a string as a buffer of Unicode characters.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetCharactersPtr(_:)
func CFStringGetDoubleValue ¶
func CFStringGetDoubleValue(str CFStringRef) float64
CFStringGetDoubleValue returns the primary `double` value represented by a string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetDoubleValue(_:)
func CFStringGetFastestEncoding ¶
func CFStringGetFastestEncoding(theString CFStringRef) uint32
CFStringGetFastestEncoding returns for a CFString object the character encoding that requires the least conversion time.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetFastestEncoding(_:)
func CFStringGetFileSystemRepresentation ¶
func CFStringGetFileSystemRepresentation(string_ CFStringRef, buffer *byte, maxBufLen int) bool
CFStringGetFileSystemRepresentation extracts the contents of a string as a [NULL]-terminated 8-bit string appropriate for passing to POSIX APIs.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetFileSystemRepresentation(_:_:_:)
func CFStringGetHyphenationLocationBeforeIndex ¶
func CFStringGetHyphenationLocationBeforeIndex(string_ CFStringRef, location int, limitRange CFRange, options uint64, locale CFLocaleRef, character *uint32) int
CFStringGetHyphenationLocationBeforeIndex retrieve the first potential hyphenation location found before the specified location.
func CFStringGetIntValue ¶
func CFStringGetIntValue(str CFStringRef) int32
CFStringGetIntValue returns the integer value represented by a string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetIntValue(_:)
func CFStringGetLength ¶
func CFStringGetLength(theString CFStringRef) int
CFStringGetLength returns the number (in terms of UTF-16 code pairs) of Unicode characters in a string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetLength(_:)
func CFStringGetLineBounds ¶
func CFStringGetLineBounds(theString CFStringRef, range_ CFRange, lineBeginIndex *int, lineEndIndex *int, contentsEndIndex *int)
CFStringGetLineBounds given a range of characters in a string, obtains the line bounds—that is, the indexes of the first character and the final characters of the lines containing the range.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetLineBounds(_:_:_:_:_:)
func CFStringGetListOfAvailableEncodings ¶
func CFStringGetListOfAvailableEncodings() *uint32
CFStringGetListOfAvailableEncodings returns a pointer to a list of string encodings supported by the current system.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetListOfAvailableEncodings()
func CFStringGetMaximumSizeForEncoding ¶
CFStringGetMaximumSizeForEncoding returns the maximum number of bytes a string of a specified length (in Unicode characters) will take up if encoded in a specified encoding.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetMaximumSizeForEncoding(_:_:)
func CFStringGetMaximumSizeOfFileSystemRepresentation ¶
func CFStringGetMaximumSizeOfFileSystemRepresentation(string_ CFStringRef) int
CFStringGetMaximumSizeOfFileSystemRepresentation determines the upper bound on the number of bytes required to hold the file system representation of the string.
func CFStringGetMostCompatibleMacStringEncoding ¶
CFStringGetMostCompatibleMacStringEncoding returns the most compatible Mac OS script value for the given input encoding.
func CFStringGetParagraphBounds ¶
func CFStringGetParagraphBounds(string_ CFStringRef, range_ CFRange, parBeginIndex *int, parEndIndex *int, contentsEndIndex *int)
CFStringGetParagraphBounds given a range of characters in a string, obtains the paragraph bounds—that is, the indexes of the first character and the final characters of the paragraph(s) containing the range.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetParagraphBounds(_:_:_:_:_:)
func CFStringGetPascalString ¶
func CFStringGetPascalString(theString CFStringRef, buffer *byte, bufferSize int, encoding uint32) bool
CFStringGetPascalString copies the character contents of a CFString object to a local Pascal string buffer after converting the characters to a requested encoding.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetPascalString(_:_:_:_:)
func CFStringGetPascalStringPtr ¶
func CFStringGetPascalStringPtr(theString CFStringRef, encoding uint32) *byte
CFStringGetPascalStringPtr quickly obtains a pointer to a Pascal buffer containing the characters of a string in a given encoding.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetPascalStringPtr(_:_:)
func CFStringGetSmallestEncoding ¶
func CFStringGetSmallestEncoding(theString CFStringRef) uint32
CFStringGetSmallestEncoding returns the smallest encoding on the current system for the character contents of a string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetSmallestEncoding(_:)
func CFStringGetSystemEncoding ¶
func CFStringGetSystemEncoding() uint32
CFStringGetSystemEncoding returns the default encoding used by the operating system when it creates strings.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetSystemEncoding()
func CFStringGetTypeID ¶
func CFStringGetTypeID() uint
CFStringGetTypeID returns the type identifier for the CFString opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetTypeID()
func CFStringHasPrefix ¶
func CFStringHasPrefix(theString CFStringRef, prefix CFStringRef) bool
CFStringHasPrefix determines if the character data of a string begin with a specified sequence of characters.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringHasPrefix(_:_:)
func CFStringHasSuffix ¶
func CFStringHasSuffix(theString CFStringRef, suffix CFStringRef) bool
CFStringHasSuffix determines if a string ends with a specified sequence of characters.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringHasSuffix(_:_:)
func CFStringInsert ¶
func CFStringInsert(str CFMutableStringRef, idx int, insertedStr CFStringRef)
CFStringInsert inserts a string at a specified location in the character buffer of a CFMutableString object.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringInsert(_:_:_:)
func CFStringIsEncodingAvailable ¶
CFStringIsEncodingAvailable determines whether a given Core Foundation string encoding is available on the current system.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringIsEncodingAvailable(_:)
func CFStringIsHyphenationAvailableForLocale ¶
func CFStringIsHyphenationAvailableForLocale(locale CFLocaleRef) bool
CFStringIsHyphenationAvailableForLocale returns a Boolean value that indicates whether hyphenation data is available.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringIsHyphenationAvailableForLocale(_:)
func CFStringLowercase ¶
func CFStringLowercase(theString CFMutableStringRef, locale CFLocaleRef)
CFStringLowercase changes all uppercase alphabetical characters in a CFMutableString to lowercase.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringLowercase(_:_:)
func CFStringNormalize ¶
func CFStringNormalize(theString CFMutableStringRef, theForm CFStringNormalizationForm)
CFStringNormalize normalizes the string into the specified form as described in Unicode Technical Report #15.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringNormalize(_:_:)
func CFStringPad ¶
func CFStringPad(theString CFMutableStringRef, padString CFStringRef, length int, indexIntoPad int)
CFStringPad enlarges a string, padding it with specified characters, or truncates the string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringPad(_:_:_:_:)
func CFStringReplace ¶
func CFStringReplace(theString CFMutableStringRef, range_ CFRange, replacement CFStringRef)
CFStringReplace replaces part of the character contents of a CFMutableString object with another string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringReplace(_:_:_:)
func CFStringReplaceAll ¶
func CFStringReplaceAll(theString CFMutableStringRef, replacement CFStringRef)
CFStringReplaceAll replaces all characters of a CFMutableString object with other characters.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringReplaceAll(_:_:)
func CFStringSetExternalCharactersNoCopy ¶
func CFStringSetExternalCharactersNoCopy(theString CFMutableStringRef, chars *uint16, length int, capacity int)
CFStringSetExternalCharactersNoCopy notifies a CFMutableString object that its external backing store of Unicode characters has changed.
func CFStringTokenizerGetCurrentSubTokens ¶
func CFStringTokenizerGetCurrentSubTokens(tokenizer CFStringTokenizerRef, ranges *CFRange, maxRangeLength int, derivedSubTokens CFMutableArrayRef) int
CFStringTokenizerGetCurrentSubTokens retrieves the subtokens or derived subtokens contained in the compound token.
func CFStringTokenizerGetTypeID ¶
func CFStringTokenizerGetTypeID() uint
CFStringTokenizerGetTypeID returns the type ID for CFStringTokenizer.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerGetTypeID()
func CFStringTokenizerSetString ¶
func CFStringTokenizerSetString(tokenizer CFStringTokenizerRef, string_ CFStringRef, range_ CFRange)
CFStringTokenizerSetString sets the string for a tokenizer.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerSetString(_:_:_:)
func CFStringTransform ¶
func CFStringTransform(string_ CFMutableStringRef, range_ *CFRange, transform CFStringRef, reverse bool) bool
CFStringTransform perform in-place transliteration on a mutable string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringTransform(_:_:_:_:)
func CFStringTrim ¶
func CFStringTrim(theString CFMutableStringRef, trimString CFStringRef)
CFStringTrim trims a specified substring from the beginning and end of a CFMutableString object.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringTrim(_:_:)
func CFStringTrimWhitespace ¶
func CFStringTrimWhitespace(theString CFMutableStringRef)
CFStringTrimWhitespace trims whitespace from the beginning and end of a CFMutableString object.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringTrimWhitespace(_:)
func CFStringUppercase ¶
func CFStringUppercase(theString CFMutableStringRef, locale CFLocaleRef)
CFStringUppercase changes all lowercase alphabetical characters in a CFMutableString object to uppercase.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringUppercase(_:_:)
func CFTimeZoneGetDaylightSavingTimeOffset ¶
func CFTimeZoneGetDaylightSavingTimeOffset(tz CFTimeZoneRef, at CFAbsoluteTime) float64
CFTimeZoneGetDaylightSavingTimeOffset returns the daylight saving time offset for a time zone at a given time.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneGetDaylightSavingTimeOffset(_:_:)
func CFTimeZoneGetSecondsFromGMT ¶
func CFTimeZoneGetSecondsFromGMT(tz CFTimeZoneRef, at CFAbsoluteTime) float64
CFTimeZoneGetSecondsFromGMT returns the difference in seconds between the receiver and Greenwich Mean Time (GMT) at the specified date.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneGetSecondsFromGMT(_:_:)
func CFTimeZoneGetTypeID ¶
func CFTimeZoneGetTypeID() uint
CFTimeZoneGetTypeID returns the type identifier for the CFTimeZone opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneGetTypeID()
func CFTimeZoneIsDaylightSavingTime ¶
func CFTimeZoneIsDaylightSavingTime(tz CFTimeZoneRef, at CFAbsoluteTime) bool
CFTimeZoneIsDaylightSavingTime returns whether or not a time zone is in daylight savings time at a specified date.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneIsDaylightSavingTime(_:_:)
func CFTimeZoneResetSystem ¶
func CFTimeZoneResetSystem()
CFTimeZoneResetSystem clears the previously determined system time zone, if any.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneResetSystem()
func CFTimeZoneSetAbbreviationDictionary ¶
func CFTimeZoneSetAbbreviationDictionary(dict CFDictionaryRef)
CFTimeZoneSetAbbreviationDictionary sets the abbreviation dictionary to a given dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneSetAbbreviationDictionary(_:)
func CFTimeZoneSetDefault ¶
func CFTimeZoneSetDefault(tz CFTimeZoneRef)
CFTimeZoneSetDefault sets the default time zone for your application the given time zone.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneSetDefault(_:)
func CFTreeAppendChild ¶
CFTreeAppendChild adds a new child to a tree as the last in its list of children.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeAppendChild(_:_:)
func CFTreeApplyFunctionToChildren ¶
func CFTreeApplyFunctionToChildren(tree CFTreeRef, applier CFTreeApplierFunction, context unsafe.Pointer)
CFTreeApplyFunctionToChildren calls a function once for each immediate child of a tree.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeApplyFunctionToChildren(_:_:_:)
func CFTreeGetChildCount ¶
CFTreeGetChildCount returns the number of children in a tree.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetChildCount(_:)
func CFTreeGetChildren ¶
CFTreeGetChildren fills a buffer with children from the tree.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetChildren(_:_:)
func CFTreeGetContext ¶
func CFTreeGetContext(tree CFTreeRef, context *CFTreeContext)
CFTreeGetContext returns the context of the specified tree.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetContext(_:_:)
func CFTreeGetTypeID ¶
func CFTreeGetTypeID() uint
CFTreeGetTypeID returns the type identifier of the CFTree opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetTypeID()
func CFTreeInsertSibling ¶
CFTreeInsertSibling inserts a new sibling after a given tree.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeInsertSibling(_:_:)
func CFTreePrependChild ¶
CFTreePrependChild adds a new child to the specified tree as the first in its list of children.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreePrependChild(_:_:)
func CFTreeRemove ¶
func CFTreeRemove(tree CFTreeRef)
CFTreeRemove removes a tree from its parent.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeRemove(_:)
func CFTreeRemoveAllChildren ¶
func CFTreeRemoveAllChildren(tree CFTreeRef)
CFTreeRemoveAllChildren removes all the children of a tree.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeRemoveAllChildren(_:)
func CFTreeSetContext ¶
func CFTreeSetContext(tree CFTreeRef, context *CFTreeContext)
CFTreeSetContext replaces the context of a tree by releasing the old information pointer and retaining the new one.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeSetContext(_:_:)
func CFTreeSortChildren ¶
func CFTreeSortChildren(tree CFTreeRef, comparator CFComparatorFunction, context unsafe.Pointer)
CFTreeSortChildren sorts the immediate children of a tree using a specified comparator function.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeSortChildren(_:_:_:)
func CFURLCanBeDecomposed ¶
CFURLCanBeDecomposed determines if the given URL conforms to RFC 1808 and therefore can be decomposed.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCanBeDecomposed(_:)
func CFURLClearResourcePropertyCache ¶
func CFURLClearResourcePropertyCache(url CFURLRef)
CFURLClearResourcePropertyCache removes all cached resource values and temporary resource values from the URL object.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLClearResourcePropertyCache(_:)
func CFURLClearResourcePropertyCacheForKey ¶
func CFURLClearResourcePropertyCacheForKey(url CFURLRef, key CFStringRef)
CFURLClearResourcePropertyCacheForKey removes the cached resource value identified by a given key from the URL object.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLClearResourcePropertyCacheForKey(_:_:)
func CFURLCopyResourcePropertyForKey ¶
func CFURLCopyResourcePropertyForKey(url CFURLRef, key CFStringRef, propertyValueTypeRefPtr unsafe.Pointer, err *CFErrorRef) bool
CFURLCopyResourcePropertyForKey returns the value of a given resource property of a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyResourcePropertyForKey(_:_:_:_:)
func CFURLEnumeratorGetDescendentLevel ¶
func CFURLEnumeratorGetDescendentLevel(enumerator CFURLEnumeratorRef) int
CFURLEnumeratorGetDescendentLevel returns the number of levels a recursive directory enumerator has descended.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorGetDescendentLevel(_:)
func CFURLEnumeratorGetTypeID ¶
func CFURLEnumeratorGetTypeID() uint
CFURLEnumeratorGetTypeID returns the opaque type identifier for the CFURLEnumerator opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorGetTypeID()
func CFURLEnumeratorSkipDescendents ¶
func CFURLEnumeratorSkipDescendents(enumerator CFURLEnumeratorRef)
CFURLEnumeratorSkipDescendents tells a recursive enumerator not to descend into the directory at the URL that was returned by the most recent call to the CFURLEnumeratorGetNextURL(_:_:_:) function.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorSkipDescendents(_:)
func CFURLGetBytes ¶
CFURLGetBytes returns by reference the byte representation of a URL object.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLGetBytes(_:_:_:)
func CFURLGetFileSystemRepresentation ¶
func CFURLGetFileSystemRepresentation(url CFURLRef, resolveAgainstBase bool, buffer *uint8, maxBufLen int) bool
CFURLGetFileSystemRepresentation fills a buffer with the file system’s native string representation of a given URL’s path.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLGetFileSystemRepresentation(_:_:_:_:)
func CFURLGetPortNumber ¶
CFURLGetPortNumber returns the port number from a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLGetPortNumber(_:)
func CFURLGetTypeID ¶
func CFURLGetTypeID() uint
CFURLGetTypeID returns the type identifier for the [CFURL] opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLGetTypeID()
func CFURLHasDirectoryPath ¶
CFURLHasDirectoryPath determines if a given URL’s path represents a directory.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLHasDirectoryPath(_:)
func CFURLIsFileReferenceURL ¶
CFURLIsFileReferenceURL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLIsFileReferenceURL(_:)
func CFURLResourceIsReachable ¶
func CFURLResourceIsReachable(url CFURLRef, err *CFErrorRef) bool
CFURLResourceIsReachable returns whether the resource pointed to by a file URL can be reached.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLResourceIsReachable(_:_:)
func CFURLSetResourcePropertiesForKeys ¶
func CFURLSetResourcePropertiesForKeys(url CFURLRef, keyedPropertyValues CFDictionaryRef, err *CFErrorRef) bool
CFURLSetResourcePropertiesForKeys sets the URL’s resource properties for a given set of keys to a given set of values.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLSetResourcePropertiesForKeys(_:_:_:)
func CFURLSetResourcePropertyForKey ¶
func CFURLSetResourcePropertyForKey(url CFURLRef, key CFStringRef, propertyValue CFTypeRef, err *CFErrorRef) bool
CFURLSetResourcePropertyForKey sets the URL’s resource property for a given key to a given value.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLSetResourcePropertyForKey(_:_:_:_:)
func CFURLSetTemporaryResourcePropertyForKey ¶
func CFURLSetTemporaryResourcePropertyForKey(url CFURLRef, key CFStringRef, propertyValue CFTypeRef)
CFURLSetTemporaryResourcePropertyForKey sets a temporary resource value on the URL.
func CFURLStartAccessingSecurityScopedResource ¶
CFURLStartAccessingSecurityScopedResource in an app that has adopted App Sandbox, makes the resource pointed to by a security-scoped URL available to the app.
func CFURLStopAccessingSecurityScopedResource ¶
func CFURLStopAccessingSecurityScopedResource(url CFURLRef)
CFURLStopAccessingSecurityScopedResource in an app that adopts App Sandbox, revokes access to the resource pointed to by a security-scoped URL.
func CFURLWriteBookmarkDataToFile ¶
func CFURLWriteBookmarkDataToFile(bookmarkRef CFDataRef, fileURL CFURLRef, options CFURLBookmarkFileCreationOptions, errorRef *CFErrorRef) bool
CFURLWriteBookmarkDataToFile creates an alias file on disk at a specified location with specified bookmark data.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLWriteBookmarkDataToFile(_:_:_:_:)
func CFUUIDGetTypeID ¶
func CFUUIDGetTypeID() uint
CFUUIDGetTypeID returns the type identifier for all CFUUID objects.
See: https://developer.apple.com/documentation/CoreFoundation/CFUUIDGetTypeID()
func CFUserNotificationCancel ¶
func CFUserNotificationCancel(userNotification CFUserNotificationRef) int32
CFUserNotificationCancel cancels a user notification dialog.
See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationCancel(_:)
func CFUserNotificationDisplayAlert ¶
func CFUserNotificationDisplayAlert(timeout float64, flags uint64, iconURL CFURLRef, soundURL CFURLRef, localizationURL CFURLRef, alertHeader CFStringRef, alertMessage CFStringRef, defaultButtonTitle CFStringRef, alternateButtonTitle CFStringRef, otherButtonTitle CFStringRef, responseFlags *uint64) int32
CFUserNotificationDisplayAlert displays a user notification dialog and waits for a user response.
func CFUserNotificationDisplayNotice ¶
func CFUserNotificationDisplayNotice(timeout float64, flags uint64, iconURL CFURLRef, soundURL CFURLRef, localizationURL CFURLRef, alertHeader CFStringRef, alertMessage CFStringRef, defaultButtonTitle CFStringRef) int32
CFUserNotificationDisplayNotice displays a user notification dialog that does not need a user response.
func CFUserNotificationGetTypeID ¶
func CFUserNotificationGetTypeID() uint
CFUserNotificationGetTypeID returns the type identifier for the [CFUserNotification] opaque type.
See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationGetTypeID()
func CFUserNotificationReceiveResponse ¶
func CFUserNotificationReceiveResponse(userNotification CFUserNotificationRef, timeout float64, responseFlags *uint64) int32
CFUserNotificationReceiveResponse waits for the user to respond to a notification or for the notification to time out.
See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationReceiveResponse(_:_:_:)
func CFUserNotificationUpdate ¶
func CFUserNotificationUpdate(userNotification CFUserNotificationRef, timeout float64, flags uint64, dictionary CFDictionaryRef) int32
CFUserNotificationUpdate updates a displayed user notification dialog with new user interface information.
See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationUpdate(_:_:_:_:)
func CFWriteStreamCanAcceptBytes ¶
func CFWriteStreamCanAcceptBytes(stream CFWriteStreamRef) bool
CFWriteStreamCanAcceptBytes returns whether a writable stream can accept new data without blocking.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamCanAcceptBytes(_:)
func CFWriteStreamClose ¶
func CFWriteStreamClose(stream CFWriteStreamRef)
CFWriteStreamClose closes a writable stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamClose(_:)
func CFWriteStreamCopyDispatchQueue ¶
func CFWriteStreamCopyDispatchQueue(stream CFWriteStreamRef) dispatch.Queue
CFWriteStreamCopyDispatchQueue.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamCopyDispatchQueue(_:)
func CFWriteStreamGetTypeID ¶
func CFWriteStreamGetTypeID() uint
CFWriteStreamGetTypeID returns the type identifier of all CFWriteStream objects.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamGetTypeID()
func CFWriteStreamOpen ¶
func CFWriteStreamOpen(stream CFWriteStreamRef) bool
CFWriteStreamOpen opens a stream for writing.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamOpen(_:)
func CFWriteStreamScheduleWithRunLoop ¶
func CFWriteStreamScheduleWithRunLoop(stream CFWriteStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode)
CFWriteStreamScheduleWithRunLoop schedules a stream into a run loop.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamScheduleWithRunLoop(_:_:_:)
func CFWriteStreamSetClient ¶
func CFWriteStreamSetClient(stream CFWriteStreamRef, streamEvents uint64, clientCB CFWriteStreamClientCallBack, clientContext *CFStreamClientContext) bool
CFWriteStreamSetClient assigns a client to a stream, which receives callbacks when certain events occur.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamSetClient(_:_:_:_:)
func CFWriteStreamSetDispatchQueue ¶
func CFWriteStreamSetDispatchQueue(stream CFWriteStreamRef, q dispatch.Queue)
CFWriteStreamSetDispatchQueue.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamSetDispatchQueue(_:_:)
func CFWriteStreamSetProperty ¶
func CFWriteStreamSetProperty(stream CFWriteStreamRef, propertyName CFStreamPropertyKey, propertyValue CFTypeRef) bool
CFWriteStreamSetProperty sets the value of a property for a stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamSetProperty(_:_:_:)
func CFWriteStreamUnscheduleFromRunLoop ¶
func CFWriteStreamUnscheduleFromRunLoop(stream CFWriteStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode)
CFWriteStreamUnscheduleFromRunLoop removes a stream from a particular run loop.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamUnscheduleFromRunLoop(_:_:_:)
func CFWriteStreamWrite ¶
func CFWriteStreamWrite(stream CFWriteStreamRef, buffer *uint8, bufferLength int) int
CFWriteStreamWrite writes data to a writable stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamWrite(_:_:_:)
func CFXMLNodeCreate
deprecated
func CFXMLNodeCreate(alloc CFAllocatorRef, xmlType uint32, dataString CFStringRef, additionalInfoPtr unsafe.Pointer, version int) unsafe.Pointer
CFXMLNodeCreate creates a new CFXMLNode.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLNodeCreate
func CFXMLNodeCreateCopy
deprecated
func CFXMLNodeCreateCopy(alloc CFAllocatorRef, origNode unsafe.Pointer) unsafe.Pointer
CFXMLNodeCreateCopy creates a copy of a CFXMLNode object.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLNodeCreateCopy
func CFXMLNodeGetInfoPtr
deprecated
CFXMLNodeGetInfoPtr returns the additional information pointer of a CFXMLNode object.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLNodeGetInfoPtr
func CFXMLNodeGetTypeCode
deprecated
CFXMLNodeGetTypeCode returns the XML structure type code for a CFXMLNode object.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLNodeGetTypeCode
func CFXMLNodeGetTypeID
deprecated
func CFXMLNodeGetTypeID() uint
CFXMLNodeGetTypeID returns the type identifier code for the CFXMLNode opaque type.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLNodeGetTypeID
func CFXMLNodeGetVersion
deprecated
CFXMLNodeGetVersion returns the version number for a CFXMLNode object.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLNodeGetVersion
func CFXMLParserAbort
deprecated
func CFXMLParserAbort(parser CFXMLParserRef, errorCode CFXMLParserStatusCode, errorDescription CFStringRef)
CFXMLParserAbort causes a parser to abort with the given error code and description.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserAbort
func CFXMLParserGetCallBacks
deprecated
func CFXMLParserGetCallBacks(parser CFXMLParserRef, callBacks *CFXMLParserCallBacks)
CFXMLParserGetCallBacks returns the callbacks associated with an XML parser when it was created.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetCallBacks
func CFXMLParserGetContext
deprecated
func CFXMLParserGetContext(parser CFXMLParserRef, context *CFXMLParserContext)
CFXMLParserGetContext returns the context for an XML parser.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetContext
func CFXMLParserGetDocument
deprecated
func CFXMLParserGetDocument(parser CFXMLParserRef) unsafe.Pointer
CFXMLParserGetDocument returns the top-most object returned by the create XML structure callback.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetDocument
func CFXMLParserGetLineNumber
deprecated
func CFXMLParserGetLineNumber(parser CFXMLParserRef) int
CFXMLParserGetLineNumber returns the line number of the current parse location.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetLineNumber
func CFXMLParserGetLocation
deprecated
func CFXMLParserGetLocation(parser CFXMLParserRef) int
CFXMLParserGetLocation returns the character index of the current parse location.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetLocation
func CFXMLParserGetTypeID
deprecated
func CFXMLParserGetTypeID() uint
CFXMLParserGetTypeID returns the type identifier for the CFXMLParser opaque type.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetTypeID
func CFXMLParserParse
deprecated
func CFXMLParserParse(parser CFXMLParserRef) bool
CFXMLParserParse begins a parse of the XML data that was associated with the parser when it was created.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserParse
func CFXMLTreeGetNode
deprecated
func CFXMLTreeGetNode(xmlTree CFXMLTreeRef) unsafe.Pointer
CFXMLTreeGetNode returns the node of a CFXMLTree object.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLTreeGetNode
Types ¶
type CFAbsoluteTime ¶
type CFAbsoluteTime = float64
CFAbsoluteTime is type used to represent a specific point in time relative to the absolute reference date of 1 Jan 2001 00:00:00 GMT.
See: https://developer.apple.com/documentation/CoreFoundation/CFAbsoluteTime
func CFAbsoluteTimeGetCurrent ¶
func CFAbsoluteTimeGetCurrent() CFAbsoluteTime
CFAbsoluteTimeGetCurrent returns the current system absolute time.
See: https://developer.apple.com/documentation/CoreFoundation/CFAbsoluteTimeGetCurrent()
func CFDateGetAbsoluteTime ¶
func CFDateGetAbsoluteTime(theDate CFDateRef) CFAbsoluteTime
CFDateGetAbsoluteTime returns a [CFDate] object’s absolute time.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateGetAbsoluteTime(_:)
func CFRunLoopGetNextTimerFireDate ¶
func CFRunLoopGetNextTimerFireDate(rl CFRunLoopRef, mode CFRunLoopMode) CFAbsoluteTime
CFRunLoopGetNextTimerFireDate returns the time at which the next timer will fire.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopGetNextTimerFireDate(_:_:)
func CFRunLoopTimerGetNextFireDate ¶
func CFRunLoopTimerGetNextFireDate(timer CFRunLoopTimerRef) CFAbsoluteTime
CFRunLoopTimerGetNextFireDate returns the next firing time for a CFRunLoopTimer object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerGetNextFireDate(_:)
func CFTimeZoneGetNextDaylightSavingTimeTransition ¶
func CFTimeZoneGetNextDaylightSavingTimeTransition(tz CFTimeZoneRef, at CFAbsoluteTime) CFAbsoluteTime
CFTimeZoneGetNextDaylightSavingTimeTransition returns the time in a given time zone of the next daylight saving time transition after a given time.
type CFAllocatorAllocateCallBack ¶
CFAllocatorAllocateCallBack is a prototype for a function callback that allocates memory of a requested size.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorAllocateCallBack
type CFAllocatorContext ¶
type CFAllocatorContext struct {
Version int // An integer of type [CFIndex]. Assign the version number of the allocator. Currently the only valid value is 0.
Info unsafe.Pointer // An untyped pointer to program-defined data. Allocate memory for this data and assign a pointer to it. This data is often control information for the allocator. You may assign [NULL].
Retain CFAllocatorRetainCallBack // A prototype for a function callback that retains the data pointed to by the `info` field. In implementing this function, retain the data you have defined for the allocator context in this field. (This might make sense only if the data is a Core Foundation object.) You may set this function pointer to [NULL].
Release CFAllocatorReleaseCallBack // A prototype for a function callback that releases the data pointed to by the `info` field. In implementing this function, release (or free) the data you have defined for the allocator context. You may set this function pointer to [NULL], but doing so might result in memory leaks.
CopyDescription CFAllocatorCopyDescriptionCallBack // A prototype for a function callback that provides a description of the data pointed to by the `info` field. In implementing this function, return a reference to a CFString object that describes your allocator, particularly some characteristics of your program-defined data. You may set this function pointer to [NULL], in which case Core Foundation will provide a rudimentary description.
Allocate CFAllocatorAllocateCallBack // A prototype for a function callback that allocates memory of a requested size. In implementing this function, allocate a block of memory of at least `size` bytes and return a pointer to the start of the block. The `hint` argument is a bitfield that you should currently not use (that is, assign 0). The `size` parameter should always be greater than 0. If it is not, or if problems in allocation occur, return [NULL]. This function pointer may not be assigned [NULL].
Reallocate CFAllocatorReallocateCallBack // A prototype for a function callback that reallocates memory of a requested size for an existing block of memory.
Deallocate CFAllocatorDeallocateCallBack // A prototype for a function callback that deallocates a given block of memory. In implementing this function, make the block of memory pointed to by `ptr` available for subsequent reuse by the allocator but unavailable for continued use by the program. The `ptr` parameter cannot be [NULL] and if the `ptr` parameter is not a block of memory that has been previously allocated by the allocator, the results are undefined; abnormal program termination can occur. You can set this callback to [NULL], in which case the [CFAllocatorDeallocate(_:_:)](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFAllocatorDeallocate(_:_:)>) function has no effect.
PreferredSize CFAllocatorPreferredSizeCallBack // A prototype for a function callback that determines whether there is enough free memory to satisfy a request. In implementing this function, return the actual size the allocator is likely to allocate given a request for a block of memory of size `size`. The `hint` argument is a bitfield that you should currently not use.
}
C struct types CFAllocatorContext - A structure that defines the context or operating environment for an allocator (CFAllocator) object. Every Core Foundation allocator object must have a context defined for it.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorContext
type CFAllocatorCopyDescriptionCallBack ¶
CFAllocatorCopyDescriptionCallBack is a prototype for a function callback that provides a description of the specified data.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorCopyDescriptionCallBack
type CFAllocatorDeallocateCallBack ¶
CFAllocatorDeallocateCallBack is a prototype for a function callback that deallocates a block of memory.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorDeallocateCallBack
type CFAllocatorPreferredSizeCallBack ¶
CFAllocatorPreferredSizeCallBack is a prototype for a function callback that gives the size of memory likely to be allocated, given a certain request.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorPreferredSizeCallBack
type CFAllocatorReallocateCallBack ¶
CFAllocatorReallocateCallBack is a prototype for a function callback that reallocates memory of a requested size for an existing block of memory.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorReallocateCallBack
type CFAllocatorRef ¶
type CFAllocatorRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocator
var ( // KCFAllocatorDefault is this is a synonym for [NULL]. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFAllocatorDefault KCFAllocatorDefault CFAllocatorRef // KCFAllocatorMalloc is this allocator uses `malloc()`, `realloc()`, and `free()`. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFAllocatorMalloc KCFAllocatorMalloc CFAllocatorRef // KCFAllocatorMallocZone is this allocator explicitly uses the default malloc zone, returned by `malloc_default_zone()`. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFAllocatorMallocZone KCFAllocatorMallocZone CFAllocatorRef // KCFAllocatorNull is this allocator does nothing—it allocates no memory. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFAllocatorNull KCFAllocatorNull CFAllocatorRef // KCFAllocatorSystemDefault is default system allocator. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFAllocatorSystemDefault KCFAllocatorSystemDefault CFAllocatorRef // KCFAllocatorUseContext is special allocator argument to [CFAllocatorCreate(_:_:)]—it uses the functions given in the context to allocate the allocator. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFAllocatorUseContext KCFAllocatorUseContext CFAllocatorRef )
func CFAllocatorCreate ¶
func CFAllocatorCreate(allocator CFAllocatorRef, context *CFAllocatorContext) CFAllocatorRef
CFAllocatorCreate creates an allocator object.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorCreate(_:_:)
func CFAllocatorCreateWithZone ¶ added in v0.2.0
func CFAllocatorCreateWithZone(allocator CFAllocatorRef, zone unsafe.Pointer) CFAllocatorRef
CFAllocatorCreateWithZone.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorCreateWithZone
func CFAllocatorGetDefault ¶
func CFAllocatorGetDefault() CFAllocatorRef
CFAllocatorGetDefault gets the default allocator object for the current thread.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorGetDefault()
func CFGetAllocator ¶
func CFGetAllocator(cf CFTypeRef) CFAllocatorRef
CFGetAllocator returns the allocator used to allocate a Core Foundation object.
See: https://developer.apple.com/documentation/CoreFoundation/CFGetAllocator(_:)
type CFAllocatorReleaseCallBack ¶
CFAllocatorReleaseCallBack is a prototype for a function callback that releases the given data.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorReleaseCallBack
type CFAllocatorRetainCallBack ¶
CFAllocatorRetainCallBack is a prototype for a function callback that retains the given data.
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorRetainCallBack
type CFAllocatorTypeID ¶
type CFAllocatorTypeID = uint64
See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorTypeID
type CFArrayApplierFunction ¶
CFArrayApplierFunction is prototype of a callback function that may be applied to every value in an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayApplierFunction
type CFArrayCallBacks ¶
type CFArrayCallBacks struct {
Version int // The version number of this structure. If not one of the defined version numbers for this opaque type, the behavior is undefined. The current version of this structure is 0.
Retain CFArrayRetainCallBack // The callback used to retain each value as they are added to the collection. If [NULL], values are not retained. See [CFArrayRetainCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFArrayRetainCallBack>) for a description of this callback.
Release CFArrayReleaseCallBack // The callback used to release values as they are removed from the collection. If [NULL], values are not released. See [CFArrayReleaseCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFArrayReleaseCallBack>) for a description of this callback.
CopyDescription CFArrayCopyDescriptionCallBack // The callback used to create a descriptive string representation of each value in the collection. If [NULL], the collection will create a simple description of each value. See [CFArrayCopyDescriptionCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFArrayCopyDescriptionCallBack>) for a description of this callback.
Equal CFArrayEqualCallBack // The callback used to compare values in the array for equality for some operations. If [NULL], the collection will use pointer equality to compare values in the collection. See [CFArrayEqualCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFArrayEqualCallBack>) for a description of this callback.
}
CFArrayCallBacks - Structure containing the callbacks of a CFArray.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFArrayCallBacks
var ( // See: https://developer.apple.com/documentation/CoreFoundation/kCFTypeArrayCallBacks KCFTypeArrayCallBacks CFArrayCallBacks )
type CFArrayCopyDescriptionCallBack ¶
CFArrayCopyDescriptionCallBack is prototype of a callback function used to get a description of a value in an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayCopyDescriptionCallBack
type CFArrayEqualCallBack ¶
CFArrayEqualCallBack is prototype of a callback function used to determine if two values in an array are equal.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayEqualCallBack
type CFArrayRef ¶
type CFArrayRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFArray
func CFArrayCreate ¶
func CFArrayCreate(allocator CFAllocatorRef, values unsafe.Pointer, numValues int, callBacks *CFArrayCallBacks) CFArrayRef
CFArrayCreate creates a new immutable array with the given values.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayCreate(_:_:_:_:)
func CFArrayCreateCopy ¶
func CFArrayCreateCopy(allocator CFAllocatorRef, theArray CFArrayRef) CFArrayRef
CFArrayCreateCopy creates a new immutable array with the values from another array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayCreateCopy(_:_:)
func CFBundleCopyBundleLocalizations ¶
func CFBundleCopyBundleLocalizations(bundle CFBundleRef) CFArrayRef
CFBundleCopyBundleLocalizations returns an array containing a bundle’s localizations.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyBundleLocalizations(_:)
func CFBundleCopyExecutableArchitectures ¶
func CFBundleCopyExecutableArchitectures(bundle CFBundleRef) CFArrayRef
CFBundleCopyExecutableArchitectures returns an array of CFNumbers representing the architectures a given bundle provides.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyExecutableArchitectures(_:)
func CFBundleCopyExecutableArchitecturesForURL ¶
func CFBundleCopyExecutableArchitecturesForURL(url CFURLRef) CFArrayRef
CFBundleCopyExecutableArchitecturesForURL returns an array of CFNumbers representing the architectures a given URL provides.
func CFBundleCopyLocalizationsForPreferences ¶
func CFBundleCopyLocalizationsForPreferences(locArray CFArrayRef, prefArray CFArrayRef) CFArrayRef
CFBundleCopyLocalizationsForPreferences given an array of possible localizations and preferred locations, returns the one or more of them that CFBundle would use, without reference to the current application context.
func CFBundleCopyLocalizationsForURL ¶
func CFBundleCopyLocalizationsForURL(url CFURLRef) CFArrayRef
CFBundleCopyLocalizationsForURL returns an array containing the localizations for a bundle or executable at a particular location.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyLocalizationsForURL(_:)
func CFBundleCopyPreferredLocalizationsFromArray ¶
func CFBundleCopyPreferredLocalizationsFromArray(locArray CFArrayRef) CFArrayRef
CFBundleCopyPreferredLocalizationsFromArray given an array of possible localizations, returns the one or more of them that CFBundle would use in the current application context.
func CFBundleCopyResourceURLsOfType ¶
func CFBundleCopyResourceURLsOfType(bundle CFBundleRef, resourceType CFStringRef, subDirName CFStringRef) CFArrayRef
CFBundleCopyResourceURLsOfType assembles an array of URLs specifying all of the resources of the specified type found in a bundle.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyResourceURLsOfType(_:_:_:)
func CFBundleCopyResourceURLsOfTypeForLocalization ¶
func CFBundleCopyResourceURLsOfTypeForLocalization(bundle CFBundleRef, resourceType CFStringRef, subDirName CFStringRef, localizationName CFStringRef) CFArrayRef
CFBundleCopyResourceURLsOfTypeForLocalization returns an array containing copies of the URL locations for a specified bundle, resource, and localization name.
func CFBundleCopyResourceURLsOfTypeInDirectory ¶
func CFBundleCopyResourceURLsOfTypeInDirectory(bundleURL CFURLRef, resourceType CFStringRef, subDirName CFStringRef) CFArrayRef
CFBundleCopyResourceURLsOfTypeInDirectory returns an array of CFURL objects describing the locations of all resources in a bundle of the specified type without needing to create a CFBundle object.
func CFBundleCreateBundlesFromDirectory ¶
func CFBundleCreateBundlesFromDirectory(allocator CFAllocatorRef, directoryURL CFURLRef, bundleType CFStringRef) CFArrayRef
CFBundleCreateBundlesFromDirectory searches a directory and constructs an array of CFBundle objects from all valid bundles in the specified directory.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCreateBundlesFromDirectory(_:_:_:)
func CFBundleGetAllBundles ¶
func CFBundleGetAllBundles() CFArrayRef
CFBundleGetAllBundles returns an array containing all of the bundles currently open in the application.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetAllBundles()
func CFLocaleCopyAvailableLocaleIdentifiers ¶
func CFLocaleCopyAvailableLocaleIdentifiers() CFArrayRef
CFLocaleCopyAvailableLocaleIdentifiers returns an array of CFString objects that represents all locales for which locale data is available.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCopyAvailableLocaleIdentifiers()
func CFLocaleCopyCommonISOCurrencyCodes ¶
func CFLocaleCopyCommonISOCurrencyCodes() CFArrayRef
CFLocaleCopyCommonISOCurrencyCodes returns an array of strings that represents ISO currency codes for currencies in common use.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCopyCommonISOCurrencyCodes()
func CFLocaleCopyISOCountryCodes ¶
func CFLocaleCopyISOCountryCodes() CFArrayRef
CFLocaleCopyISOCountryCodes returns an array of CFString objects that represents all known legal ISO country codes.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCopyISOCountryCodes()
func CFLocaleCopyISOCurrencyCodes ¶
func CFLocaleCopyISOCurrencyCodes() CFArrayRef
CFLocaleCopyISOCurrencyCodes returns an array of CFString objects that represents all known legal ISO currency codes.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCopyISOCurrencyCodes()
func CFLocaleCopyISOLanguageCodes ¶
func CFLocaleCopyISOLanguageCodes() CFArrayRef
CFLocaleCopyISOLanguageCodes returns an array of CFString objects that represents all known legal ISO language codes.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCopyISOLanguageCodes()
func CFLocaleCopyPreferredLanguages ¶
func CFLocaleCopyPreferredLanguages() CFArrayRef
CFLocaleCopyPreferredLanguages returns the array of canonicalized language IDs that the user prefers.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCopyPreferredLanguages()
func CFPlugInFindFactoriesForPlugInType ¶
func CFPlugInFindFactoriesForPlugInType(typeUUID CFUUIDRef) CFArrayRef
CFPlugInFindFactoriesForPlugInType searches all registered plug-ins for factory functions capable of creating an instance of the given type.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInFindFactoriesForPlugInType(_:)
func CFPlugInFindFactoriesForPlugInTypeInPlugIn ¶
func CFPlugInFindFactoriesForPlugInTypeInPlugIn(typeUUID CFUUIDRef, plugIn CFPlugInRef) CFArrayRef
CFPlugInFindFactoriesForPlugInTypeInPlugIn searches the given plug-in for factory functions capable of creating an instance of the given type.
func CFPreferencesCopyKeyList ¶
func CFPreferencesCopyKeyList(applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) CFArrayRef
CFPreferencesCopyKeyList constructs and returns the list of all keys set in the specified domain.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesCopyKeyList(_:_:_:)
func CFRunLoopCopyAllModes ¶
func CFRunLoopCopyAllModes(rl CFRunLoopRef) CFArrayRef
CFRunLoopCopyAllModes returns an array that contains all the defined modes for a CFRunLoop object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopCopyAllModes(_:)
func CFStringCreateArrayBySeparatingStrings ¶
func CFStringCreateArrayBySeparatingStrings(alloc CFAllocatorRef, theString CFStringRef, separatorString CFStringRef) CFArrayRef
CFStringCreateArrayBySeparatingStrings creates an array of CFString objects from a single CFString object.
func CFStringCreateArrayWithFindResults ¶
func CFStringCreateArrayWithFindResults(alloc CFAllocatorRef, theString CFStringRef, stringToFind CFStringRef, rangeToSearch CFRange, compareOptions CFStringCompareFlags) CFArrayRef
CFStringCreateArrayWithFindResults searches a string for multiple occurrences of a substring and creates an array of ranges identifying the locations of these substrings within the target string.
func CFTimeZoneCopyKnownNames ¶
func CFTimeZoneCopyKnownNames() CFArrayRef
CFTimeZoneCopyKnownNames returns an array of strings containing the names of all the time zones known to the system.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneCopyKnownNames()
type CFArrayReleaseCallBack ¶
CFArrayReleaseCallBack is prototype of a callback function used to release a value before it’s removed from an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayReleaseCallBack
type CFArrayRetainCallBack ¶
CFArrayRetainCallBack is prototype of a callback function used to retain a value being added to an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayRetainCallBack
type CFAttributedString ¶
type CFAttributedString = CFAttributedStringRef
type CFAttributedStringRef ¶
type CFAttributedStringRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedString
func CFAttributedStringCreate ¶
func CFAttributedStringCreate(alloc CFAllocatorRef, str CFStringRef, attributes CFDictionaryRef) CFAttributedStringRef
CFAttributedStringCreate creates an attributed string with specified string and attributes.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringCreate(_:_:_:)
func CFAttributedStringCreateCopy ¶
func CFAttributedStringCreateCopy(alloc CFAllocatorRef, aStr CFAttributedStringRef) CFAttributedStringRef
CFAttributedStringCreateCopy creates an immutable copy of an attributed string.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringCreateCopy(_:_:)
func CFAttributedStringCreateWithSubstring ¶
func CFAttributedStringCreateWithSubstring(alloc CFAllocatorRef, aStr CFAttributedStringRef, range_ CFRange) CFAttributedStringRef
CFAttributedStringCreateWithSubstring creates a sub-attributed string from the specified range.
type CFBagApplierFunction ¶
CFBagApplierFunction is prototype of a callback function that may be applied to every value in a bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagApplierFunction
type CFBagCallBacks ¶
type CFBagCallBacks struct {
Version int // The version number of this structure. If not one of the defined version numbers for this opaque type, the behavior is undefined. The current version of this structure is 0.
Retain CFBagRetainCallBack // The callback used to retain each value as they are added to the collection. If [NULL], values are not retained. See [CFBagRetainCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFBagRetainCallBack>) for a descriptions of this function’s parameters.
Release CFBagReleaseCallBack // The callback used to release values as they are removed from the collection. If [NULL], values are not released. See [CFBagReleaseCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFBagReleaseCallBack>) for a description of this callback.
CopyDescription CFBagCopyDescriptionCallBack // The callback used to create a descriptive string representation of each value in the collection. If [NULL], the collection will create a simple description of each value. See [CFBagCopyDescriptionCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFBagCopyDescriptionCallBack>) for a description of this callback.
Equal CFBagEqualCallBack // The callback used to compare values in the collection for equality for some operations. If [NULL], the collection will use pointer equality to compare values in the collection. See [CFBagEqualCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFBagEqualCallBack>) for a description of this callback.
Hash CFBagHashCallBack // The callback used to compute a hash code for values in a collection. If [NULL], the collection computes a hash code by converting the pointer value to an integer. See [CFBagHashCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFBagHashCallBack>) for a description of this callback.
}
CFBagCallBacks - This structure contains the callbacks used to retain, release, describe, and compare the values of a CFBag object.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFBagCallBacks
var ( // KCFCopyStringBagCallBacks is predefined [CFBagCallBacks] structure containing a set of callbacks appropriate for use when the values in a CFBag are all CFString objects. The bag makes immutable copies of the strings placed into it. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFCopyStringBagCallBacks KCFCopyStringBagCallBacks CFBagCallBacks // See: https://developer.apple.com/documentation/CoreFoundation/kCFTypeBagCallBacks KCFTypeBagCallBacks CFBagCallBacks )
type CFBagCopyDescriptionCallBack ¶
CFBagCopyDescriptionCallBack is prototype of a callback function used to get a description of a value in a bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagCopyDescriptionCallBack
type CFBagEqualCallBack ¶
CFBagEqualCallBack is prototype of a callback function used to determine if two values in a bag are equal.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagEqualCallBack
type CFBagHashCallBack ¶
CFBagHashCallBack is prototype of a callback function invoked to compute a hash code for a value. Hash codes are used when values are accessed, added, or removed from a collection.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagHashCallBack
type CFBagRef ¶
type CFBagRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFBag
func CFBagCreate ¶
func CFBagCreate(allocator CFAllocatorRef, values unsafe.Pointer, numValues int, callBacks *CFBagCallBacks) CFBagRef
CFBagCreate creates an immutable bag containing specified values.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagCreate(_:_:_:_:)
func CFBagCreateCopy ¶
func CFBagCreateCopy(allocator CFAllocatorRef, theBag CFBagRef) CFBagRef
CFBagCreateCopy creates an immutable bag with the values of another bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagCreateCopy(_:_:)
type CFBagReleaseCallBack ¶
CFBagReleaseCallBack is prototype of a callback function used to release a value before it’s removed from a bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagReleaseCallBack
type CFBagRetainCallBack ¶
CFBagRetainCallBack is prototype of a callback function used to retain a value being added to a bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagRetainCallBack
type CFBinaryHeapApplierFunction ¶
CFBinaryHeapApplierFunction is callback function used to apply a function to all members of a binary heap.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapApplierFunction
type CFBinaryHeapCallBacks ¶
type CFBinaryHeapCallBacks struct {
Version int // The version number of the structure type being passed in as a parameter to the [CFBinaryHeap] creation functions. This structure is version `0`.
Compare func(unsafe.Pointer, unsafe.Pointer, unsafe.Pointer) CFComparisonResult // The callback used to compare values in the binary heap in some operations. This field cannot be [NULL].
CopyDescription func(unsafe.Pointer) uintptr // Callback function used to get a description of a value in a binary heap.
Release func(uintptr, unsafe.Pointer) // Callback function used to release a value before it is removed from a binary heap.
Retain func(uintptr, unsafe.Pointer) unsafe.Pointer // Callback function used to retain a value being added to a binary heap.
}
CFBinaryHeapCallBacks - Structure containing the callbacks for values for a [CFBinaryHeap] object.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapCallBacks
var ( // KCFStringBinaryHeapCallBacks is predefined [CFBinaryHeapCallBacks] structure containing a set of callbacks appropriate for use when the values in a binary heap are all [CFString] objects. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFStringBinaryHeapCallBacks KCFStringBinaryHeapCallBacks CFBinaryHeapCallBacks )
type CFBinaryHeapCompareContext ¶
type CFBinaryHeapCompareContext struct {
Version int
Info unsafe.Pointer
CopyDescription func(unsafe.Pointer) uintptr
Release func(unsafe.Pointer)
Retain func(unsafe.Pointer) unsafe.Pointer
}
CFBinaryHeapCompareContext - Not used.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapCompareContext
type CFBinaryHeapRef ¶
type CFBinaryHeapRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeap
func CFBinaryHeapCreate ¶
func CFBinaryHeapCreate(allocator CFAllocatorRef, capacity int, callBacks *CFBinaryHeapCallBacks, compareContext *CFBinaryHeapCompareContext) CFBinaryHeapRef
CFBinaryHeapCreate creates a new mutable or fixed-mutable binary heap.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapCreate(_:_:_:_:)
func CFBinaryHeapCreateCopy ¶
func CFBinaryHeapCreateCopy(allocator CFAllocatorRef, capacity int, heap CFBinaryHeapRef) CFBinaryHeapRef
CFBinaryHeapCreateCopy creates a new mutable or fixed-mutable binary heap with the values from a pre-existing binary heap.
See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapCreateCopy(_:_:_:)
type CFBit ¶
type CFBit = uint32
CFBit is a binary value of either `0` or `1`.
See: https://developer.apple.com/documentation/CoreFoundation/CFBit
func CFBitVectorGetBitAtIndex ¶
func CFBitVectorGetBitAtIndex(bv CFBitVectorRef, idx int) CFBit
CFBitVectorGetBitAtIndex returns the bit value at a given index in a bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetBitAtIndex(_:_:)
type CFBitVectorRef ¶
type CFBitVectorRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVector
func CFBitVectorCreate ¶
func CFBitVectorCreate(allocator CFAllocatorRef, bytes *uint8, numBits int) CFBitVectorRef
CFBitVectorCreate creates an immutable bit vector from a block of memory.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorCreate(_:_:_:)
func CFBitVectorCreateCopy ¶
func CFBitVectorCreateCopy(allocator CFAllocatorRef, bv CFBitVectorRef) CFBitVectorRef
CFBitVectorCreateCopy creates an immutable bit vector that is a copy of another bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorCreateCopy(_:_:)
type CFBooleanRef ¶
type CFBooleanRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFBoolean
var ( // KCFBooleanFalse is boolean false value. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFBooleanFalse KCFBooleanFalse CFBooleanRef // KCFBooleanTrue is boolean true value. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFBooleanTrue KCFBooleanTrue CFBooleanRef )
type CFBundle ¶
type CFBundle = CFBundleRef
type CFBundleRef ¶
type CFBundleRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFBundle
func CFBundleCreate ¶
func CFBundleCreate(allocator CFAllocatorRef, bundleURL CFURLRef) CFBundleRef
CFBundleCreate creates a CFBundle object.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCreate(_:_:)
func CFBundleGetBundleWithIdentifier ¶
func CFBundleGetBundleWithIdentifier(bundleID CFStringRef) CFBundleRef
CFBundleGetBundleWithIdentifier locate a bundle given its program-defined identifier.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetBundleWithIdentifier(_:)
func CFBundleGetMainBundle ¶
func CFBundleGetMainBundle() CFBundleRef
CFBundleGetMainBundle returns an application’s main bundle.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetMainBundle()
func CFPlugInGetBundle ¶
func CFPlugInGetBundle(plugIn CFPlugInRef) CFBundleRef
CFPlugInGetBundle returns a plug-in’s bundle.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInGetBundle(_:)
type CFBundleRefNum ¶
type CFBundleRefNum = int
CFBundleRefNum is type that identifies a distinct reference number for a resource map.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleRefNum
type CFByteOrder ¶
type CFByteOrder uint
const ( // CFByteOrderBigEndian: Multi-byte values are stored with the most-significant bytes stored first. CFByteOrderBigEndian CFByteOrder = 2 // CFByteOrderLittleEndian: Multi-byte values are stored with the least-significant bytes stored first. CFByteOrderLittleEndian CFByteOrder = 1 // CFByteOrderUnknown: The byte order is unknown. CFByteOrderUnknown CFByteOrder = 0 )
func (CFByteOrder) String ¶
func (e CFByteOrder) String() string
type CFCalendarIdentifier ¶
type CFCalendarIdentifier = string
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier
var ( // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/banglaCalendar KCFBanglaCalendar CFCalendarIdentifier // KCFBuddhistCalendar is specifies the Buddhist calendar. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/buddhistCalendar KCFBuddhistCalendar CFCalendarIdentifier // KCFChineseCalendar is specifies the Chinese calendar. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/chineseCalendar KCFChineseCalendar CFCalendarIdentifier // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/dangiCalendar KCFDangiCalendar CFCalendarIdentifier // KCFGregorianCalendar is the name of the calendar currently supported by the [calendarName] property. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/gregorianCalendar KCFGregorianCalendar CFCalendarIdentifier // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/gujaratiCalendar KCFGujaratiCalendar CFCalendarIdentifier // KCFHebrewCalendar is specifies the Hebrew calendar. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/hebrewCalendar KCFHebrewCalendar CFCalendarIdentifier // KCFISO8601Calendar is specifies the ISO 8601 calendar. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/cfiso8601Calendar KCFISO8601Calendar CFCalendarIdentifier // KCFIndianCalendar is specifies the Indian calendar. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/indianCalendar KCFIndianCalendar CFCalendarIdentifier // KCFIslamicCalendar is specifies the Islamic calendar. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/islamicCalendar KCFIslamicCalendar CFCalendarIdentifier // KCFIslamicCivilCalendar is specifies the Islamic tabular calendar with Friday (civil) origin. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/islamicCivilCalendar KCFIslamicCivilCalendar CFCalendarIdentifier // KCFIslamicTabularCalendar is specifies the Islamic tabular calendar with Thursday (astronomical) origin. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/islamicTabularCalendar KCFIslamicTabularCalendar CFCalendarIdentifier // KCFIslamicUmmAlQuraCalendar is specifies the Islamic Umm Al Qura calendar. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/islamicUmmAlQuraCalendar KCFIslamicUmmAlQuraCalendar CFCalendarIdentifier // KCFJapaneseCalendar is specifies the Japanese calendar. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/japaneseCalendar KCFJapaneseCalendar CFCalendarIdentifier // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/kannadaCalendar KCFKannadaCalendar CFCalendarIdentifier // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/malayalamCalendar KCFMalayalamCalendar CFCalendarIdentifier // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/marathiCalendar KCFMarathiCalendar CFCalendarIdentifier // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/odiaCalendar KCFOdiaCalendar CFCalendarIdentifier // KCFPersianCalendar is specifies the Persian calendar. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/persianCalendar KCFPersianCalendar CFCalendarIdentifier // KCFRepublicOfChinaCalendar is specifies the calendar for the Republic of China. // // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/republicOfChinaCalendar KCFRepublicOfChinaCalendar CFCalendarIdentifier // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/tamilCalendar KCFTamilCalendar CFCalendarIdentifier // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/teluguCalendar KCFTeluguCalendar CFCalendarIdentifier // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/vietnameseCalendar KCFVietnameseCalendar CFCalendarIdentifier // See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarIdentifier/vikramCalendar KCFVikramCalendar CFCalendarIdentifier )
func CFCalendarGetIdentifier ¶
func CFCalendarGetIdentifier(calendar CFCalendarRef) CFCalendarIdentifier
CFCalendarGetIdentifier returns the given calendar’s identifier.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetIdentifier(_:)
type CFCalendarRef ¶
type CFCalendarRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendar
func CFCalendarCopyCurrent ¶
func CFCalendarCopyCurrent() CFCalendarRef
CFCalendarCopyCurrent returns a copy of the logical calendar for the current user.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarCopyCurrent()
func CFCalendarCreateWithIdentifier ¶
func CFCalendarCreateWithIdentifier(allocator CFAllocatorRef, identifier CFCalendarIdentifier) CFCalendarRef
CFCalendarCreateWithIdentifier returns a calendar object for the calendar identified by a calendar identifier.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarCreateWithIdentifier(_:_:)
type CFCalendarUnit ¶
type CFCalendarUnit int
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarUnit
const ( // KCFCalendarUnitDay: Specifies the day unit. KCFCalendarUnitDay CFCalendarUnit = 16 KCFCalendarUnitDayOfYear CFCalendarUnit = 65536 // KCFCalendarUnitEra: Specifies the era unit. KCFCalendarUnitEra CFCalendarUnit = 2 // KCFCalendarUnitHour: Specifies the hour unit. KCFCalendarUnitHour CFCalendarUnit = 32 // KCFCalendarUnitMinute: Specifies the minute unit. KCFCalendarUnitMinute CFCalendarUnit = 64 // KCFCalendarUnitMonth: Specifies the month unit. KCFCalendarUnitMonth CFCalendarUnit = 8 // KCFCalendarUnitQuarter: Specifies the quarter-year unit. KCFCalendarUnitQuarter CFCalendarUnit = 2048 // KCFCalendarUnitSecond: Specifies the second unit. KCFCalendarUnitSecond CFCalendarUnit = 128 // KCFCalendarUnitWeekOfMonth: Specifies the original week of a month calendar unit. KCFCalendarUnitWeekOfMonth CFCalendarUnit = 4096 // KCFCalendarUnitWeekOfYear: Specifies the original week of the year calendar unit. KCFCalendarUnitWeekOfYear CFCalendarUnit = 8192 // KCFCalendarUnitWeekday: Specifies the weekday unit. KCFCalendarUnitWeekday CFCalendarUnit = 512 // KCFCalendarUnitWeekdayOrdinal: Specifies the ordinal weekday unit. KCFCalendarUnitWeekdayOrdinal CFCalendarUnit = 1024 // KCFCalendarUnitYear: Specifies the year unit. KCFCalendarUnitYear CFCalendarUnit = 4 // KCFCalendarUnitYearForWeekOfYear: Specifies the relative year for a week within a year calendar unit. KCFCalendarUnitYearForWeekOfYear CFCalendarUnit = 16384 // Deprecated. KCFCalendarUnitWeek CFCalendarUnit = 256 )
func (CFCalendarUnit) String ¶
func (e CFCalendarUnit) String() string
type CFCharacterSet ¶
type CFCharacterSet = CFCharacterSetRef
type CFCharacterSetPredefinedSet ¶
type CFCharacterSetPredefinedSet int
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetPredefinedSet
const ( // KCFCharacterSetAlphaNumeric: Alpha Numeric character set (Unicode General Category L*, M*, & N*). KCFCharacterSetAlphaNumeric CFCharacterSetPredefinedSet = 10 // KCFCharacterSetCapitalizedLetter: Titlecase character set (Unicode General Category Lt). KCFCharacterSetCapitalizedLetter CFCharacterSetPredefinedSet = 13 // KCFCharacterSetControl: Control character set (Unicode General Category Cc and Cf). KCFCharacterSetControl CFCharacterSetPredefinedSet = 1 // KCFCharacterSetDecimalDigit: Decimal digit character set. KCFCharacterSetDecimalDigit CFCharacterSetPredefinedSet = 4 // KCFCharacterSetDecomposable: Canonically decomposable character set. KCFCharacterSetDecomposable CFCharacterSetPredefinedSet = 9 // KCFCharacterSetIllegal: Illegal character set. KCFCharacterSetIllegal CFCharacterSetPredefinedSet = 12 // KCFCharacterSetLetter: Letter character set (Unicode General Category L* & M*). KCFCharacterSetLetter CFCharacterSetPredefinedSet = 5 // KCFCharacterSetLowercaseLetter: Lowercase character set (Unicode General Category Ll). KCFCharacterSetLowercaseLetter CFCharacterSetPredefinedSet = 6 // KCFCharacterSetNewline: Newline character set (, , , and ). KCFCharacterSetNewline CFCharacterSetPredefinedSet = 15 // KCFCharacterSetNonBase: Non-base character set (Unicode General Category M*). KCFCharacterSetNonBase CFCharacterSetPredefinedSet = 8 // KCFCharacterSetPunctuation: Punctuation character set (Unicode General Category P*). KCFCharacterSetPunctuation CFCharacterSetPredefinedSet = 11 // KCFCharacterSetSymbol: Symbol character set (Unicode General Category S*). KCFCharacterSetSymbol CFCharacterSetPredefinedSet = 14 // KCFCharacterSetUppercaseLetter: Uppercase character set (Unicode General Category Lu and Lt). KCFCharacterSetUppercaseLetter CFCharacterSetPredefinedSet = 7 // KCFCharacterSetWhitespace: Whitespace character set (Unicode General Category Zs and U0009 CHARACTER TABULATION). KCFCharacterSetWhitespace CFCharacterSetPredefinedSet = 2 // KCFCharacterSetWhitespaceAndNewline: Whitespace and Newline character set (Unicode General Category Z*, , and ). KCFCharacterSetWhitespaceAndNewline CFCharacterSetPredefinedSet = 3 )
func (CFCharacterSetPredefinedSet) String ¶
func (e CFCharacterSetPredefinedSet) String() string
type CFCharacterSetRef ¶
type CFCharacterSetRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSet
func CFCharacterSetCreateCopy ¶
func CFCharacterSetCreateCopy(alloc CFAllocatorRef, theSet CFCharacterSetRef) CFCharacterSetRef
CFCharacterSetCreateCopy creates a new character set with the values from a given character set.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetCreateCopy(_:_:)
func CFCharacterSetCreateInvertedSet ¶
func CFCharacterSetCreateInvertedSet(alloc CFAllocatorRef, theSet CFCharacterSetRef) CFCharacterSetRef
CFCharacterSetCreateInvertedSet creates a new immutable character set that is the invert of the specified character set.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetCreateInvertedSet(_:_:)
func CFCharacterSetCreateWithBitmapRepresentation ¶
func CFCharacterSetCreateWithBitmapRepresentation(alloc CFAllocatorRef, theData CFDataRef) CFCharacterSetRef
CFCharacterSetCreateWithBitmapRepresentation creates a new immutable character set with the bitmap representation specified by given data.
func CFCharacterSetCreateWithCharactersInRange ¶
func CFCharacterSetCreateWithCharactersInRange(alloc CFAllocatorRef, theRange CFRange) CFCharacterSetRef
CFCharacterSetCreateWithCharactersInRange creates a new character set with the values from the given range of Unicode characters.
func CFCharacterSetCreateWithCharactersInString ¶
func CFCharacterSetCreateWithCharactersInString(alloc CFAllocatorRef, theString CFStringRef) CFCharacterSetRef
CFCharacterSetCreateWithCharactersInString creates a new character set with the values in the given string.
func CFCharacterSetGetPredefined ¶
func CFCharacterSetGetPredefined(theSetIdentifier CFCharacterSetPredefinedSet) CFCharacterSetRef
CFCharacterSetGetPredefined returns a predefined character set.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetGetPredefined(_:)
type CFComparatorFunction ¶
CFComparatorFunction is callback function that compares two values. You provide a pointer to this callback in certain Core Foundation sorting functions.
See: https://developer.apple.com/documentation/CoreFoundation/CFComparatorFunction
type CFComparisonResult ¶
type CFComparisonResult int
See: https://developer.apple.com/documentation/CoreFoundation/CFComparisonResult
const ( // KCFCompareEqualTo: Returned by a comparison function if the first value is equal to the second value. KCFCompareEqualTo CFComparisonResult = 0 // KCFCompareGreaterThan: Returned by a comparison function if the first value is greater than the second value. KCFCompareGreaterThan CFComparisonResult = 1 // KCFCompareLessThan: Returned by a comparison function if the first value is less than the second value. KCFCompareLessThan CFComparisonResult = -1 )
func CFDateCompare ¶
func CFDateCompare(theDate CFDateRef, otherDate CFDateRef, context unsafe.Pointer) CFComparisonResult
CFDateCompare compares two [CFDate] objects and returns a comparison result.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateCompare(_:_:_:)
func CFNumberCompare ¶
func CFNumberCompare(number CFNumberRef, otherNumber CFNumberRef, context unsafe.Pointer) CFComparisonResult
CFNumberCompare compares two CFNumber objects and returns a comparison result.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberCompare(_:_:_:)
func CFStringCompare ¶
func CFStringCompare(theString1 CFStringRef, theString2 CFStringRef, compareOptions CFStringCompareFlags) CFComparisonResult
CFStringCompare compares one string with another string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCompare(_:_:_:)
func CFStringCompareWithOptions ¶
func CFStringCompareWithOptions(theString1 CFStringRef, theString2 CFStringRef, rangeToCompare CFRange, compareOptions CFStringCompareFlags) CFComparisonResult
CFStringCompareWithOptions compares a range of the characters in one string with that of another string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCompareWithOptions(_:_:_:_:)
func CFStringCompareWithOptionsAndLocale ¶
func CFStringCompareWithOptionsAndLocale(theString1 CFStringRef, theString2 CFStringRef, rangeToCompare CFRange, compareOptions CFStringCompareFlags, locale CFLocaleRef) CFComparisonResult
CFStringCompareWithOptionsAndLocale compares a range of the characters in one string with another string using a given locale.
func (CFComparisonResult) String ¶
func (e CFComparisonResult) String() string
type CFDataRef ¶
type CFDataRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFData
func CFCharacterSetCreateBitmapRepresentation ¶
func CFCharacterSetCreateBitmapRepresentation(alloc CFAllocatorRef, theSet CFCharacterSetRef) CFDataRef
CFCharacterSetCreateBitmapRepresentation creates a new immutable data with the bitmap representation from the given character set.
func CFDataCreate ¶
func CFDataCreate(allocator CFAllocatorRef, bytes *uint8, length int) CFDataRef
CFDataCreate creates an immutable CFData object using data copied from a specified byte buffer.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataCreate(_:_:_:)
func CFDataCreateCopy ¶
func CFDataCreateCopy(allocator CFAllocatorRef, theData CFDataRef) CFDataRef
CFDataCreateCopy creates an immutable copy of a CFData object.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataCreateCopy(_:_:)
func CFDataCreateWithBytesNoCopy ¶
func CFDataCreateWithBytesNoCopy(allocator CFAllocatorRef, bytes *uint8, length int, bytesDeallocator CFAllocatorRef) CFDataRef
CFDataCreateWithBytesNoCopy creates an immutable CFData object from an external (client-owned) byte buffer.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataCreateWithBytesNoCopy(_:_:_:_:)
func CFPropertyListCreateData ¶
func CFPropertyListCreateData(allocator CFAllocatorRef, propertyList CFPropertyListRef, format CFPropertyListFormat, options uint64, err *CFErrorRef) CFDataRef
CFPropertyListCreateData returns a CFData object containing a serialized representation of a given property list in a specified format.
See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListCreateData(_:_:_:_:_:)
func CFSocketCopyAddress ¶
func CFSocketCopyAddress(s CFSocketRef) CFDataRef
CFSocketCopyAddress returns the local address of a CFSocket object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCopyAddress(_:)
func CFSocketCopyPeerAddress ¶
func CFSocketCopyPeerAddress(s CFSocketRef) CFDataRef
CFSocketCopyPeerAddress returns the remote address to which a CFSocket object is connected.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCopyPeerAddress(_:)
func CFStringCreateExternalRepresentation ¶
func CFStringCreateExternalRepresentation(alloc CFAllocatorRef, theString CFStringRef, encoding uint32, lossByte uint8) CFDataRef
CFStringCreateExternalRepresentation creates an “external representation” of a CFString object, that is, a CFData object.
func CFTimeZoneGetData ¶
func CFTimeZoneGetData(tz CFTimeZoneRef) CFDataRef
CFTimeZoneGetData returns the data that stores the information used by a time zone.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneGetData(_:)
func CFURLCreateBookmarkData ¶
func CFURLCreateBookmarkData(allocator CFAllocatorRef, url CFURLRef, options CFURLBookmarkCreationOptions, resourcePropertiesToInclude CFArrayRef, relativeToURL CFURLRef, err *CFErrorRef) CFDataRef
CFURLCreateBookmarkData returns bookmark data for a URL, created with specified options and resource values.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateBookmarkData(_:_:_:_:_:_:)
func CFURLCreateBookmarkDataFromFile ¶
func CFURLCreateBookmarkDataFromFile(allocator CFAllocatorRef, fileURL CFURLRef, errorRef *CFErrorRef) CFDataRef
CFURLCreateBookmarkDataFromFile initializes and returns bookmark data derived from a file pointed to by a specified URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateBookmarkDataFromFile(_:_:_:)
func CFURLCreateData ¶
func CFURLCreateData(allocator CFAllocatorRef, url CFURLRef, encoding uint32, escapeWhitespace bool) CFDataRef
CFURLCreateData creates a [CFData] object containing the content of a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateData(_:_:_:_:)
func CFXMLTreeCreateXMLData
deprecated
func CFXMLTreeCreateXMLData(allocator CFAllocatorRef, xmlTree CFXMLTreeRef) CFDataRef
CFXMLTreeCreateXMLData generates an XML document from a CFXMLTree object which is ready to be written to permanent storage.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLTreeCreateXMLData
type CFDataSearchFlags ¶
type CFDataSearchFlags int
See: https://developer.apple.com/documentation/CoreFoundation/CFDataSearchFlags
const ( // KCFDataSearchAnchored: # Discussion KCFDataSearchAnchored CFDataSearchFlags = 2 // KCFDataSearchBackwards: # Discussion KCFDataSearchBackwards CFDataSearchFlags = 1 )
func (CFDataSearchFlags) String ¶
func (e CFDataSearchFlags) String() string
type CFDateFormatterKey ¶
type CFDateFormatterKey = string
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey
var ( // KCFDateFormatterAMSymbol is specifies the AM symbol property, a CFString object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/amSymbol KCFDateFormatterAMSymbol CFDateFormatterKey // KCFDateFormatterCalendar is specifies the calendar property, a CFCalendar object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/calendar KCFDateFormatterCalendar CFDateFormatterKey // KCFDateFormatterCalendarName is specifies the calendar name, a CFString object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/calendarName KCFDateFormatterCalendarName CFDateFormatterKey // KCFDateFormatterDefaultDate is specifies the default date property, a CFDate object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/defaultDate KCFDateFormatterDefaultDate CFDateFormatterKey // KCFDateFormatterDefaultFormat is the original format string for the formatter (given the date & time style and locale specified at creation). // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/defaultFormat KCFDateFormatterDefaultFormat CFDateFormatterKey // KCFDateFormatterDoesRelativeDateFormattingKey is specifies the relative date formatting property, a CFBoolean object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/doesRelativeDateFormattingKey KCFDateFormatterDoesRelativeDateFormattingKey CFDateFormatterKey // KCFDateFormatterEraSymbols is specifies the era symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/eraSymbols KCFDateFormatterEraSymbols CFDateFormatterKey // KCFDateFormatterGregorianStartDate is specifies the Gregorian start date property, a CFDate object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/gregorianStartDate KCFDateFormatterGregorianStartDate CFDateFormatterKey // KCFDateFormatterIsLenient is specifies the lenient property, a CFBoolean object where a true value indicates that the parsing of strings into date or absolute time values will be fuzzy. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/isLenient KCFDateFormatterIsLenient CFDateFormatterKey // KCFDateFormatterLongEraSymbols is specifies the long era symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/longEraSymbols KCFDateFormatterLongEraSymbols CFDateFormatterKey // KCFDateFormatterMonthSymbols is specifies the month symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/monthSymbols KCFDateFormatterMonthSymbols CFDateFormatterKey // KCFDateFormatterPMSymbol is specifies the PM symbol property, a CFString object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/pmSymbol KCFDateFormatterPMSymbol CFDateFormatterKey // KCFDateFormatterQuarterSymbols is specifies the quarter symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/quarterSymbols KCFDateFormatterQuarterSymbols CFDateFormatterKey // KCFDateFormatterShortMonthSymbols is specifies the short month symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/shortMonthSymbols KCFDateFormatterShortMonthSymbols CFDateFormatterKey // KCFDateFormatterShortQuarterSymbols is specifies the short quarter symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/shortQuarterSymbols KCFDateFormatterShortQuarterSymbols CFDateFormatterKey // KCFDateFormatterShortStandaloneMonthSymbols is specifies the short standalone month symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/shortStandaloneMonthSymbols KCFDateFormatterShortStandaloneMonthSymbols CFDateFormatterKey // KCFDateFormatterShortStandaloneQuarterSymbols is specifies the short standalone quarter symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/shortStandaloneQuarterSymbols KCFDateFormatterShortStandaloneQuarterSymbols CFDateFormatterKey // KCFDateFormatterShortStandaloneWeekdaySymbols is specifies the short standalone weekday symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/shortStandaloneWeekdaySymbols KCFDateFormatterShortStandaloneWeekdaySymbols CFDateFormatterKey // KCFDateFormatterShortWeekdaySymbols is specifies the short weekday symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/shortWeekdaySymbols KCFDateFormatterShortWeekdaySymbols CFDateFormatterKey // KCFDateFormatterStandaloneMonthSymbols is specifies the standalone month symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/standaloneMonthSymbols KCFDateFormatterStandaloneMonthSymbols CFDateFormatterKey // KCFDateFormatterStandaloneQuarterSymbols is specifies the standalone quarter symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/standaloneQuarterSymbols KCFDateFormatterStandaloneQuarterSymbols CFDateFormatterKey // KCFDateFormatterStandaloneWeekdaySymbols is specifies the standalone weekday symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/standaloneWeekdaySymbols KCFDateFormatterStandaloneWeekdaySymbols CFDateFormatterKey // KCFDateFormatterTimeZone is specifies the time zone property, a CFTimeZone object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/timeZone KCFDateFormatterTimeZone CFDateFormatterKey // KCFDateFormatterTwoDigitStartDate is specifies the property representing the date from which two-digit years start, a CFDate object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/twoDigitStartDate KCFDateFormatterTwoDigitStartDate CFDateFormatterKey // KCFDateFormatterVeryShortMonthSymbols is specifies the very short month symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/veryShortMonthSymbols KCFDateFormatterVeryShortMonthSymbols CFDateFormatterKey // KCFDateFormatterVeryShortStandaloneMonthSymbols is specifies the very short standalone month symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/veryShortStandaloneMonthSymbols KCFDateFormatterVeryShortStandaloneMonthSymbols CFDateFormatterKey // KCFDateFormatterVeryShortStandaloneWeekdaySymbols is specifies the very short standalone weekday symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/veryShortStandaloneWeekdaySymbols KCFDateFormatterVeryShortStandaloneWeekdaySymbols CFDateFormatterKey // KCFDateFormatterVeryShortWeekdaySymbols is specifies the very short weekday symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/veryShortWeekdaySymbols KCFDateFormatterVeryShortWeekdaySymbols CFDateFormatterKey // KCFDateFormatterWeekdaySymbols is specifies the weekday symbols property, a CFArray of CFString objects. // // See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterKey/weekdaySymbols KCFDateFormatterWeekdaySymbols CFDateFormatterKey )
type CFDateFormatterRef ¶
type CFDateFormatterRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatter
func CFDateFormatterCreate ¶
func CFDateFormatterCreate(allocator CFAllocatorRef, locale CFLocaleRef, dateStyle CFDateFormatterStyle, timeStyle CFDateFormatterStyle) CFDateFormatterRef
CFDateFormatterCreate creates a new CFDateFormatter object, localized to the given locale, which will format dates to the given date and time styles.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterCreate(_:_:_:_:)
func CFDateFormatterCreateISO8601Formatter ¶
func CFDateFormatterCreateISO8601Formatter(allocator CFAllocatorRef, formatOptions CFISO8601DateFormatOptions) CFDateFormatterRef
CFDateFormatterCreateISO8601Formatter.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterCreateISO8601Formatter(_:_:)
type CFDateFormatterStyle ¶
type CFDateFormatterStyle int
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterStyle
const ( // KCFDateFormatterFullStyle: Specifies a full style with complete details, such as “Tuesday, April 12, 1952 AD” or “3:30:42pm PST”. KCFDateFormatterFullStyle CFDateFormatterStyle = 4 // KCFDateFormatterLongStyle: Specifies a long style, typically with full text, such as “November 23, 1937” or “3:30:32pm”. KCFDateFormatterLongStyle CFDateFormatterStyle = 3 // KCFDateFormatterMediumStyle: Specifies a medium style, typically with abbreviated text, such as “Nov 23, 1937”. KCFDateFormatterMediumStyle CFDateFormatterStyle = 2 // KCFDateFormatterNoStyle: Specifies no output. KCFDateFormatterNoStyle CFDateFormatterStyle = 0 // KCFDateFormatterShortStyle: Specifies a short style, typically numeric only, such as “11/23/37” or “3:30pm”. KCFDateFormatterShortStyle CFDateFormatterStyle = 1 )
func CFDateFormatterGetDateStyle ¶
func CFDateFormatterGetDateStyle(formatter CFDateFormatterRef) CFDateFormatterStyle
CFDateFormatterGetDateStyle returns the date style used to create the given date formatter object.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterGetDateStyle(_:)
func CFDateFormatterGetTimeStyle ¶
func CFDateFormatterGetTimeStyle(formatter CFDateFormatterRef) CFDateFormatterStyle
CFDateFormatterGetTimeStyle returns the time style used to create the given date formatter object.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterGetTimeStyle(_:)
func (CFDateFormatterStyle) String ¶
func (e CFDateFormatterStyle) String() string
type CFDateRef ¶
type CFDateRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFDate
func CFDateCreate ¶
func CFDateCreate(allocator CFAllocatorRef, at CFAbsoluteTime) CFDateRef
CFDateCreate creates a [CFDate] object given an absolute time.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateCreate(_:_:)
func CFDateFormatterCreateDateFromString ¶
func CFDateFormatterCreateDateFromString(allocator CFAllocatorRef, formatter CFDateFormatterRef, string_ CFStringRef, rangep *CFRange) CFDateRef
CFDateFormatterCreateDateFromString returns a date object representing a given string.
type CFDictionaryApplierFunction ¶
CFDictionaryApplierFunction is prototype of a callback function that may be applied to every key-value pair in a dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryApplierFunction
type CFDictionaryCopyDescriptionCallBack ¶
CFDictionaryCopyDescriptionCallBack is prototype of a callback function used to get a description of a value or key in a dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryCopyDescriptionCallBack
type CFDictionaryEqualCallBack ¶
CFDictionaryEqualCallBack is prototype of a callback function used to determine if two values or keys in a dictionary are equal.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryEqualCallBack
type CFDictionaryHashCallBack ¶
CFDictionaryHashCallBack is prototype of a callback function invoked to compute a hash code for a key. Hash codes are used when key-value pairs are accessed, added, or removed from a collection.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryHashCallBack
type CFDictionaryKeyCallBacks ¶
type CFDictionaryKeyCallBacks struct {
Version int // The version number of this structure. If not one of the defined version numbers for this opaque type, the behavior is undefined. The current version of this structure is 0.
Retain CFDictionaryRetainCallBack // The callback used to retain each key as they are added to the collection. This callback returns the value to use as the key in the dictionary, which is usually the value parameter passed to this callback, but may be a different value if a different value should be used as the key. If [NULL], keys are not retained. See [CFDictionaryRetainCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFDictionaryRetainCallBack>) for a descriptions of this function’s parameters.
Release CFDictionaryReleaseCallBack // The callback used to release keys as they are removed from the dictionary. If [NULL], keys are not released. See [CFDictionaryReleaseCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFDictionaryReleaseCallBack>) for a description of this callback.
CopyDescription CFDictionaryCopyDescriptionCallBack // The callback used to create a descriptive string representation of each key in the dictionary. If [NULL], the collection will create a simple description of each key. See [CFDictionaryCopyDescriptionCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFDictionaryCopyDescriptionCallBack>) for a description of this callback.
Equal CFDictionaryEqualCallBack // The callback used to compare keys in the dictionary for equality. If [NULL], the collection will use pointer equality to compare keys in the collection. See [CFDictionaryEqualCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFDictionaryEqualCallBack>) for a description of this callback.
Hash CFDictionaryHashCallBack // The callback used to compute a hash code for keys as they are used to access, add, or remove values in the dictionary. If [NULL], the collection computes a hash code by converting the pointer value to an integer. See [CFDictionaryHashCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFDictionaryHashCallBack>) for a description of this callback.
}
CFDictionaryKeyCallBacks - This structure contains the callbacks used to retain, release, describe, and compare the keys in a dictionary.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryKeyCallBacks
var ( // KCFCopyStringDictionaryKeyCallBacks is predefined [CFDictionaryKeyCallBacks] structure containing a set of callbacks appropriate for use when the keys of a CFDictionary are all CFString objects, which may be mutable and need to be copied in order to serve as constant keys for the values in the dictionary. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFCopyStringDictionaryKeyCallBacks KCFCopyStringDictionaryKeyCallBacks CFDictionaryKeyCallBacks // KCFTypeDictionaryKeyCallBacks is predefined [CFDictionaryKeyCallBacks] structure containing a set of callbacks appropriate for use when the keys of a CFDictionary are all CFType-derived objects. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFTypeDictionaryKeyCallBacks KCFTypeDictionaryKeyCallBacks CFDictionaryKeyCallBacks )
type CFDictionaryRef ¶
type CFDictionaryRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionary
func CFAttributedStringGetAttributes ¶
func CFAttributedStringGetAttributes(aStr CFAttributedStringRef, loc int, effectiveRange *CFRange) CFDictionaryRef
CFAttributedStringGetAttributes returns the attributes of an attributed string at a specified location.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetAttributes(_:_:_:)
func CFAttributedStringGetAttributesAndLongestEffectiveRange ¶
func CFAttributedStringGetAttributesAndLongestEffectiveRange(aStr CFAttributedStringRef, loc int, inRange CFRange, longestEffectiveRange *CFRange) CFDictionaryRef
CFAttributedStringGetAttributesAndLongestEffectiveRange returns the attributes of an attributed string at a specified location.
func CFBundleCopyInfoDictionaryForURL ¶
func CFBundleCopyInfoDictionaryForURL(url CFURLRef) CFDictionaryRef
CFBundleCopyInfoDictionaryForURL returns the information dictionary for a given URL location.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyInfoDictionaryForURL(_:)
func CFBundleCopyInfoDictionaryInDirectory ¶
func CFBundleCopyInfoDictionaryInDirectory(bundleURL CFURLRef) CFDictionaryRef
CFBundleCopyInfoDictionaryInDirectory returns a bundle’s information dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyInfoDictionaryInDirectory(_:)
func CFBundleGetInfoDictionary ¶
func CFBundleGetInfoDictionary(bundle CFBundleRef) CFDictionaryRef
CFBundleGetInfoDictionary returns a bundle’s information dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetInfoDictionary(_:)
func CFBundleGetLocalInfoDictionary ¶
func CFBundleGetLocalInfoDictionary(bundle CFBundleRef) CFDictionaryRef
CFBundleGetLocalInfoDictionary returns a bundle’s localized information dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetLocalInfoDictionary(_:)
func CFDictionaryCreate ¶
func CFDictionaryCreate(allocator CFAllocatorRef, keys unsafe.Pointer, values unsafe.Pointer, numValues int, keyCallBacks *CFDictionaryKeyCallBacks, valueCallBacks *CFDictionaryValueCallBacks) CFDictionaryRef
CFDictionaryCreate creates an immutable dictionary containing the specified key-value pairs.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryCreate(_:_:_:_:_:_:)
func CFDictionaryCreateCopy ¶
func CFDictionaryCreateCopy(allocator CFAllocatorRef, theDict CFDictionaryRef) CFDictionaryRef
CFDictionaryCreateCopy creates and returns a new immutable dictionary with the key-value pairs of another dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryCreateCopy(_:_:)
func CFErrorCopyUserInfo ¶
func CFErrorCopyUserInfo(err CFErrorRef) CFDictionaryRef
CFErrorCopyUserInfo returns the user info dictionary for a given CFError.
See: https://developer.apple.com/documentation/CoreFoundation/CFErrorCopyUserInfo(_:)
func CFLocaleCreateComponentsFromLocaleIdentifier ¶
func CFLocaleCreateComponentsFromLocaleIdentifier(allocator CFAllocatorRef, localeID CFLocaleIdentifier) CFDictionaryRef
CFLocaleCreateComponentsFromLocaleIdentifier returns a dictionary containing the result from parsing a locale ID consisting of language, script, country or region, variant, and keyword/value pairs.
func CFPreferencesCopyMultiple ¶
func CFPreferencesCopyMultiple(keysToFetch CFArrayRef, applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) CFDictionaryRef
CFPreferencesCopyMultiple returns a dictionary containing preference values for multiple keys.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesCopyMultiple(_:_:_:_:)
func CFTimeZoneCopyAbbreviationDictionary ¶
func CFTimeZoneCopyAbbreviationDictionary() CFDictionaryRef
CFTimeZoneCopyAbbreviationDictionary returns a dictionary holding the mappings of time zone abbreviations to time zone names.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneCopyAbbreviationDictionary()
func CFURLCopyResourcePropertiesForKeys ¶
func CFURLCopyResourcePropertiesForKeys(url CFURLRef, keys CFArrayRef, err *CFErrorRef) CFDictionaryRef
CFURLCopyResourcePropertiesForKeys returns the resource values for the properties identified by specified array of keys.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyResourcePropertiesForKeys(_:_:_:)
func CFURLCreateResourcePropertiesForKeysFromBookmarkData ¶
func CFURLCreateResourcePropertiesForKeysFromBookmarkData(allocator CFAllocatorRef, resourcePropertiesToReturn CFArrayRef, bookmark CFDataRef) CFDictionaryRef
CFURLCreateResourcePropertiesForKeysFromBookmarkData returns the resource values for properties identified by a specified array of keys contained in specified bookmark data.
func CFUserNotificationGetResponseDictionary ¶
func CFUserNotificationGetResponseDictionary(userNotification CFUserNotificationRef) CFDictionaryRef
CFUserNotificationGetResponseDictionary returns the dictionary containing all the text field values from a dismissed notification dialog.
See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationGetResponseDictionary(_:)
type CFDictionaryReleaseCallBack ¶
CFDictionaryReleaseCallBack is prototype of a callback function used to release a key-value pair before it’s removed from a dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryReleaseCallBack
type CFDictionaryRetainCallBack ¶
CFDictionaryRetainCallBack is prototype of a callback function used to retain a value or key being added to a dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryRetainCallBack
type CFDictionaryValueCallBacks ¶
type CFDictionaryValueCallBacks struct {
Version int // The version number of this structure. If not one of the defined version numbers for this opaque type, the behavior is undefined. The current version of this structure is 0.
Retain CFDictionaryRetainCallBack // The callback used to retain each value as they are added to the collection. This callback returns the value to use as the value in the dictionary, which is usually the value parameter passed to this callback, but may be a different value if a different value should be used as the value. If [NULL], values are not retained. See [CFDictionaryRetainCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFDictionaryRetainCallBack>) for a descriptions of this function’s parameters.
Release CFDictionaryReleaseCallBack // The callback used to release values as they are removed from the dictionary. If [NULL], values are not released. See [CFDictionaryReleaseCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFDictionaryReleaseCallBack>) for a description of this callback.
CopyDescription CFDictionaryCopyDescriptionCallBack // The callback used to create a descriptive string representation of each value in the dictionary. If [NULL], the collection will create a simple description of each value. See [CFDictionaryCopyDescriptionCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFDictionaryCopyDescriptionCallBack>) for a description of this callback.
Equal CFDictionaryEqualCallBack // The callback used to compare values in the dictionary for equality. If [NULL], the collection will use pointer equality to compare values in the collection. See [CFDictionaryEqualCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFDictionaryEqualCallBack>) for a description of this callback.
}
CFDictionaryValueCallBacks - This structure contains the callbacks used to retain, release, describe, and compare the values in a dictionary.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryValueCallBacks
var ( // KCFTypeDictionaryValueCallBacks is predefined [CFDictionaryValueCallBacks] structure containing a set of callbacks appropriate for use when the values in a CFDictionary are all CFType-derived objects. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFTypeDictionaryValueCallBacks KCFTypeDictionaryValueCallBacks CFDictionaryValueCallBacks )
type CFErrorDomain ¶
See: https://developer.apple.com/documentation/CoreFoundation/CFErrorDomain
var ( // KCFErrorDomainCocoa is a constant that specified the Cocoa domain. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFErrorDomainCocoa KCFErrorDomainCocoa CFErrorDomain // KCFErrorDomainMach is a constant that specified the Mach domain. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFErrorDomainMach KCFErrorDomainMach CFErrorDomain // KCFErrorDomainOSStatus is a constant that specified the OS domain. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFErrorDomainOSStatus KCFErrorDomainOSStatus CFErrorDomain // KCFErrorDomainPOSIX is a constant that specified the POSIX domain. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFErrorDomainPOSIX KCFErrorDomainPOSIX CFErrorDomain )
func CFErrorGetDomain ¶
func CFErrorGetDomain(err CFErrorRef) CFErrorDomain
CFErrorGetDomain returns the error domain for a given CFError.
See: https://developer.apple.com/documentation/CoreFoundation/CFErrorGetDomain(_:)
type CFErrorRef ¶
type CFErrorRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFError
func CFErrorCreate ¶
func CFErrorCreate(allocator CFAllocatorRef, domain CFErrorDomain, code int, userInfo CFDictionaryRef) CFErrorRef
CFErrorCreate creates a new CFError object.
See: https://developer.apple.com/documentation/CoreFoundation/CFErrorCreate(_:_:_:_:)
func CFErrorCreateWithUserInfoKeysAndValues ¶
func CFErrorCreateWithUserInfoKeysAndValues(allocator CFAllocatorRef, domain CFErrorDomain, code int, userInfoKeys unsafe.Pointer, userInfoValues unsafe.Pointer, numUserInfoValues int) CFErrorRef
CFErrorCreateWithUserInfoKeysAndValues creates a new CFError object using given keys and values to create the user info dictionary.
func CFReadStreamCopyError ¶
func CFReadStreamCopyError(stream CFReadStreamRef) CFErrorRef
CFReadStreamCopyError returns the error associated with a stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamCopyError(_:)
func CFWriteStreamCopyError ¶
func CFWriteStreamCopyError(stream CFWriteStreamRef) CFErrorRef
CFWriteStreamCopyError returns the error associated with a stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamCopyError(_:)
type CFFileDescriptorCallBack ¶
CFFileDescriptorCallBack is defines a structure for a callback for a CFFileDescriptor.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorCallBack
type CFFileDescriptorContext ¶
type CFFileDescriptorContext struct {
Version int // The version number of this structure. If not one of the defined version numbers for this opaque type, the behavior is undefined. The current version of this structure is 0.
Info unsafe.Pointer
CopyDescription func(unsafe.Pointer) uintptr // The callback used to create a descriptive string representation of the CFFileDescriptor.
Release func(unsafe.Pointer) // The release callback used by the CFFileDescriptor.
Retain func(unsafe.Pointer) unsafe.Pointer // The retain callback used by the CFFileDescriptor.
}
CFFileDescriptorContext - Defines a structure for the context of a CFFileDescriptor.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorContext
type CFFileDescriptorNativeDescriptor ¶
type CFFileDescriptorNativeDescriptor = int
CFFileDescriptorNativeDescriptor is defines a type for the native file descriptor.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorNativeDescriptor
func CFFileDescriptorGetNativeDescriptor ¶
func CFFileDescriptorGetNativeDescriptor(f CFFileDescriptorRef) CFFileDescriptorNativeDescriptor
CFFileDescriptorGetNativeDescriptor returns the native file descriptor for a given CFFileDescriptor.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorGetNativeDescriptor(_:)
type CFFileDescriptorRef ¶
type CFFileDescriptorRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptor
func CFFileDescriptorCreate ¶
func CFFileDescriptorCreate(allocator CFAllocatorRef, fd CFFileDescriptorNativeDescriptor, closeOnInvalidate bool, callout CFFileDescriptorCallBack, context *CFFileDescriptorContext) CFFileDescriptorRef
CFFileDescriptorCreate creates a new CFFileDescriptor.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorCreate(_:_:_:_:_:)
type CFFileSecurityClearOptions ¶
type CFFileSecurityClearOptions int
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityClearOptions
const ( // KCFFileSecurityClearAccessControlList: Clear the access control list. KCFFileSecurityClearAccessControlList CFFileSecurityClearOptions = 32 // KCFFileSecurityClearGroup: Clear the (POSIX) group ID. KCFFileSecurityClearGroup CFFileSecurityClearOptions = 2 // KCFFileSecurityClearGroupUUID: Clear the group UUID (for the access control list). KCFFileSecurityClearGroupUUID CFFileSecurityClearOptions = 16 // KCFFileSecurityClearMode: Clear the file’s mode (POSIX permissions). KCFFileSecurityClearMode CFFileSecurityClearOptions = 4 // KCFFileSecurityClearOwner: Clear the (POSIX) owner ID. KCFFileSecurityClearOwner CFFileSecurityClearOptions = 1 // KCFFileSecurityClearOwnerUUID: Clear the owner UUID (for the access control list). KCFFileSecurityClearOwnerUUID CFFileSecurityClearOptions = 8 )
func (CFFileSecurityClearOptions) String ¶
func (e CFFileSecurityClearOptions) String() string
type CFFileSecurityRef ¶
type CFFileSecurityRef uintptr
CFFileSecurityRef is encapsulates a file system object’s security information in a Core Foundation object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurity
func CFFileSecurityCreate ¶
func CFFileSecurityCreate(allocator CFAllocatorRef) CFFileSecurityRef
CFFileSecurityCreate creates a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityCreate(_:)
func CFFileSecurityCreateCopy ¶
func CFFileSecurityCreateCopy(allocator CFAllocatorRef, fileSec CFFileSecurityRef) CFFileSecurityRef
CFFileSecurityCreateCopy creates a copy of a CFFileSecurityRef object.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityCreateCopy(_:_:)
type CFGregorianDate ¶
CFGregorianDate - Structure used to represent a point in time using the Gregorian calendar.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFGregorianDate
type CFGregorianUnitFlags ¶
type CFGregorianUnitFlags int
See: https://developer.apple.com/documentation/CoreFoundation/CFGregorianUnitFlags
const ( // Deprecated. KCFGregorianAllUnits CFGregorianUnitFlags = 16777215 // Deprecated. KCFGregorianUnitsDays CFGregorianUnitFlags = 4 // Deprecated. KCFGregorianUnitsHours CFGregorianUnitFlags = 8 // Deprecated. KCFGregorianUnitsMinutes CFGregorianUnitFlags = 16 // Deprecated. KCFGregorianUnitsMonths CFGregorianUnitFlags = 2 // Deprecated. KCFGregorianUnitsSeconds CFGregorianUnitFlags = 32 // Deprecated. KCFGregorianUnitsYears CFGregorianUnitFlags = 1 )
func (CFGregorianUnitFlags) String ¶
func (e CFGregorianUnitFlags) String() string
type CFGregorianUnits ¶
type CFGregorianUnits struct {
Days int32
Hours int32
Minutes int32
Months int32
Seconds float64
Years int32
}
CFGregorianUnits - Structure used to represent a time interval in Gregorian units.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFGregorianUnits
type CFHashCode ¶
type CFHashCode = uint
CFHashCode is a type for hash codes returned by the CFHash function.
See: https://developer.apple.com/documentation/CoreFoundation/CFHashCode
type CFISO8601DateFormatOptions ¶
type CFISO8601DateFormatOptions int
See: https://developer.apple.com/documentation/CoreFoundation/CFISO8601DateFormatOptions
const ( KCFISO8601DateFormatWithColonSeparatorInTime CFISO8601DateFormatOptions = 512 KCFISO8601DateFormatWithColonSeparatorInTimeZone CFISO8601DateFormatOptions = 1024 KCFISO8601DateFormatWithDashSeparatorInDate CFISO8601DateFormatOptions = 256 KCFISO8601DateFormatWithDay CFISO8601DateFormatOptions = 16 KCFISO8601DateFormatWithFractionalSeconds CFISO8601DateFormatOptions = 2048 KCFISO8601DateFormatWithFullDate CFISO8601DateFormatOptions = 1 KCFISO8601DateFormatWithFullTime CFISO8601DateFormatOptions = 32 KCFISO8601DateFormatWithInternetDateTime CFISO8601DateFormatOptions = 1 KCFISO8601DateFormatWithMonth CFISO8601DateFormatOptions = 2 KCFISO8601DateFormatWithSpaceBetweenDateAndTime CFISO8601DateFormatOptions = 128 KCFISO8601DateFormatWithTime CFISO8601DateFormatOptions = 32 KCFISO8601DateFormatWithTimeZone CFISO8601DateFormatOptions = 64 KCFISO8601DateFormatWithWeekOfYear CFISO8601DateFormatOptions = 4 KCFISO8601DateFormatWithYear CFISO8601DateFormatOptions = 1 )
func (CFISO8601DateFormatOptions) String ¶
func (e CFISO8601DateFormatOptions) String() string
type CFIndex ¶
type CFIndex = int
CFIndex is priority values used for kAXPriorityKey.
See: https://developer.apple.com/documentation/CoreFoundation/CFIndex
type CFLocale ¶
type CFLocale = CFLocaleRef
type CFLocaleIdentifier ¶
type CFLocaleIdentifier = string
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleIdentifier
func CFLocaleCreateCanonicalLanguageIdentifierFromString ¶
func CFLocaleCreateCanonicalLanguageIdentifierFromString(allocator CFAllocatorRef, localeIdentifier CFStringRef) CFLocaleIdentifier
CFLocaleCreateCanonicalLanguageIdentifierFromString returns a canonical language identifier by mapping an arbitrary locale identification string to the canonical identifier
func CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes ¶
func CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes(allocator CFAllocatorRef, lcode unsafe.Pointer, rcode unsafe.Pointer) CFLocaleIdentifier
CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes returns a canonical locale identifier from given language and region codes.
func CFLocaleCreateCanonicalLocaleIdentifierFromString ¶
func CFLocaleCreateCanonicalLocaleIdentifierFromString(allocator CFAllocatorRef, localeIdentifier CFStringRef) CFLocaleIdentifier
CFLocaleCreateCanonicalLocaleIdentifierFromString returns a canonical locale identifier by mapping an arbitrary locale identification string to the canonical identifier.
func CFLocaleCreateLocaleIdentifierFromComponents ¶
func CFLocaleCreateLocaleIdentifierFromComponents(allocator CFAllocatorRef, dictionary CFDictionaryRef) CFLocaleIdentifier
CFLocaleCreateLocaleIdentifierFromComponents returns a locale identifier consisting of language, script, country or region, variant, and keyword/value pairs derived from a dictionary containing the source information.
func CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode ¶
func CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode(allocator CFAllocatorRef, lcid uint32) CFLocaleIdentifier
CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode returns a locale identifier from a Windows locale code.
func CFLocaleGetIdentifier ¶
func CFLocaleGetIdentifier(locale CFLocaleRef) CFLocaleIdentifier
CFLocaleGetIdentifier returns the given locale’s identifier.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleGetIdentifier(_:)
type CFLocaleKey ¶
type CFLocaleKey = string
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey
var ( // KCFLocaleAlternateQuotationBeginDelimiterKey is specifies the alternating begin quotation symbol associated with the locale. In some locales, when quotations are nested, the quotation characters alternate. Thus, [NSLocaleQuotationBeginDelimiterKey], then [NSLocaleAlternateQuotationBeginDelimiterKey], and so on. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/alternateQuotationBeginDelimiterKey KCFLocaleAlternateQuotationBeginDelimiterKey CFLocaleKey // KCFLocaleAlternateQuotationEndDelimiterKey is specifies the alternating end quotation symbol associated with the locale. In some locales, when quotations are nested, the quotation characters alternate. Thus, [NSLocaleQuotationEndDelimiterKey], then [NSLocaleAlternateQuotationEndDelimiterKey], and so on. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/alternateQuotationEndDelimiterKey KCFLocaleAlternateQuotationEndDelimiterKey CFLocaleKey // KCFLocaleCalendar is specifies the locale calendar. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/calendar KCFLocaleCalendar CFLocaleKey // KCFLocaleCalendarIdentifier is specifies the locale calendar identifier. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/calendarIdentifier KCFLocaleCalendarIdentifier CFLocaleKey // KCFLocaleCollationIdentifier is specifies the locale collation identifier. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/collationIdentifier KCFLocaleCollationIdentifier CFLocaleKey // KCFLocaleCollatorIdentifier is specifies the collation identifier for the locale. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/collatorIdentifier KCFLocaleCollatorIdentifier CFLocaleKey // KCFLocaleCountryCode is specifies the locale country code. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/countryCode KCFLocaleCountryCode CFLocaleKey // KCFLocaleCurrencyCode is specifies the locale currency code. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/currencyCode KCFLocaleCurrencyCode CFLocaleKey // KCFLocaleCurrencySymbol is specifies the currency symbol. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/currencySymbol KCFLocaleCurrencySymbol CFLocaleKey // KCFLocaleDecimalSeparator is specifies the decimal point string. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/decimalSeparator KCFLocaleDecimalSeparator CFLocaleKey // KCFLocaleExemplarCharacterSet is specifies the locale character set. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/exemplarCharacterSet KCFLocaleExemplarCharacterSet CFLocaleKey // KCFLocaleGroupingSeparator is specifies the separator string between groups of digits. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/groupingSeparator KCFLocaleGroupingSeparator CFLocaleKey // KCFLocaleIdentifier is specifies locale identifier. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/identifier KCFLocaleIdentifier CFLocaleKey // KCFLocaleLanguageCode is specifies the locale language code. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/languageCode KCFLocaleLanguageCode CFLocaleKey // KCFLocaleMeasurementSystem is specifies the measurement system used. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/measurementSystem KCFLocaleMeasurementSystem CFLocaleKey // KCFLocaleQuotationBeginDelimiterKey is specifies the begin quotation symbol associated with the locale. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/quotationBeginDelimiterKey KCFLocaleQuotationBeginDelimiterKey CFLocaleKey // KCFLocaleQuotationEndDelimiterKey is specifies the end quotation symbol associated with the locale. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/quotationEndDelimiterKey KCFLocaleQuotationEndDelimiterKey CFLocaleKey // KCFLocaleScriptCode is specifies the locale script code. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/scriptCode KCFLocaleScriptCode CFLocaleKey // KCFLocaleUsesMetricSystem is specifies the whether the locale uses the metric system. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/usesMetricSystem KCFLocaleUsesMetricSystem CFLocaleKey // KCFLocaleVariantCode is specifies the locale variant code. // // See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleKey/variantCode KCFLocaleVariantCode CFLocaleKey )
type CFLocaleLanguageDirection ¶
type CFLocaleLanguageDirection int
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleLanguageDirection
func CFLocaleGetLanguageCharacterDirection ¶
func CFLocaleGetLanguageCharacterDirection(isoLangCode CFStringRef) CFLocaleLanguageDirection
CFLocaleGetLanguageCharacterDirection returns the character direction for the specified ISO language code.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleGetLanguageCharacterDirection(_:)
func CFLocaleGetLanguageLineDirection ¶
func CFLocaleGetLanguageLineDirection(isoLangCode CFStringRef) CFLocaleLanguageDirection
CFLocaleGetLanguageLineDirection returns the line direction for the specified ISO language code.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleGetLanguageLineDirection(_:)
type CFLocaleRef ¶
type CFLocaleRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFLocale
func CFCalendarCopyLocale ¶
func CFCalendarCopyLocale(calendar CFCalendarRef) CFLocaleRef
CFCalendarCopyLocale returns a locale object for a specified calendar.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarCopyLocale(_:)
func CFDateFormatterGetLocale ¶
func CFDateFormatterGetLocale(formatter CFDateFormatterRef) CFLocaleRef
CFDateFormatterGetLocale returns the locale object used to create the given date formatter object.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterGetLocale(_:)
func CFLocaleCopyCurrent ¶
func CFLocaleCopyCurrent() CFLocaleRef
CFLocaleCopyCurrent returns a copy of the logical locale for the current user.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCopyCurrent()
func CFLocaleCreate ¶
func CFLocaleCreate(allocator CFAllocatorRef, localeIdentifier CFLocaleIdentifier) CFLocaleRef
CFLocaleCreate creates a locale for the given arbitrary locale identifier.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCreate(_:_:)
func CFLocaleCreateCopy ¶
func CFLocaleCreateCopy(allocator CFAllocatorRef, locale CFLocaleRef) CFLocaleRef
CFLocaleCreateCopy returns a copy of a locale.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCreateCopy(_:_:)
func CFLocaleGetSystem ¶
func CFLocaleGetSystem() CFLocaleRef
CFLocaleGetSystem returns the root, canonical locale.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleGetSystem()
func CFNumberFormatterGetLocale ¶
func CFNumberFormatterGetLocale(formatter CFNumberFormatterRef) CFLocaleRef
CFNumberFormatterGetLocale returns the locale object used to create the given number formatter object.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterGetLocale(_:)
type CFMachPort ¶
type CFMachPort = CFMachPortRef
type CFMachPortCallBack ¶
CFMachPortCallBack is callback invoked to process a message received on a CFMachPort object.
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortCallBack
type CFMachPortContext ¶
type CFMachPortContext struct {
Version int // Version number of the structure. Must be `0`.
Info unsafe.Pointer // An arbitrary pointer to program-defined data, which can be associated with the CFMachPort object at creation time. This pointer is passed to all the callbacks defined in the context.
CopyDescription func(unsafe.Pointer) uintptr // A copy description callback for your program-defined `info` pointer. Can be [NULL].
Release func(unsafe.Pointer) // A release callback for your program-defined `info` pointer. Can be [NULL].
Retain func(unsafe.Pointer) unsafe.Pointer // A retain callback for your program-defined `info` pointer. Can be [NULL].
}
CFMachPortContext - A structure that contains program-defined data and callbacks with which you can configure a CFMachPort object’s behavior.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFMachPortContext
type CFMachPortInvalidationCallBack ¶
CFMachPortInvalidationCallBack is callback invoked when a CFMachPort object is invalidated.
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortInvalidationCallBack
func CFMachPortGetInvalidationCallBack ¶
func CFMachPortGetInvalidationCallBack(port CFMachPortRef) CFMachPortInvalidationCallBack
CFMachPortGetInvalidationCallBack returns the invalidation callback function for a CFMachPort object.
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortGetInvalidationCallBack(_:)
type CFMachPortRef ¶
type CFMachPortRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPort
func CFMachPortCreate ¶
func CFMachPortCreate(allocator CFAllocatorRef, callout CFMachPortCallBack, context *CFMachPortContext, shouldFreeInfo *bool) CFMachPortRef
CFMachPortCreate creates a CFMachPort object with a new Mach port.
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortCreate(_:_:_:_:)
func CFMachPortCreateWithPort ¶
func CFMachPortCreateWithPort(allocator CFAllocatorRef, portNum uint32, callout CFMachPortCallBack, context *CFMachPortContext, shouldFreeInfo *bool) CFMachPortRef
CFMachPortCreateWithPort creates a CFMachPort object for a pre-existing native Mach port.
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortCreateWithPort(_:_:_:_:_:)
type CFMessagePortCallBack ¶
CFMessagePortCallBack is callback invoked to process a message received on a CFMessagePort object.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortCallBack
type CFMessagePortContext ¶
type CFMessagePortContext struct {
Version int // Version number of the structure. Must be `0`.
Info unsafe.Pointer // An arbitrary pointer to program-defined data, which can be associated with the message port at creation time. This pointer is passed to all the callbacks defined in the context.
CopyDescription func(unsafe.Pointer) uintptr // A copy description callback for your program-defined `info` pointer. Can be [NULL].
Release func(unsafe.Pointer) // A release callback for your program-defined `info` pointer. Can be [NULL].
Retain func(unsafe.Pointer) unsafe.Pointer // A retain callback for your program-defined `info` pointer. Can be [NULL].
}
CFMessagePortContext - A structure that contains program-defined data and callbacks with which you can configure a CFMessagePort object’s behavior.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortContext
type CFMessagePortInvalidationCallBack ¶
CFMessagePortInvalidationCallBack is callback invoked when a CFMessagePort object is invalidated.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortInvalidationCallBack
func CFMessagePortGetInvalidationCallBack ¶
func CFMessagePortGetInvalidationCallBack(ms CFMessagePortRef) CFMessagePortInvalidationCallBack
CFMessagePortGetInvalidationCallBack returns the invalidation callback function for a CFMessagePort object.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortGetInvalidationCallBack(_:)
type CFMessagePortRef ¶
type CFMessagePortRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePort
func CFMessagePortCreateLocal ¶
func CFMessagePortCreateLocal(allocator CFAllocatorRef, name CFStringRef, callout CFMessagePortCallBack, context *CFMessagePortContext, shouldFreeInfo *bool) CFMessagePortRef
CFMessagePortCreateLocal returns a local CFMessagePort object.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortCreateLocal(_:_:_:_:_:)
func CFMessagePortCreateRemote ¶
func CFMessagePortCreateRemote(allocator CFAllocatorRef, name CFStringRef) CFMessagePortRef
CFMessagePortCreateRemote returns a CFMessagePort object connected to a remote port.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortCreateRemote(_:_:)
type CFMutableArrayRef ¶
type CFMutableArrayRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFMutableArray
func CFArrayCreateMutable ¶
func CFArrayCreateMutable(allocator CFAllocatorRef, capacity int, callBacks *CFArrayCallBacks) CFMutableArrayRef
CFArrayCreateMutable creates a new empty mutable array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayCreateMutable(_:_:_:)
func CFArrayCreateMutableCopy ¶
func CFArrayCreateMutableCopy(allocator CFAllocatorRef, capacity int, theArray CFArrayRef) CFMutableArrayRef
CFArrayCreateMutableCopy creates a new mutable array with the values from another array.
See: https://developer.apple.com/documentation/CoreFoundation/CFArrayCreateMutableCopy(_:_:_:)
type CFMutableAttributedStringRef ¶
type CFMutableAttributedStringRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFMutableAttributedString
func CFAttributedStringCreateMutable ¶
func CFAttributedStringCreateMutable(alloc CFAllocatorRef, maxLength int) CFMutableAttributedStringRef
CFAttributedStringCreateMutable creates a mutable attributed string.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringCreateMutable(_:_:)
func CFAttributedStringCreateMutableCopy ¶
func CFAttributedStringCreateMutableCopy(alloc CFAllocatorRef, maxLength int, aStr CFAttributedStringRef) CFMutableAttributedStringRef
CFAttributedStringCreateMutableCopy creates a mutable copy of an attributed string.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringCreateMutableCopy(_:_:_:)
type CFMutableBagRef ¶
type CFMutableBagRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFMutableBag
func CFBagCreateMutable ¶
func CFBagCreateMutable(allocator CFAllocatorRef, capacity int, callBacks *CFBagCallBacks) CFMutableBagRef
CFBagCreateMutable creates a new empty mutable bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagCreateMutable(_:_:_:)
func CFBagCreateMutableCopy ¶
func CFBagCreateMutableCopy(allocator CFAllocatorRef, capacity int, theBag CFBagRef) CFMutableBagRef
CFBagCreateMutableCopy creates a new mutable bag with the values from another bag.
See: https://developer.apple.com/documentation/CoreFoundation/CFBagCreateMutableCopy(_:_:_:)
type CFMutableBitVectorRef ¶
type CFMutableBitVectorRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFMutableBitVector
func CFBitVectorCreateMutable ¶
func CFBitVectorCreateMutable(allocator CFAllocatorRef, capacity int) CFMutableBitVectorRef
CFBitVectorCreateMutable creates a mutable bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorCreateMutable(_:_:)
func CFBitVectorCreateMutableCopy ¶
func CFBitVectorCreateMutableCopy(allocator CFAllocatorRef, capacity int, bv CFBitVectorRef) CFMutableBitVectorRef
CFBitVectorCreateMutableCopy creates a new mutable bit vector from a pre-existing bit vector.
See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorCreateMutableCopy(_:_:_:)
type CFMutableCharacterSetRef ¶
type CFMutableCharacterSetRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFMutableCharacterSet
func CFCharacterSetCreateMutable ¶
func CFCharacterSetCreateMutable(alloc CFAllocatorRef) CFMutableCharacterSetRef
CFCharacterSetCreateMutable creates a new empty mutable character set.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetCreateMutable(_:)
func CFCharacterSetCreateMutableCopy ¶
func CFCharacterSetCreateMutableCopy(alloc CFAllocatorRef, theSet CFCharacterSetRef) CFMutableCharacterSetRef
CFCharacterSetCreateMutableCopy creates a new mutable character set with the values from another character set.
See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetCreateMutableCopy(_:_:)
type CFMutableDataRef ¶
type CFMutableDataRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFMutableData
func CFDataCreateMutable ¶
func CFDataCreateMutable(allocator CFAllocatorRef, capacity int) CFMutableDataRef
CFDataCreateMutable creates an empty CFMutableData object.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataCreateMutable(_:_:)
func CFDataCreateMutableCopy ¶
func CFDataCreateMutableCopy(allocator CFAllocatorRef, capacity int, theData CFDataRef) CFMutableDataRef
CFDataCreateMutableCopy creates a CFMutableData object by copying another CFData object.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataCreateMutableCopy(_:_:_:)
type CFMutableDictionary ¶
type CFMutableDictionary = CFMutableDictionaryRef
type CFMutableDictionaryRef ¶
type CFMutableDictionaryRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFMutableDictionary
func CFDictionaryCreateMutable ¶
func CFDictionaryCreateMutable(allocator CFAllocatorRef, capacity int, keyCallBacks *CFDictionaryKeyCallBacks, valueCallBacks *CFDictionaryValueCallBacks) CFMutableDictionaryRef
CFDictionaryCreateMutable creates a new mutable dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryCreateMutable(_:_:_:_:)
func CFDictionaryCreateMutableCopy ¶
func CFDictionaryCreateMutableCopy(allocator CFAllocatorRef, capacity int, theDict CFDictionaryRef) CFMutableDictionaryRef
CFDictionaryCreateMutableCopy creates a new mutable dictionary with the key-value pairs from another dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryCreateMutableCopy(_:_:_:)
type CFMutableSetRef ¶
type CFMutableSetRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFMutableSet
func CFSetCreateMutable ¶
func CFSetCreateMutable(allocator CFAllocatorRef, capacity int, callBacks *CFSetCallBacks) CFMutableSetRef
CFSetCreateMutable creates an empty CFMutableSet object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetCreateMutable(_:_:_:)
func CFSetCreateMutableCopy ¶
func CFSetCreateMutableCopy(allocator CFAllocatorRef, capacity int, theSet CFSetRef) CFMutableSetRef
CFSetCreateMutableCopy creates a new mutable set with the values from another set.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetCreateMutableCopy(_:_:_:)
type CFMutableStringRef ¶
type CFMutableStringRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFMutableString
func CFAttributedStringGetMutableString ¶
func CFAttributedStringGetMutableString(aStr CFMutableAttributedStringRef) CFMutableStringRef
CFAttributedStringGetMutableString gets as a mutable string the string for an attributed string.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetMutableString(_:)
func CFStringCreateMutable ¶
func CFStringCreateMutable(alloc CFAllocatorRef, maxLength int) CFMutableStringRef
CFStringCreateMutable creates an empty CFMutableString object.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateMutable(_:_:)
func CFStringCreateMutableCopy ¶
func CFStringCreateMutableCopy(alloc CFAllocatorRef, maxLength int, theString CFStringRef) CFMutableStringRef
CFStringCreateMutableCopy creates a mutable copy of a string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateMutableCopy(_:_:_:)
func CFStringCreateMutableWithExternalCharactersNoCopy ¶
func CFStringCreateMutableWithExternalCharactersNoCopy(alloc CFAllocatorRef, chars *uint16, numChars int, capacity int, externalCharactersAllocator CFAllocatorRef) CFMutableStringRef
CFStringCreateMutableWithExternalCharactersNoCopy creates a CFMutableString object whose Unicode character buffer is controlled externally.
type CFNotificationCallback ¶
CFNotificationCallback is callback function invoked for each observer of a notification when the notification is posted.
See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCallback
type CFNotificationCenterRef ¶
type CFNotificationCenterRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenter
func CFNotificationCenterGetDarwinNotifyCenter ¶
func CFNotificationCenterGetDarwinNotifyCenter() CFNotificationCenterRef
CFNotificationCenterGetDarwinNotifyCenter returns the application’s Darwin notification center.
See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterGetDarwinNotifyCenter()
func CFNotificationCenterGetDistributedCenter ¶
func CFNotificationCenterGetDistributedCenter() CFNotificationCenterRef
CFNotificationCenterGetDistributedCenter returns the application’s distributed notification center.
See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterGetDistributedCenter()
func CFNotificationCenterGetLocalCenter ¶
func CFNotificationCenterGetLocalCenter() CFNotificationCenterRef
CFNotificationCenterGetLocalCenter returns the application’s local notification center.
See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterGetLocalCenter()
type CFNotificationName ¶
type CFNotificationName = string
See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationName
var ( // KCFLocaleCurrentLocaleDidChangeNotification is identifier for the notification sent if the current locale changes. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationName/cfLocaleCurrentLocaleDidChange KCFLocaleCurrentLocaleDidChangeNotification CFNotificationName // KCFTimeZoneSystemTimeZoneDidChangeNotification is name of the notification posted when the system time zone changes. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationName/cfTimeZoneSystemTimeZoneDidChange KCFTimeZoneSystemTimeZoneDidChangeNotification CFNotificationName )
type CFNotificationSuspensionBehavior ¶
type CFNotificationSuspensionBehavior int
See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationSuspensionBehavior
const ( // CFNotificationSuspensionBehaviorCoalesce: The server will only queue the last notification of the specified name and object; earlier notifications are dropped. CFNotificationSuspensionBehaviorCoalesce CFNotificationSuspensionBehavior = 2 // CFNotificationSuspensionBehaviorDeliverImmediately: The server will deliver notifications of the specified name and object whether or not the application is in the background. CFNotificationSuspensionBehaviorDeliverImmediately CFNotificationSuspensionBehavior = 4 // CFNotificationSuspensionBehaviorDrop: The server will not queue any notifications of the specified name and object while the receiving application is in the background. CFNotificationSuspensionBehaviorDrop CFNotificationSuspensionBehavior = 1 // CFNotificationSuspensionBehaviorHold: The server will hold all matching notifications until the queue has been filled (queue size determined by the server) at which point the server may flush queued notifications. CFNotificationSuspensionBehaviorHold CFNotificationSuspensionBehavior = 3 )
func (CFNotificationSuspensionBehavior) String ¶
func (e CFNotificationSuspensionBehavior) String() string
type CFNullRef ¶
type CFNullRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFNull
var ( // KCFNull is the singleton CFNull object. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFNull KCFNull CFNullRef )
type CFNumberFormatterKey ¶
type CFNumberFormatterKey = string
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey
var ( // KCFNumberFormatterAlwaysShowDecimalSeparator is specifies if the result of converting a value to a string should always contain the decimal separator, even if the number is an integer. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/alwaysShowDecimalSeparator KCFNumberFormatterAlwaysShowDecimalSeparator CFNumberFormatterKey // KCFNumberFormatterCurrencyCode is specifies the currency code, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/currencyCode KCFNumberFormatterCurrencyCode CFNumberFormatterKey // KCFNumberFormatterCurrencyDecimalSeparator is specifies the currency decimal separator, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/currencyDecimalSeparator KCFNumberFormatterCurrencyDecimalSeparator CFNumberFormatterKey // KCFNumberFormatterCurrencyGroupingSeparator is specifies the grouping symbol to use when placing a currency value within a string, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/currencyGroupingSeparator KCFNumberFormatterCurrencyGroupingSeparator CFNumberFormatterKey // KCFNumberFormatterCurrencySymbol is specifies the symbol for the currency, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/currencySymbol KCFNumberFormatterCurrencySymbol CFNumberFormatterKey // KCFNumberFormatterDecimalSeparator is specifies the decimal separator, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/decimalSeparator KCFNumberFormatterDecimalSeparator CFNumberFormatterKey // KCFNumberFormatterDefaultFormat is the original format string for the formatter (given the date and time style and locale specified at creation), a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/defaultFormat KCFNumberFormatterDefaultFormat CFNumberFormatterKey // KCFNumberFormatterExponentSymbol is specifies the exponent symbol (“E” or “e”) in the scientific notation of numbers (for example, as in `1.0e+56`), a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/exponentSymbol KCFNumberFormatterExponentSymbol CFNumberFormatterKey // KCFNumberFormatterFormatWidth is specifies the width of a formatted number within a string that is either left justified or right justified based on the value of [paddingPosition], a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/formatWidth KCFNumberFormatterFormatWidth CFNumberFormatterKey // KCFNumberFormatterGroupingSeparator is specifies the grouping separator, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/groupingSeparator KCFNumberFormatterGroupingSeparator CFNumberFormatterKey // KCFNumberFormatterGroupingSize is specifies how often the “thousands” or grouping separator appears, as in “10,000,000”, a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/groupingSize KCFNumberFormatterGroupingSize CFNumberFormatterKey // KCFNumberFormatterInfinitySymbol is specifies the string that is used to represent the symbol for infinity, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/infinitySymbol KCFNumberFormatterInfinitySymbol CFNumberFormatterKey // KCFNumberFormatterInternationalCurrencySymbol is specifies the international currency symbol to use when placing a formatted number within a string, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/internationalCurrencySymbol KCFNumberFormatterInternationalCurrencySymbol CFNumberFormatterKey // KCFNumberFormatterIsLenient is specifies whether the formatter is lenient, a[CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/isLenient KCFNumberFormatterIsLenient CFNumberFormatterKey // KCFNumberFormatterMaxFractionDigits is specifies the maximum number of digits after a decimal point, a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/maxFractionDigits KCFNumberFormatterMaxFractionDigits CFNumberFormatterKey // KCFNumberFormatterMaxIntegerDigits is specifies the maximum number of integer digits before a decimal point, a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/maxIntegerDigits KCFNumberFormatterMaxIntegerDigits CFNumberFormatterKey // KCFNumberFormatterMaxSignificantDigits is specifies the maximum number of significant digits to use, a[CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/maxSignificantDigits KCFNumberFormatterMaxSignificantDigits CFNumberFormatterKey // KCFNumberFormatterMinFractionDigits is specifies the minimum number of digits after a decimal point, a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/minFractionDigits KCFNumberFormatterMinFractionDigits CFNumberFormatterKey // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/minGroupingDigits KCFNumberFormatterMinGroupingDigits CFNumberFormatterKey // KCFNumberFormatterMinIntegerDigits is specifies the minimum number of integer digits before a decimal point, a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/minIntegerDigits KCFNumberFormatterMinIntegerDigits CFNumberFormatterKey // KCFNumberFormatterMinSignificantDigits is specifies the minimum number of significant digits to use, a[CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/minSignificantDigits KCFNumberFormatterMinSignificantDigits CFNumberFormatterKey // KCFNumberFormatterMinusSign is specifies the symbol for the minus sign, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/minusSign KCFNumberFormatterMinusSign CFNumberFormatterKey // KCFNumberFormatterMultiplier is specifies the multiplier to use when placing a formatted number within a string, a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/multiplier KCFNumberFormatterMultiplier CFNumberFormatterKey // KCFNumberFormatterNaNSymbol is specifies the string that is used to represent NaN (“not a number”) when values are converted to strings, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/naNSymbol KCFNumberFormatterNaNSymbol CFNumberFormatterKey // KCFNumberFormatterNegativePrefix is specifies the minus sign prefix symbol to use when placing a formatted number within a string, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/negativePrefix KCFNumberFormatterNegativePrefix CFNumberFormatterKey // KCFNumberFormatterNegativeSuffix is specifies the minus sign suffix symbol to use when placing a formatted number within a string, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/negativeSuffix KCFNumberFormatterNegativeSuffix CFNumberFormatterKey // KCFNumberFormatterPaddingCharacter is specifies the padding character to use when placing a formatted number within a string, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/paddingCharacter KCFNumberFormatterPaddingCharacter CFNumberFormatterKey // KCFNumberFormatterPaddingPosition is specifies the position of a formatted number within a string, a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/paddingPosition KCFNumberFormatterPaddingPosition CFNumberFormatterKey // KCFNumberFormatterPerMillSymbol is specifies the per mill (1/1000) symbol to use when placing a formatted number within a string, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/perMillSymbol KCFNumberFormatterPerMillSymbol CFNumberFormatterKey // KCFNumberFormatterPercentSymbol is specifies the string that is used to represent the percent symbol, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/percentSymbol KCFNumberFormatterPercentSymbol CFNumberFormatterKey // KCFNumberFormatterPlusSign is specifies the symbol for the plus sign, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/plusSign KCFNumberFormatterPlusSign CFNumberFormatterKey // KCFNumberFormatterPositivePrefix is specifies the plus sign prefix symbol to use when placing a formatted number within a string, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/positivePrefix KCFNumberFormatterPositivePrefix CFNumberFormatterKey // KCFNumberFormatterPositiveSuffix is specifies the plus sign suffix symbol to use when placing a formatted number within a string, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/positiveSuffix KCFNumberFormatterPositiveSuffix CFNumberFormatterKey // KCFNumberFormatterRoundingIncrement is specifies a positive rounding increment, or `0.0` to disable rounding, a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/roundingIncrement KCFNumberFormatterRoundingIncrement CFNumberFormatterKey // KCFNumberFormatterRoundingMode is specifies how the last digit is rounded, as when `3.1415926535…` is rounded to three decimal places, as in `3.142`. See [CFNumberFormatterRoundingMode] for possible values. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/roundingMode KCFNumberFormatterRoundingMode CFNumberFormatterKey // KCFNumberFormatterSecondaryGroupingSize is specifies how often the secondary grouping separator appears, a [CFNumber] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/secondaryGroupingSize KCFNumberFormatterSecondaryGroupingSize CFNumberFormatterKey // KCFNumberFormatterUseGroupingSeparator is specifies if the grouping separator should be used, a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/useGroupingSeparator KCFNumberFormatterUseGroupingSeparator CFNumberFormatterKey // KCFNumberFormatterUseSignificantDigits is specifies the whether the formatter uses significant digits, a [CFBoolean] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/useSignificantDigits KCFNumberFormatterUseSignificantDigits CFNumberFormatterKey // KCFNumberFormatterZeroSymbol is specifies the string that is used to represent zero, a [CFString] object. // // See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterKey/zeroSymbol KCFNumberFormatterZeroSymbol CFNumberFormatterKey )
type CFNumberFormatterOptionFlags ¶
type CFNumberFormatterOptionFlags int
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterOptionFlags
const ( // KCFNumberFormatterParseIntegersOnly: Specifies that only integers should be parsed. KCFNumberFormatterParseIntegersOnly CFNumberFormatterOptionFlags = 1 )
func (CFNumberFormatterOptionFlags) String ¶
func (e CFNumberFormatterOptionFlags) String() string
type CFNumberFormatterPadPosition ¶
type CFNumberFormatterPadPosition int
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterPadPosition
const ( // KCFNumberFormatterPadAfterPrefix: Specifies the number of padding characters after the prefix. KCFNumberFormatterPadAfterPrefix CFNumberFormatterPadPosition = 1 // KCFNumberFormatterPadAfterSuffix: Specifies the number of padding characters after the suffix. KCFNumberFormatterPadAfterSuffix CFNumberFormatterPadPosition = 3 // KCFNumberFormatterPadBeforePrefix: Specifies the number of padding characters before the prefix. KCFNumberFormatterPadBeforePrefix CFNumberFormatterPadPosition = 0 // KCFNumberFormatterPadBeforeSuffix: Specifies the number of padding characters before the suffix. KCFNumberFormatterPadBeforeSuffix CFNumberFormatterPadPosition = 2 )
func (CFNumberFormatterPadPosition) String ¶
func (e CFNumberFormatterPadPosition) String() string
type CFNumberFormatterRef ¶
type CFNumberFormatterRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatter
func CFNumberFormatterCreate ¶
func CFNumberFormatterCreate(allocator CFAllocatorRef, locale CFLocaleRef, style CFNumberFormatterStyle) CFNumberFormatterRef
CFNumberFormatterCreate creates a new CFNumberFormatter object, localized to the given locale, which will format numbers to the given style.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterCreate(_:_:_:)
type CFNumberFormatterRoundingMode ¶
type CFNumberFormatterRoundingMode int
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterRoundingMode
const ( // KCFNumberFormatterRoundCeiling: Round towards positive infinity. KCFNumberFormatterRoundCeiling CFNumberFormatterRoundingMode = 0 // KCFNumberFormatterRoundDown: Round towards zero. KCFNumberFormatterRoundDown CFNumberFormatterRoundingMode = 2 // KCFNumberFormatterRoundFloor: Round towards negative infinity. KCFNumberFormatterRoundFloor CFNumberFormatterRoundingMode = 1 // KCFNumberFormatterRoundHalfDown: Round towards the nearest integer, or towards zero if equidistant. KCFNumberFormatterRoundHalfDown CFNumberFormatterRoundingMode = 5 // KCFNumberFormatterRoundHalfEven: Round towards the nearest integer, or towards an even number if equidistant. KCFNumberFormatterRoundHalfEven CFNumberFormatterRoundingMode = 4 // KCFNumberFormatterRoundHalfUp: Round towards the nearest integer, or away from zero if equidistant. KCFNumberFormatterRoundHalfUp CFNumberFormatterRoundingMode = 6 // KCFNumberFormatterRoundUp: Round away from zero. KCFNumberFormatterRoundUp CFNumberFormatterRoundingMode = 3 )
func (CFNumberFormatterRoundingMode) String ¶
func (e CFNumberFormatterRoundingMode) String() string
type CFNumberFormatterStyle ¶
type CFNumberFormatterStyle int
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterStyle
const ( // KCFNumberFormatterCurrencyStyle: Specifies a currency style format. KCFNumberFormatterCurrencyStyle CFNumberFormatterStyle = 2 // KCFNumberFormatterDecimalStyle: Specifies a decimal style format. KCFNumberFormatterDecimalStyle CFNumberFormatterStyle = 1 // KCFNumberFormatterNoStyle: Specifies no style. KCFNumberFormatterNoStyle CFNumberFormatterStyle = 0 // KCFNumberFormatterPercentStyle: Specifies a percent style format. KCFNumberFormatterPercentStyle CFNumberFormatterStyle = 3 // KCFNumberFormatterScientificStyle: Specifies a scientific style format. KCFNumberFormatterScientificStyle CFNumberFormatterStyle = 4 // KCFNumberFormatterSpellOutStyle: Specifies a spelled out format. KCFNumberFormatterSpellOutStyle CFNumberFormatterStyle = 5 )
func CFNumberFormatterGetStyle ¶
func CFNumberFormatterGetStyle(formatter CFNumberFormatterRef) CFNumberFormatterStyle
CFNumberFormatterGetStyle returns the number style used to create the given number formatter object.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterGetStyle(_:)
func (CFNumberFormatterStyle) String ¶
func (e CFNumberFormatterStyle) String() string
type CFNumberRef ¶
type CFNumberRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFNumber
var ( // KCFNumberNaN is “Not a Number.” This value is often the result of an invalid operation, such as the square-root of a negative number. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFNumberNaN KCFNumberNaN CFNumberRef // KCFNumberNegativeInfinity is designates a negative infinity value. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFNumberNegativeInfinity KCFNumberNegativeInfinity CFNumberRef // KCFNumberPositiveInfinity is designates a positive infinity value. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFNumberPositiveInfinity KCFNumberPositiveInfinity CFNumberRef )
func CFNumberCreate ¶
func CFNumberCreate(allocator CFAllocatorRef, theType CFNumberType, valuePtr unsafe.Pointer) CFNumberRef
CFNumberCreate creates a CFNumber object using a specified value.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberCreate(_:_:_:)
func CFNumberFormatterCreateNumberFromString ¶
func CFNumberFormatterCreateNumberFromString(allocator CFAllocatorRef, formatter CFNumberFormatterRef, string_ CFStringRef, rangep *CFRange, options uint64) CFNumberRef
CFNumberFormatterCreateNumberFromString returns a number object representing a given string.
type CFNumberType ¶
type CFNumberType int
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberType
const ( // KCFNumberCFIndexType: CFIndex value. KCFNumberCFIndexType CFNumberType = 14 // KCFNumberCGFloatType: value. KCFNumberCGFloatType CFNumberType = 16 // KCFNumberCharType: Basic C type. KCFNumberCharType CFNumberType = 7 // KCFNumberDoubleType: Basic C type. KCFNumberDoubleType CFNumberType = 13 // KCFNumberFloat32Type: Thirty-two-bit real. KCFNumberFloat32Type CFNumberType = 5 // KCFNumberFloat64Type: Sixty-four-bit real. KCFNumberFloat64Type CFNumberType = 6 // KCFNumberFloatType: Basic C type. KCFNumberFloatType CFNumberType = 12 // KCFNumberIntType: Basic C type. KCFNumberIntType CFNumberType = 9 // KCFNumberLongLongType: Basic C type. KCFNumberLongLongType CFNumberType = 11 // KCFNumberLongType: Basic C type. KCFNumberLongType CFNumberType = 10 // KCFNumberNSIntegerType: value. KCFNumberNSIntegerType CFNumberType = 15 // KCFNumberSInt16Type: Sixteen-bit, signed integer. KCFNumberSInt16Type CFNumberType = 2 // KCFNumberSInt32Type: Thirty-two-bit, signed integer. KCFNumberSInt32Type CFNumberType = 3 // KCFNumberSInt64Type: Sixty-four-bit, signed integer. KCFNumberSInt64Type CFNumberType = 4 // KCFNumberSInt8Type: Eight-bit, signed integer. KCFNumberSInt8Type CFNumberType = 1 // KCFNumberShortType: Basic C type. KCFNumberShortType CFNumberType = 8 )
func CFNumberGetType ¶
func CFNumberGetType(number CFNumberRef) CFNumberType
CFNumberGetType returns the type used by a CFNumber object to store its value.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberGetType(_:)
func (CFNumberType) String ¶
func (e CFNumberType) String() string
type CFOptionFlags ¶
type CFOptionFlags = uint64
CFOptionFlags is a bitfield used for passing special allocation and other requests into Core Foundation functions.
See: https://developer.apple.com/documentation/CoreFoundation/CFOptionFlags
type CFPlugInDynamicRegisterFunction ¶
type CFPlugInDynamicRegisterFunction = func(uintptr)
CFPlugInDynamicRegisterFunction is a callback which provides a plug-in the opportunity to dynamically register its types with a host.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInDynamicRegisterFunction
type CFPlugInFactoryFunction ¶
CFPlugInFactoryFunction is callback function that a plug-in author must implement to create a plug-in instance.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInFactoryFunction
type CFPlugInInstanceDeallocateInstanceDataFunction ¶
CFPlugInInstanceDeallocateInstanceDataFunction is not recommended.
type CFPlugInInstanceGetInterfaceFunction ¶
CFPlugInInstanceGetInterfaceFunction is not recommended.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstanceGetInterfaceFunction
type CFPlugInInstanceRef ¶
type CFPlugInInstanceRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstance
func CFPlugInInstanceCreateWithInstanceDataSize ¶
func CFPlugInInstanceCreateWithInstanceDataSize(allocator CFAllocatorRef, instanceDataSize int, deallocateInstanceFunction CFPlugInInstanceDeallocateInstanceDataFunction, factoryName CFStringRef, getInterfaceFunction CFPlugInInstanceGetInterfaceFunction) CFPlugInInstanceRef
CFPlugInInstanceCreateWithInstanceDataSize not recommended.
type CFPlugInRef ¶
type CFPlugInRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugIn
func CFBundleGetPlugIn ¶
func CFBundleGetPlugIn(bundle CFBundleRef) CFPlugInRef
CFBundleGetPlugIn returns a bundle’s plug-in.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetPlugIn(_:)
func CFPlugInCreate ¶
func CFPlugInCreate(allocator CFAllocatorRef, plugInURL CFURLRef) CFPlugInRef
CFPlugInCreate creates a CFPlugIn given its URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInCreate(_:_:)
type CFPlugInUnloadFunction ¶
type CFPlugInUnloadFunction = func(uintptr)
CFPlugInUnloadFunction is callback function that is called, if present, just before a plug-in’s code is unloaded.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInUnloadFunction
type CFPropertyListFormat ¶
type CFPropertyListFormat int
See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListFormat
const ( // KCFPropertyListBinaryFormat_v1_0: Binary format version 1.0. KCFPropertyListBinaryFormat_v1_0 CFPropertyListFormat = 200 // KCFPropertyListOpenStepFormat: OpenStep format (use of this format is discouraged). KCFPropertyListOpenStepFormat CFPropertyListFormat = 1 // KCFPropertyListXMLFormat_v1_0: XML format version 1.0. KCFPropertyListXMLFormat_v1_0 CFPropertyListFormat = 100 )
func (CFPropertyListFormat) String ¶
func (e CFPropertyListFormat) String() string
type CFPropertyListMutabilityOptions ¶
type CFPropertyListMutabilityOptions int
See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListMutabilityOptions
const ( // KCFPropertyListMutableContainers: Specifies that the property list should have mutable containers but immutable leaves. KCFPropertyListMutableContainers CFPropertyListMutabilityOptions = 1 // KCFPropertyListMutableContainersAndLeaves: Specifies that the property list should have mutable containers and mutable leaves. KCFPropertyListMutableContainersAndLeaves CFPropertyListMutabilityOptions = 2 )
func (CFPropertyListMutabilityOptions) String ¶
func (e CFPropertyListMutabilityOptions) String() string
type CFPropertyListRef ¶
type CFPropertyListRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyList
func CFPreferencesCopyAppValue ¶
func CFPreferencesCopyAppValue(key CFStringRef, applicationID CFStringRef) CFPropertyListRef
CFPreferencesCopyAppValue obtains a preference value for the specified key and application.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesCopyAppValue(_:_:)
func CFPreferencesCopyValue ¶
func CFPreferencesCopyValue(key CFStringRef, applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) CFPropertyListRef
CFPreferencesCopyValue returns a preference value for a given domain.
See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesCopyValue(_:_:_:_:)
func CFPropertyListCreateDeepCopy ¶
func CFPropertyListCreateDeepCopy(allocator CFAllocatorRef, propertyList CFPropertyListRef, mutabilityOption uint64) CFPropertyListRef
CFPropertyListCreateDeepCopy recursively creates a copy of a given property list.
See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListCreateDeepCopy(_:_:_:)
func CFPropertyListCreateWithData ¶
func CFPropertyListCreateWithData(allocator CFAllocatorRef, data CFDataRef, options uint64, format *CFPropertyListFormat, err *CFErrorRef) CFPropertyListRef
CFPropertyListCreateWithData creates a property list from a given CFData object.
See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListCreateWithData(_:_:_:_:_:)
func CFPropertyListCreateWithStream ¶
func CFPropertyListCreateWithStream(allocator CFAllocatorRef, stream CFReadStreamRef, streamLength int, options uint64, format *CFPropertyListFormat, err *CFErrorRef) CFPropertyListRef
CFPropertyListCreateWithStream create and return a property list with a CFReadStream input.
type CFRange ¶
type CFRange struct {
Location int // An integer representing the starting location of the range. For type compatibility with the rest of the system, `LONG_MAX` is the maximum value you should use for location.
Length int // An integer representing the number of items in the range. For type compatibility with the rest of the system, `LONG_MAX` is the maximum value you should use for length.
}
CFRange - A structure representing a range of sequential items in a container, such as characters in a buffer or elements in a collection.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFRange
func CFCalendarGetMaximumRangeOfUnit ¶
func CFCalendarGetMaximumRangeOfUnit(calendar CFCalendarRef, unit CFCalendarUnit) CFRange
CFCalendarGetMaximumRangeOfUnit returns the maximum range limits of the values that a specified unit can take on in a given calendar.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetMaximumRangeOfUnit(_:_:)
func CFCalendarGetMinimumRangeOfUnit ¶
func CFCalendarGetMinimumRangeOfUnit(calendar CFCalendarRef, unit CFCalendarUnit) CFRange
CFCalendarGetMinimumRangeOfUnit returns the minimum range limits of the values that a specified unit can take on in a given calendar.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetMinimumRangeOfUnit(_:_:)
func CFCalendarGetRangeOfUnit ¶
func CFCalendarGetRangeOfUnit(calendar CFCalendarRef, smallerUnit CFCalendarUnit, biggerUnit CFCalendarUnit, at CFAbsoluteTime) CFRange
CFCalendarGetRangeOfUnit returns the range of values that one unit can take on within a larger unit during which a specific absolute time occurs.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetRangeOfUnit(_:_:_:_:)
func CFDataFind ¶
func CFDataFind(theData CFDataRef, dataToFind CFDataRef, searchRange CFRange, compareOptions CFDataSearchFlags) CFRange
CFDataFind finds and returns the range within a data object of the first occurrence of the given data, within a given range, subject to any given options.
See: https://developer.apple.com/documentation/CoreFoundation/CFDataFind(_:_:_:_:)
func CFStringFind ¶
func CFStringFind(theString CFStringRef, stringToFind CFStringRef, compareOptions CFStringCompareFlags) CFRange
CFStringFind searches for a substring within a string and, if it is found, yields the range of the substring within the object’s characters.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringFind(_:_:_:)
func CFStringGetRangeOfComposedCharactersAtIndex ¶
func CFStringGetRangeOfComposedCharactersAtIndex(theString CFStringRef, theIndex int) CFRange
CFStringGetRangeOfComposedCharactersAtIndex returns the range of the composed character sequence at a specified index.
func CFStringTokenizerGetCurrentTokenRange ¶
func CFStringTokenizerGetCurrentTokenRange(tokenizer CFStringTokenizerRef) CFRange
CFStringTokenizerGetCurrentTokenRange returns the range of the current token.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerGetCurrentTokenRange(_:)
func CFURLGetByteRangeForComponent ¶
func CFURLGetByteRangeForComponent(url CFURLRef, component CFURLComponentType, rangeIncludingSeparators *CFRange) CFRange
CFURLGetByteRangeForComponent returns the range of the specified component in the bytes of a URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLGetByteRangeForComponent(_:_:_:)
type CFReadStreamClientCallBack ¶
type CFReadStreamClientCallBack = func(uintptr, CFStreamEventType, unsafe.Pointer)
CFReadStreamClientCallBack is callback invoked when certain types of activity takes place on a readable stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamClientCallBack
type CFReadStreamRef ¶
type CFReadStreamRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStream
func CFReadStreamCreateWithBytesNoCopy ¶
func CFReadStreamCreateWithBytesNoCopy(alloc CFAllocatorRef, bytes *uint8, length int, bytesDeallocator CFAllocatorRef) CFReadStreamRef
CFReadStreamCreateWithBytesNoCopy creates a readable stream for a block of memory.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamCreateWithBytesNoCopy(_:_:_:_:)
func CFReadStreamCreateWithFile ¶
func CFReadStreamCreateWithFile(alloc CFAllocatorRef, fileURL CFURLRef) CFReadStreamRef
CFReadStreamCreateWithFile creates a readable stream for a file.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamCreateWithFile(_:_:)
type CFRunLoopActivity ¶
type CFRunLoopActivity int
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopActivity
const ( // KCFRunLoopAfterWaiting: Inside the event processing loop after the run loop wakes up, but before processing the event that woke it up. KCFRunLoopAfterWaiting CFRunLoopActivity = 64 // KCFRunLoopAllActivities: A combination of all the preceding stages. KCFRunLoopAllActivities CFRunLoopActivity = 268435455 // KCFRunLoopBeforeSources: Inside the event processing loop before any sources are processed. KCFRunLoopBeforeSources CFRunLoopActivity = 4 // KCFRunLoopBeforeTimers: Inside the event processing loop before any timers are processed. KCFRunLoopBeforeTimers CFRunLoopActivity = 2 // KCFRunLoopBeforeWaiting: # Discussion KCFRunLoopBeforeWaiting CFRunLoopActivity = 32 // KCFRunLoopEntry: The entrance of the run loop, before entering the event processing loop. KCFRunLoopEntry CFRunLoopActivity = 1 // KCFRunLoopExit: The exit of the run loop, after exiting the event processing loop. KCFRunLoopExit CFRunLoopActivity = 128 )
func (CFRunLoopActivity) String ¶
func (e CFRunLoopActivity) String() string
type CFRunLoopMode ¶
type CFRunLoopMode = uint
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopMode
var ( // KCFRunLoopCommonModes is objects added to a run loop using this value as the mode are monitored by all run loop modes that have been declared as a member of the set of “common” modes with [CFRunLoopAddCommonMode(_:_:)]. // // See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopMode/commonModes KCFRunLoopCommonModes CFRunLoopMode // KCFRunLoopDefaultMode is run loop mode that should be used when a thread is in its default, or idle, state, waiting for an event. This mode is used when the run loop is started with [CFRunLoopRun()]. // // See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopMode/defaultMode KCFRunLoopDefaultMode CFRunLoopMode )
func CFRunLoopCopyCurrentMode ¶
func CFRunLoopCopyCurrentMode(rl CFRunLoopRef) CFRunLoopMode
CFRunLoopCopyCurrentMode returns the name of the mode in which a given run loop is currently running.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopCopyCurrentMode(_:)
type CFRunLoopObserverCallBack ¶
type CFRunLoopObserverCallBack = func(uintptr, CFRunLoopActivity, unsafe.Pointer)
CFRunLoopObserverCallBack is callback invoked when a CFRunLoopObserver object is fired.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverCallBack
type CFRunLoopObserverContext ¶
type CFRunLoopObserverContext struct {
Version int // Version number of the structure. Must be `0`.
Info unsafe.Pointer // An arbitrary pointer to program-defined data, which can be associated with the run loop observer at creation time. This pointer is passed to all the callbacks defined in the context.
CopyDescription func(unsafe.Pointer) uintptr // A copy description callback for your program-defined `info` pointer. Can be [NULL].
Release func(unsafe.Pointer) // A release callback for your program-defined `info` pointer. Can be [NULL].
Retain func(unsafe.Pointer) unsafe.Pointer // A retain callback for your program-defined `info` pointer. Can be [NULL].
}
CFRunLoopObserverContext - A structure that contains program-defined data and callbacks with which you can configure a CFRunLoopObserver object’s behavior.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverContext
type CFRunLoopObserverRef ¶
type CFRunLoopObserverRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserver
func CFRunLoopObserverCreate ¶
func CFRunLoopObserverCreate(allocator CFAllocatorRef, activities uint64, repeats bool, order int, callout CFRunLoopObserverCallBack, context *CFRunLoopObserverContext) CFRunLoopObserverRef
CFRunLoopObserverCreate creates a CFRunLoopObserver object with a function callback.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverCreate(_:_:_:_:_:_:)
func CFRunLoopObserverCreateWithHandler ¶
func CFRunLoopObserverCreateWithHandler(allocator CFAllocatorRef, activities uint64, repeats bool, order int) CFRunLoopObserverRef
CFRunLoopObserverCreateWithHandler creates a CFRunLoopObserver object with a block-based handler.
type CFRunLoopRef ¶
type CFRunLoopRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoop
func CFRunLoopGetCurrent ¶
func CFRunLoopGetCurrent() CFRunLoopRef
CFRunLoopGetCurrent returns the CFRunLoop object for the current thread.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopGetCurrent()
func CFRunLoopGetMain ¶
func CFRunLoopGetMain() CFRunLoopRef
CFRunLoopGetMain returns the main CFRunLoop object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopGetMain()
type CFRunLoopRunResult ¶
type CFRunLoopRunResult int
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopRunResult
const ( // KCFRunLoopRunFinished: The running run loop mode has no sources or timers to process. KCFRunLoopRunFinished CFRunLoopRunResult = 1 // KCFRunLoopRunHandledSource: A source has been processed. KCFRunLoopRunHandledSource CFRunLoopRunResult = 4 // KCFRunLoopRunStopped: was called on the run loop. KCFRunLoopRunStopped CFRunLoopRunResult = 2 // KCFRunLoopRunTimedOut: The specified time interval for running the run loop has passed. KCFRunLoopRunTimedOut CFRunLoopRunResult = 3 )
func CFRunLoopRunInMode ¶
func CFRunLoopRunInMode(mode CFRunLoopMode, seconds float64, returnAfterSourceHandled bool) CFRunLoopRunResult
CFRunLoopRunInMode runs the current thread’s CFRunLoop object in a particular mode.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopRunInMode(_:_:_:)
func (CFRunLoopRunResult) String ¶
func (e CFRunLoopRunResult) String() string
type CFRunLoopSourceContext ¶
type CFRunLoopSourceContext struct {
Version int // Version number of the structure. Must be 0.
Info unsafe.Pointer // An arbitrary pointer to program-defined data, which can be associated with the CFRunLoopSource at creation time. This pointer is passed to all the callbacks defined in the context.
Cancel func(unsafe.Pointer, uintptr, uintptr)
CopyDescription func(unsafe.Pointer) uintptr // A copy description callback for your program-defined `info` pointer. Can be [NULL].
Equal func(unsafe.Pointer, unsafe.Pointer) uint8 // An equality test callback for your program-defined `info` pointer. Can be [NULL].
Hash func(unsafe.Pointer) uint // A hash calculation callback for your program-defined `info` pointer. Can be [NULL].
Perform func(unsafe.Pointer) // A perform callback for the run loop source. This callback is called when the source has fired.
Release func(unsafe.Pointer) // A release callback for your program-defined `info` pointer. Can be [NULL].
Retain func(unsafe.Pointer) unsafe.Pointer // A retain callback for your program-defined `info` pointer. Can be [NULL].
Schedule func(unsafe.Pointer, uintptr, uintptr) // A scheduling callback for the run loop source. This callback is called when the source is added to a run loop mode. Can be [NULL].
}
CFRunLoopSourceContext - A structure that contains program-defined data and callbacks with which you can configure a version 0 CFRunLoopSource’s behavior.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceContext
type CFRunLoopSourceContext1 ¶
type CFRunLoopSourceContext1 struct {
Version int // Version number of the structure. Must be 1.
Info unsafe.Pointer // An arbitrary pointer to program-defined data, which can be associated with the run loop source at creation time. This pointer is passed to all the callbacks defined in the context.
CopyDescription func(unsafe.Pointer) uintptr // A copy description callback for your program-defined `info` pointer. Can be [NULL].
Equal func(unsafe.Pointer, unsafe.Pointer) uint8 // An equality test callback for your program-defined `info` pointer. Can be [NULL].
GetPort func(unsafe.Pointer) uint // A callback to retrieve the native Mach port represented by the source. This callback is called when the source is either added to or removed from a run loop mode.
Hash func(unsafe.Pointer) uint // A hash calculation callback for your program-defined `info` pointer. Can be [NULL].
Perform func(unsafe.Pointer, int, uintptr, unsafe.Pointer) unsafe.Pointer // A perform callback for the run loop source. This callback is called when the source has fired.
Release func(unsafe.Pointer) // A release callback for your program-defined `info` pointer. Can be [NULL].
Retain func(unsafe.Pointer) unsafe.Pointer // A retain callback for your program-defined `info` pointer. Can be [NULL].
}
CFRunLoopSourceContext1 - A structure that contains program-defined data and callbacks with which you can configure a version 1 CFRunLoopSource’s behavior.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceContext1
type CFRunLoopSourceRef ¶
type CFRunLoopSourceRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSource
func CFFileDescriptorCreateRunLoopSource ¶
func CFFileDescriptorCreateRunLoopSource(allocator CFAllocatorRef, f CFFileDescriptorRef, order int) CFRunLoopSourceRef
CFFileDescriptorCreateRunLoopSource creates a new runloop source for a given CFFileDescriptor.
See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorCreateRunLoopSource(_:_:_:)
func CFMachPortCreateRunLoopSource ¶
func CFMachPortCreateRunLoopSource(allocator CFAllocatorRef, port CFMachPortRef, order int) CFRunLoopSourceRef
CFMachPortCreateRunLoopSource creates a CFRunLoopSource object for a CFMachPort object.
See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortCreateRunLoopSource(_:_:_:)
func CFMessagePortCreateRunLoopSource ¶
func CFMessagePortCreateRunLoopSource(allocator CFAllocatorRef, local CFMessagePortRef, order int) CFRunLoopSourceRef
CFMessagePortCreateRunLoopSource creates a CFRunLoopSource object for a CFMessagePort object.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortCreateRunLoopSource(_:_:_:)
func CFRunLoopSourceCreate ¶
func CFRunLoopSourceCreate(allocator CFAllocatorRef, order int, context *CFRunLoopSourceContext) CFRunLoopSourceRef
CFRunLoopSourceCreate creates a CFRunLoopSource object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceCreate(_:_:_:)
func CFSocketCreateRunLoopSource ¶
func CFSocketCreateRunLoopSource(allocator CFAllocatorRef, s CFSocketRef, order int) CFRunLoopSourceRef
CFSocketCreateRunLoopSource creates a CFRunLoopSource object for a CFSocket object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCreateRunLoopSource(_:_:_:)
func CFUserNotificationCreateRunLoopSource ¶
func CFUserNotificationCreateRunLoopSource(allocator CFAllocatorRef, userNotification CFUserNotificationRef, callout CFUserNotificationCallBack, order int) CFRunLoopSourceRef
CFUserNotificationCreateRunLoopSource creates a run loop source for a user notification.
type CFRunLoopTimerCallBack ¶
CFRunLoopTimerCallBack is callback invoked when a CFRunLoopTimer object fires.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerCallBack
type CFRunLoopTimerContext ¶
type CFRunLoopTimerContext struct {
Version int // Version number of the structure. Must be 0.
Info unsafe.Pointer // An arbitrary pointer to program-defined data, which can be associated with the run loop timer at creation time. This pointer is passed to all the callbacks defined in the context.
CopyDescription func(unsafe.Pointer) uintptr // A copy description callback for your program-defined `info` pointer. Can be [NULL].
Release func(unsafe.Pointer) // A release callback for your program-defined `info` pointer. Can be [NULL].
Retain func(unsafe.Pointer) unsafe.Pointer // A retain callback for your program-defined `info` pointer. Can be [NULL].
}
CFRunLoopTimerContext - A structure that contains program-defined data and callbacks with which you can configure a CFRunLoopTimer’s behavior.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerContext
type CFRunLoopTimerRef ¶
type CFRunLoopTimerRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimer
func CFRunLoopTimerCreate ¶
func CFRunLoopTimerCreate(allocator CFAllocatorRef, fireDate CFAbsoluteTime, interval float64, flags uint64, order int, callout CFRunLoopTimerCallBack, context *CFRunLoopTimerContext) CFRunLoopTimerRef
CFRunLoopTimerCreate creates a new CFRunLoopTimer object with a function callback.
See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerCreate(_:_:_:_:_:_:_:)
func CFRunLoopTimerCreateWithHandler ¶
func CFRunLoopTimerCreateWithHandler(allocator CFAllocatorRef, fireDate CFAbsoluteTime, interval float64, flags uint64, order int) CFRunLoopTimerRef
CFRunLoopTimerCreateWithHandler creates a new CFRunLoopTimer object with a block-based handler.
type CFSetApplierFunction ¶
CFSetApplierFunction is prototype of a callback function that may be applied to every value in a set.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetApplierFunction
type CFSetCallBacks ¶
type CFSetCallBacks struct {
Version int // The version number of this structure. If not one of the defined version numbers for this opaque type, the behavior is undefined. The current version of this structure is `0`.
Retain CFSetRetainCallBack // The callback used to retain each value as they are added to the collection. If [NULL], values are not retained. See [CFSetRetainCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFSetRetainCallBack>) for a descriptions of this function’s parameters.
Release CFSetReleaseCallBack // The callback used to release values as they are removed from the collection. If [NULL], values are not released. See [CFSetReleaseCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFSetReleaseCallBack>) for a description of this callback.
CopyDescription CFSetCopyDescriptionCallBack // The callback used to create a descriptive string representation of each value in the collection. If [NULL], the collection will create a simple description of each value. See [CFSetCopyDescriptionCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFSetCopyDescriptionCallBack>) for a description of this callback.
Equal CFSetEqualCallBack // The callback used to compare values in the collection for equality for some operations. If [NULL], the collection will use pointer equality to compare values in the collection. See [CFSetEqualCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFSetEqualCallBack>) for a description of this callback.
Hash CFSetHashCallBack // The callback used to compute a hash code for values in a collection. If [NULL], the collection computes a hash code by converting the pointer value to an integer. See [CFSetHashCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFSetHashCallBack>) for a description of this callback.
}
CFSetCallBacks - This structure contains the callbacks used to retain, release, describe, and compare the values of a CFSet object.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFSetCallBacks
var ( // KCFCopyStringSetCallBacks is predefined [CFSetCallBacks] structure containing a set of callbacks appropriate for use when the values in a set are all CFString objects. The retain callback makes an immutable copy of strings added to the set. // // See: https://developer.apple.com/documentation/CoreFoundation/kCFCopyStringSetCallBacks KCFCopyStringSetCallBacks CFSetCallBacks // See: https://developer.apple.com/documentation/CoreFoundation/kCFTypeSetCallBacks KCFTypeSetCallBacks CFSetCallBacks )
type CFSetCopyDescriptionCallBack ¶
CFSetCopyDescriptionCallBack is prototype of a callback function used to get a description of a value in a set.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetCopyDescriptionCallBack
type CFSetEqualCallBack ¶
CFSetEqualCallBack is prototype of a callback function used to determine if two values in a set are equal.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetEqualCallBack
type CFSetHashCallBack ¶
CFSetHashCallBack is prototype of a callback function called to compute a hash code for a value. Hash codes are used when values are accessed, added, or removed from a collection.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetHashCallBack
type CFSetRef ¶
type CFSetRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFSet
func CFSetCreate ¶
func CFSetCreate(allocator CFAllocatorRef, values unsafe.Pointer, numValues int, callBacks *CFSetCallBacks) CFSetRef
CFSetCreate creates an immutable CFSet object containing supplied values.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetCreate(_:_:_:_:)
func CFSetCreateCopy ¶
func CFSetCreateCopy(allocator CFAllocatorRef, theSet CFSetRef) CFSetRef
CFSetCreateCopy creates an immutable set containing the values of an existing set.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetCreateCopy(_:_:)
type CFSetReleaseCallBack ¶
CFSetReleaseCallBack is prototype of a callback function used to release a value before it’s removed from a set.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetReleaseCallBack
type CFSetRetainCallBack ¶
CFSetRetainCallBack is prototype of a callback function used to retain a value being added to a set.
See: https://developer.apple.com/documentation/CoreFoundation/CFSetRetainCallBack
type CFSocketCallBack ¶
type CFSocketCallBack = func(uintptr, CFSocketCallBackType, uintptr, unsafe.Pointer, unsafe.Pointer)
CFSocketCallBack is callback invoked when certain types of activity takes place on a CFSocket object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCallBack
type CFSocketCallBackType ¶
type CFSocketCallBackType int
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCallBackType
const ( // KCFSocketAcceptCallBack: New connections will be automatically accepted and the callback is called with the data argument being a pointer to a CFSocketNativeHandle of the child socket. KCFSocketAcceptCallBack CFSocketCallBackType = 2 // KCFSocketConnectCallBack: # Discussion KCFSocketConnectCallBack CFSocketCallBackType = 4 // KCFSocketDataCallBack: Incoming data will be read in chunks in the background and the callback is called with the data argument being a CFData object containing the read data. KCFSocketDataCallBack CFSocketCallBackType = 3 // KCFSocketReadCallBack: The callback is called when data is available to be read or a new connection is waiting to be accepted. KCFSocketReadCallBack CFSocketCallBackType = 1 // KCFSocketWriteCallBack: The callback is called when the socket is writable. KCFSocketWriteCallBack CFSocketCallBackType = 8 )
func (CFSocketCallBackType) String ¶
func (e CFSocketCallBackType) String() string
type CFSocketContext ¶
type CFSocketContext struct {
Version int // Version number of the structure. Must be `0`.
Info unsafe.Pointer // An arbitrary pointer to program-defined data, which can be associated with the CFSocket object at creation time. This pointer is passed to all the callbacks defined in the context.
CopyDescription func(unsafe.Pointer) uintptr // A copy description callback for your program-defined `info` pointer. Can be [NULL].
Release func(unsafe.Pointer) // A release callback for your program-defined `info` pointer. Can be [NULL].
Retain func(unsafe.Pointer) unsafe.Pointer // A retain callback for your program-defined `info` pointer. Can be [NULL].
}
CFSocketContext - A structure that contains program-defined data and callbacks with which you can configure a CFSocket object’s behavior.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFSocketContext
type CFSocketError ¶
type CFSocketError int
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketError
const ( // KCFSocketError: The socket operation failed. KCFSocketError CFSocketError = -1 // KCFSocketSuccess: The socket operation succeeded. KCFSocketSuccess CFSocketError = 0 // KCFSocketTimeout: The socket operation timed out. KCFSocketTimeout CFSocketError = -2 )
func CFSocketConnectToAddress ¶
func CFSocketConnectToAddress(s CFSocketRef, address CFDataRef, timeout float64) CFSocketError
CFSocketConnectToAddress opens a connection to a remote socket.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketConnectToAddress(_:_:_:)
func CFSocketCopyRegisteredSocketSignature ¶
func CFSocketCopyRegisteredSocketSignature(nameServerSignature *CFSocketSignature, timeout float64, name CFStringRef, signature *CFSocketSignature, nameServerAddress *CFDataRef) CFSocketError
CFSocketCopyRegisteredSocketSignature returns a socket signature registered with a CFSocket name server.
func CFSocketCopyRegisteredValue ¶
func CFSocketCopyRegisteredValue(nameServerSignature *CFSocketSignature, timeout float64, name CFStringRef, value *CFPropertyListRef, nameServerAddress *CFDataRef) CFSocketError
CFSocketCopyRegisteredValue returns a value registered with a CFSocket name server.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCopyRegisteredValue(_:_:_:_:_:)
func CFSocketRegisterSocketSignature ¶
func CFSocketRegisterSocketSignature(nameServerSignature *CFSocketSignature, timeout float64, name CFStringRef, signature *CFSocketSignature) CFSocketError
CFSocketRegisterSocketSignature registers a socket signature with a CFSocket name server.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketRegisterSocketSignature(_:_:_:_:)
func CFSocketRegisterValue ¶
func CFSocketRegisterValue(nameServerSignature *CFSocketSignature, timeout float64, name CFStringRef, value CFPropertyListRef) CFSocketError
CFSocketRegisterValue registers a property-list value with a CFSocket name server.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketRegisterValue(_:_:_:_:)
func CFSocketSendData ¶
func CFSocketSendData(s CFSocketRef, address CFDataRef, data CFDataRef, timeout float64) CFSocketError
CFSocketSendData sends data over a CFSocket object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketSendData(_:_:_:_:)
func CFSocketSetAddress ¶
func CFSocketSetAddress(s CFSocketRef, address CFDataRef) CFSocketError
CFSocketSetAddress binds a local address to a CFSocket object and configures it for listening.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketSetAddress(_:_:)
func CFSocketUnregister ¶
func CFSocketUnregister(nameServerSignature *CFSocketSignature, timeout float64, name CFStringRef) CFSocketError
CFSocketUnregister unregisters a value or socket signature with a CFSocket name server.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketUnregister(_:_:_:)
func (CFSocketError) String ¶
func (e CFSocketError) String() string
type CFSocketNativeHandle ¶
type CFSocketNativeHandle = int
CFSocketNativeHandle is type for the platform-specific native socket handle.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketNativeHandle
func CFSocketGetNative ¶
func CFSocketGetNative(s CFSocketRef) CFSocketNativeHandle
CFSocketGetNative returns the native socket associated with a CFSocket object.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketGetNative(_:)
type CFSocketRef ¶
type CFSocketRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFSocket
func CFSocketCreate ¶
func CFSocketCreate(allocator CFAllocatorRef, protocolFamily int32, socketType int32, protocol_ int32, callBackTypes uint64, callout CFSocketCallBack, context *CFSocketContext) CFSocketRef
CFSocketCreate creates a CFSocket object of a specified protocol and type.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCreate(_:_:_:_:_:_:_:)
func CFSocketCreateConnectedToSocketSignature ¶
func CFSocketCreateConnectedToSocketSignature(allocator CFAllocatorRef, signature *CFSocketSignature, callBackTypes uint64, callout CFSocketCallBack, context *CFSocketContext, timeout float64) CFSocketRef
CFSocketCreateConnectedToSocketSignature creates a CFSocket object and opens a connection to a remote socket.
func CFSocketCreateWithNative ¶
func CFSocketCreateWithNative(allocator CFAllocatorRef, sock CFSocketNativeHandle, callBackTypes uint64, callout CFSocketCallBack, context *CFSocketContext) CFSocketRef
CFSocketCreateWithNative creates a CFSocket object for a pre-existing native socket.
See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCreateWithNative(_:_:_:_:_:)
func CFSocketCreateWithSocketSignature ¶
func CFSocketCreateWithSocketSignature(allocator CFAllocatorRef, signature *CFSocketSignature, callBackTypes uint64, callout CFSocketCallBack, context *CFSocketContext) CFSocketRef
CFSocketCreateWithSocketSignature creates a CFSocket object using information from a CFSocketSignature structure.
type CFSocketSignature ¶
type CFSocketSignature struct {
ProtocolFamily int32 // The protocol family of the socket.
SocketType int32 // The socket type of the socket.
Protocol int32 // The protocol type of the socket.
Address CFDataRef // A CFData object holding the contents of a `struct sockaddr` appropriate for the given protocol family (`struct sockaddr_in` or `struct sockaddr_in6`, for example), identifying the address of the socket.
}
CFSocketSignature - A structure that fully specifies the communication protocol and connection address of a CFSocket object.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFSocketSignature
type CFStreamClientContext ¶
type CFStreamClientContext struct {
Version int // Version number of the structure. Must be `0`.
Info unsafe.Pointer // An arbitrary pointer to program-defined data, which can be associated with the client. This pointer is passed to the callbacks defined in the context and to the client callback function [CFReadStreamClientCallBack](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFReadStreamClientCallBack>).
CopyDescription func(unsafe.Pointer) uintptr // A copy description callback for your program-defined `info` pointer. Can be [NULL].
Release func(unsafe.Pointer) // A release callback for your program-defined `info` pointer. Can be [NULL].
Retain func(unsafe.Pointer) unsafe.Pointer // A retain callback for your program-defined `info` pointer. Can be [NULL].
}
CFStreamClientContext - A structure that contains program-defined data and callbacks with which you can configure a stream’s client behavior.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFStreamClientContext
type CFStreamError ¶
type CFStreamError struct {
Domain int // The error domain that should be used to interpret the error. See [CFStreamErrorDomain](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFStreamErrorDomain>) for possible values.
Error int32 // The error code.
}
CFStreamError - The structure returned by [CFReadStreamGetError(_:)](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFReadStreamGetError(_:)>) and [CFWriteStreamGetError(_:)](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFWriteStreamGetError(_:)>).
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFStreamError
func CFReadStreamGetError
deprecated
func CFReadStreamGetError(stream CFReadStreamRef) CFStreamError
CFReadStreamGetError returns the error status of a stream.
Deprecated: Use [CFReadStreamCopyError(_:)](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFReadStreamCopyError(_:)>) instead.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamGetError(_:)
func CFWriteStreamGetError
deprecated
func CFWriteStreamGetError(stream CFWriteStreamRef) CFStreamError
CFWriteStreamGetError returns the error status of a stream.
Deprecated: Use [CFWriteStreamCopyError(_:)](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFWriteStreamCopyError(_:)>) instead.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamGetError(_:)
type CFStreamErrorDomain ¶
type CFStreamErrorDomain int
See: https://developer.apple.com/documentation/CoreFoundation/CFStreamErrorDomain
const ( // KCFStreamErrorDomainCustom: The error code is a custom error code. KCFStreamErrorDomainCustom CFStreamErrorDomain = -1 // KCFStreamErrorDomainMacOSStatus: The error is an OSStatus value defined in . KCFStreamErrorDomainMacOSStatus CFStreamErrorDomain = 2 // KCFStreamErrorDomainPOSIX: The error code is an error code defined in . KCFStreamErrorDomainPOSIX CFStreamErrorDomain = 1 )
func (CFStreamErrorDomain) String ¶
func (e CFStreamErrorDomain) String() string
type CFStreamEventType ¶
type CFStreamEventType int
See: https://developer.apple.com/documentation/CoreFoundation/CFStreamEventType
const ( // KCFStreamEventCanAcceptBytes: The stream can accept bytes for writing. KCFStreamEventCanAcceptBytes CFStreamEventType = 4 // KCFStreamEventEndEncountered: The end of the stream has been reached. KCFStreamEventEndEncountered CFStreamEventType = 16 // KCFStreamEventErrorOccurred: An error has occurred on the stream. KCFStreamEventErrorOccurred CFStreamEventType = 8 // KCFStreamEventHasBytesAvailable: The stream has bytes to be read. KCFStreamEventHasBytesAvailable CFStreamEventType = 2 // KCFStreamEventOpenCompleted: The open has completed successfully. KCFStreamEventOpenCompleted CFStreamEventType = 1 )
func (CFStreamEventType) String ¶
func (e CFStreamEventType) String() string
type CFStreamPropertyKey ¶
type CFStreamPropertyKey = string
See: https://developer.apple.com/documentation/CoreFoundation/CFStreamPropertyKey
var ( // KCFStreamPropertyAppendToFile is value is a [CFBoolean] value that indicates whether to append the written data to a file, if it already exists, rather than to replace its contents. // // See: https://developer.apple.com/documentation/CoreFoundation/CFStreamPropertyKey/appendToFile KCFStreamPropertyAppendToFile CFStreamPropertyKey // KCFStreamPropertyDataWritten is value is a [CFData] object that contains all the bytes written to a writable memory stream. You cannot modify this value. // // See: https://developer.apple.com/documentation/CoreFoundation/CFStreamPropertyKey/dataWritten KCFStreamPropertyDataWritten CFStreamPropertyKey // KCFStreamPropertyFileCurrentOffset is value is a [CFNumber] object containing the current file offset. // // See: https://developer.apple.com/documentation/CoreFoundation/CFStreamPropertyKey/fileCurrentOffset KCFStreamPropertyFileCurrentOffset CFStreamPropertyKey // KCFStreamPropertySocketNativeHandle is value is a [CFData] object that contains the native handle for a socket stream—of type [CFSocketNativeHandle]—to which the socket stream is connected. // // See: https://developer.apple.com/documentation/CoreFoundation/CFStreamPropertyKey/socketNativeHandle KCFStreamPropertySocketNativeHandle CFStreamPropertyKey // KCFStreamPropertySocketRemoteHostName is value is a [CFString] object containing the name of the host to which the socket stream is connected or [NULL] if unknown. // // See: https://developer.apple.com/documentation/CoreFoundation/CFStreamPropertyKey/socketRemoteHostName KCFStreamPropertySocketRemoteHostName CFStreamPropertyKey // KCFStreamPropertySocketRemotePortNumber is value is a [CFNumber] object containing the remote port number to which the socket stream is connected or [NULL] if unknown. // // See: https://developer.apple.com/documentation/CoreFoundation/CFStreamPropertyKey/socketRemotePortNumber KCFStreamPropertySocketRemotePortNumber CFStreamPropertyKey )
type CFStreamStatus ¶
type CFStreamStatus int
See: https://developer.apple.com/documentation/CoreFoundation/CFStreamStatus
const ( // KCFStreamStatusAtEnd: There is no more data to read, or no more data can be written. KCFStreamStatusAtEnd CFStreamStatus = 5 // KCFStreamStatusClosed: The stream is closed. KCFStreamStatusClosed CFStreamStatus = 6 // KCFStreamStatusError: An error occurred on the stream. KCFStreamStatusError CFStreamStatus = 7 // KCFStreamStatusNotOpen: The stream is not open for reading or writing. KCFStreamStatusNotOpen CFStreamStatus = 0 // KCFStreamStatusOpen: The stream is open. KCFStreamStatusOpen CFStreamStatus = 2 // KCFStreamStatusOpening: The stream is being opened for reading or for writing. KCFStreamStatusOpening CFStreamStatus = 1 // KCFStreamStatusReading: The stream is being read from. KCFStreamStatusReading CFStreamStatus = 3 // KCFStreamStatusWriting: The stream is being written to. KCFStreamStatusWriting CFStreamStatus = 4 )
func CFReadStreamGetStatus ¶
func CFReadStreamGetStatus(stream CFReadStreamRef) CFStreamStatus
CFReadStreamGetStatus returns the current state of a stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamGetStatus(_:)
func CFWriteStreamGetStatus ¶
func CFWriteStreamGetStatus(stream CFWriteStreamRef) CFStreamStatus
CFWriteStreamGetStatus returns the current state of a stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamGetStatus(_:)
func (CFStreamStatus) String ¶
func (e CFStreamStatus) String() string
type CFStringBuiltInEncodings ¶
type CFStringBuiltInEncodings uint32
See: https://developer.apple.com/documentation/CoreFoundation/CFStringBuiltInEncodings
const ( // KCFStringEncodingASCII: An encoding constant that identifies the ASCII encoding (decimal values 0 through 127). KCFStringEncodingASCII CFStringBuiltInEncodings = 1536 // KCFStringEncodingISOLatin1: An encoding constant that identifies the ISO Latin 1 encoding (ISO 8859-1) KCFStringEncodingISOLatin1 CFStringBuiltInEncodings = 513 // KCFStringEncodingMacRoman: An encoding constant that identifies the Mac Roman encoding. KCFStringEncodingMacRoman CFStringBuiltInEncodings = 0 // KCFStringEncodingNextStepLatin: An encoding constant that identifies the NextStep/OpenStep encoding. KCFStringEncodingNextStepLatin CFStringBuiltInEncodings = 2817 // KCFStringEncodingNonLossyASCII: An encoding constant that identifies non-lossy ASCII encoding. KCFStringEncodingNonLossyASCII CFStringBuiltInEncodings = 3071 // KCFStringEncodingUTF16BE: An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF16BEFormat encoding. KCFStringEncodingUTF16BE CFStringBuiltInEncodings = 268435712 // KCFStringEncodingUTF16LE: An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF16LEFormat encoding. KCFStringEncodingUTF16LE CFStringBuiltInEncodings = 335544576 // KCFStringEncodingUTF32: An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF32Format encoding. KCFStringEncodingUTF32 CFStringBuiltInEncodings = 201326848 // KCFStringEncodingUTF32BE: An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF32BEFormat encoding. KCFStringEncodingUTF32BE CFStringBuiltInEncodings = 402653440 // KCFStringEncodingUTF32LE: An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF32LEFormat encoding. KCFStringEncodingUTF32LE CFStringBuiltInEncodings = 469762304 // KCFStringEncodingUTF8: An encoding constant that identifies the UTF 8 encoding. KCFStringEncodingUTF8 CFStringBuiltInEncodings = 134217984 // KCFStringEncodingUnicode: An encoding constant that identifies the Unicode encoding. KCFStringEncodingUnicode CFStringBuiltInEncodings = 256 // KCFStringEncodingWindowsLatin1: An encoding constant that identifies the Windows Latin 1 encoding (ANSI codepage 1252). KCFStringEncodingWindowsLatin1 CFStringBuiltInEncodings = 1280 )
func (CFStringBuiltInEncodings) String ¶
func (e CFStringBuiltInEncodings) String() string
type CFStringCompareFlags ¶
type CFStringCompareFlags int
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCompareFlags
const ( // KCFCompareAnchored: Performs searching only on characters at the beginning or end of the range. KCFCompareAnchored CFStringCompareFlags = 8 // KCFCompareBackwards: Specifies that the comparison should start at the last elements of the entities being compared (for example, strings or arrays). KCFCompareBackwards CFStringCompareFlags = 4 // KCFCompareCaseInsensitive: Specifies that the comparison should ignore differences in case between alphabetical characters. KCFCompareCaseInsensitive CFStringCompareFlags = 1 // KCFCompareDiacriticInsensitive: Specifies that the comparison should ignore diacritic markers. KCFCompareDiacriticInsensitive CFStringCompareFlags = 128 // KCFCompareForcedOrdering: Specifies that the comparison is forced to return either `kCFCompareLessThan` or `kCFCompareGreaterThan` if the strings are equivalent but not strictly equal. KCFCompareForcedOrdering CFStringCompareFlags = 512 // KCFCompareLocalized: Specifies that the comparison should take into account differences related to locale, such as the thousands separator character. KCFCompareLocalized CFStringCompareFlags = 32 // KCFCompareNonliteral: Specifies that loose equivalence is acceptable, especially as pertains to diacritical marks. KCFCompareNonliteral CFStringCompareFlags = 16 // KCFCompareNumerically: Specifies that represented numeric values should be used as the basis for comparison and not the actual character values. KCFCompareNumerically CFStringCompareFlags = 64 // KCFCompareWidthInsensitive: Specifies that the comparison should ignore width differences. KCFCompareWidthInsensitive CFStringCompareFlags = 256 )
func (CFStringCompareFlags) String ¶
func (e CFStringCompareFlags) String() string
type CFStringEncoding ¶
type CFStringEncoding = uint32
CFStringEncoding is an integer type for constants used to specify supported string encodings in various CFString functions.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringEncoding
type CFStringEncodings ¶
type CFStringEncodings int
See: https://developer.apple.com/documentation/CoreFoundation/CFStringEncodings
const ( // KCFStringEncodingANSEL: ANSEL (ANSI Z39.47). KCFStringEncodingANSEL CFStringEncodings = 1537 // KCFStringEncodingBig5: Big-5 (has variants) KCFStringEncodingBig5 CFStringEncodings = 2563 // KCFStringEncodingBig5_E: Taiwan Big-5E standard. KCFStringEncodingBig5_E CFStringEncodings = 2569 // KCFStringEncodingBig5_HKSCS_1999: Big-5 with Hong Kong special char set supplement. KCFStringEncodingBig5_HKSCS_1999 CFStringEncodings = 2566 // KCFStringEncodingCNS_11643_92_P1: CNS 11643-1992 plane 1. KCFStringEncodingCNS_11643_92_P1 CFStringEncodings = 1617 // KCFStringEncodingCNS_11643_92_P2: CNS 11643-1992 plane 2. KCFStringEncodingCNS_11643_92_P2 CFStringEncodings = 1618 // KCFStringEncodingCNS_11643_92_P3: CNS 11643-1992 plane 3 (was plane 14 in 1986 version). KCFStringEncodingCNS_11643_92_P3 CFStringEncodings = 1619 // KCFStringEncodingDOSArabic: Code page 864. KCFStringEncodingDOSArabic CFStringEncodings = 1049 // KCFStringEncodingDOSBalticRim: Code page 775. KCFStringEncodingDOSBalticRim CFStringEncodings = 1030 // KCFStringEncodingDOSCanadianFrench: Code page 863. KCFStringEncodingDOSCanadianFrench CFStringEncodings = 1048 // KCFStringEncodingDOSChineseSimplif: Code page 936, also for Windows. KCFStringEncodingDOSChineseSimplif CFStringEncodings = 1057 // KCFStringEncodingDOSChineseTrad: Code page 950, also for Windows. KCFStringEncodingDOSChineseTrad CFStringEncodings = 1059 // KCFStringEncodingDOSCyrillic: Code page 855, IBM Cyrillic. KCFStringEncodingDOSCyrillic CFStringEncodings = 1043 // KCFStringEncodingDOSGreek: Code page 737 (formerly code page 437G). KCFStringEncodingDOSGreek CFStringEncodings = 1029 // KCFStringEncodingDOSGreek1: Code page 851. KCFStringEncodingDOSGreek1 CFStringEncodings = 1041 // KCFStringEncodingDOSGreek2: Code page 869, IBM Modern Greek. KCFStringEncodingDOSGreek2 CFStringEncodings = 1052 // KCFStringEncodingDOSHebrew: Code page 862. KCFStringEncodingDOSHebrew CFStringEncodings = 1047 // KCFStringEncodingDOSIcelandic: Code page 861. KCFStringEncodingDOSIcelandic CFStringEncodings = 1046 // KCFStringEncodingDOSJapanese: Code page 932, also for Windows. KCFStringEncodingDOSJapanese CFStringEncodings = 1056 // KCFStringEncodingDOSKorean: Code page 949, also for Windows; Unified Hangul Code. KCFStringEncodingDOSKorean CFStringEncodings = 1058 // KCFStringEncodingDOSLatin1: Code page 850, “Multilingual”. KCFStringEncodingDOSLatin1 CFStringEncodings = 1040 // KCFStringEncodingDOSLatin2: Code page 852, Slavic. KCFStringEncodingDOSLatin2 CFStringEncodings = 1042 // KCFStringEncodingDOSLatinUS: Code page 437. KCFStringEncodingDOSLatinUS CFStringEncodings = 1024 // KCFStringEncodingDOSNordic: Code page 865. KCFStringEncodingDOSNordic CFStringEncodings = 1050 // KCFStringEncodingDOSPortuguese: Code page 860. KCFStringEncodingDOSPortuguese CFStringEncodings = 1045 // KCFStringEncodingDOSRussian: Code page 866. KCFStringEncodingDOSRussian CFStringEncodings = 1051 // KCFStringEncodingDOSThai: Code page 874, also for Windows. KCFStringEncodingDOSThai CFStringEncodings = 1053 // KCFStringEncodingDOSTurkish: Code page 857, IBM Turkish. KCFStringEncodingDOSTurkish CFStringEncodings = 1044 // KCFStringEncodingEBCDIC_CP037: code page 037, extended EBCDIC (Latin-1 set) for US, Canada. KCFStringEncodingEBCDIC_CP037 CFStringEncodings = 3074 // KCFStringEncodingEBCDIC_US: basic EBCDIC-US KCFStringEncodingEBCDIC_US CFStringEncodings = 3073 // KCFStringEncodingEUC_CN: ISO 646, GB 2312-80. KCFStringEncodingEUC_CN CFStringEncodings = 2352 // KCFStringEncodingEUC_JP: ISO 646, 1-byte katakana, JIS 208, JIS 212. KCFStringEncodingEUC_JP CFStringEncodings = 2336 // KCFStringEncodingEUC_KR: ISO 646, KS C 5601-1987. KCFStringEncodingEUC_KR CFStringEncodings = 2368 // KCFStringEncodingEUC_TW: ISO 646, CNS 11643-1992 Planes 1-16. KCFStringEncodingEUC_TW CFStringEncodings = 2353 // KCFStringEncodingGBK_95: Annex to GB 13000-93; for Windows 95. KCFStringEncodingGBK_95 CFStringEncodings = 1585 // KCFStringEncodingHZ_GB_2312: HZ (RFC 1842, for Chinese mail & news). KCFStringEncodingHZ_GB_2312 CFStringEncodings = 2565 // KCFStringEncodingISOLatin10: ISO 8859-16. KCFStringEncodingISOLatin10 CFStringEncodings = 528 // KCFStringEncodingISOLatin2: ISO 8859-2. KCFStringEncodingISOLatin2 CFStringEncodings = 514 // KCFStringEncodingISOLatin3: ISO 8859-3. KCFStringEncodingISOLatin3 CFStringEncodings = 515 // KCFStringEncodingISOLatin4: ISO 8859-4. KCFStringEncodingISOLatin4 CFStringEncodings = 516 // KCFStringEncodingISOLatin5: ISO 8859-9. KCFStringEncodingISOLatin5 CFStringEncodings = 521 // KCFStringEncodingISOLatin6: ISO 8859-10. KCFStringEncodingISOLatin6 CFStringEncodings = 522 // KCFStringEncodingISOLatin7: ISO 8859-13. KCFStringEncodingISOLatin7 CFStringEncodings = 525 // KCFStringEncodingISOLatin8: ISO 8859-14. KCFStringEncodingISOLatin8 CFStringEncodings = 526 // KCFStringEncodingISOLatin9: ISO 8859-15. KCFStringEncodingISOLatin9 CFStringEncodings = 527 // KCFStringEncodingISOLatinArabic: ISO 8859-6, =ASMO 708, =DOS CP 708. KCFStringEncodingISOLatinArabic CFStringEncodings = 518 // KCFStringEncodingISOLatinCyrillic: ISO 8859-5. KCFStringEncodingISOLatinCyrillic CFStringEncodings = 517 // KCFStringEncodingISOLatinGreek: ISO 8859-7. KCFStringEncodingISOLatinGreek CFStringEncodings = 519 // KCFStringEncodingISOLatinHebrew: ISO 8859-8. KCFStringEncodingISOLatinHebrew CFStringEncodings = 520 // KCFStringEncodingISOLatinThai: ISO 8859-11. KCFStringEncodingISOLatinThai CFStringEncodings = 523 // KCFStringEncodingISO_2022_JP_1: RFC 2237. KCFStringEncodingISO_2022_JP_1 CFStringEncodings = 2082 // KCFStringEncodingISO_2022_JP_3: JIS X0213. KCFStringEncodingISO_2022_JP_3 CFStringEncodings = 2083 // KCFStringEncodingKOI8_R: Russian internet standard. KCFStringEncodingKOI8_R CFStringEncodings = 2562 // KCFStringEncodingKOI8_U: RFC 2319, Ukrainian. KCFStringEncodingKOI8_U CFStringEncodings = 2568 // KCFStringEncodingKSC_5601_87: Same as KSC 5601-92 without Johab annex. KCFStringEncodingKSC_5601_87 CFStringEncodings = 1600 // KCFStringEncodingKSC_5601_92_Johab: KSC 5601-92 Johab annex. KCFStringEncodingKSC_5601_92_Johab CFStringEncodings = 1601 // KCFStringEncodingMacFarsi: Like MacArabic but uses Farsi digits. KCFStringEncodingMacFarsi CFStringEncodings = 140 // KCFStringEncodingMacHFS: Meta-value, should never appear in a table. KCFStringEncodingMacHFS CFStringEncodings = 255 // KCFStringEncodingMacRomanLatin1: Mac OS Roman permuted to align with ISO Latin-1. KCFStringEncodingMacRomanLatin1 CFStringEncodings = 2564 // KCFStringEncodingMacVT100: VT100102 font from Comm Toolbox: Latin-1 repertoire + box drawing etc. KCFStringEncodingMacVT100 CFStringEncodings = 252 // KCFStringEncodingNextStepJapanese: NextStep Japanese encoding. KCFStringEncodingNextStepJapanese CFStringEncodings = 2818 // KCFStringEncodingShiftJIS: Plain Shift-JIS. KCFStringEncodingShiftJIS CFStringEncodings = 2561 // KCFStringEncodingShiftJIS_X0213: Shift-JIS format encoding of JIS X0213 planes 1 and 2. KCFStringEncodingShiftJIS_X0213 CFStringEncodings = 1576 // KCFStringEncodingShiftJIS_X0213_MenKuTen: JIS X0213 in plane-row-column notation. KCFStringEncodingShiftJIS_X0213_MenKuTen CFStringEncodings = 1577 // KCFStringEncodingUTF7: kTextEncodingUnicodeDefault + kUnicodeUTF7Format RFC2152. KCFStringEncodingUTF7 CFStringEncodings = 67109120 // KCFStringEncodingUTF7_IMAP: UTF-7 (IMAP folder variant) RFC3501. KCFStringEncodingUTF7_IMAP CFStringEncodings = 2576 // KCFStringEncodingVISCII: RFC 1456, Vietnamese. KCFStringEncodingVISCII CFStringEncodings = 2567 // KCFStringEncodingWindowsArabic: Code page 1256. KCFStringEncodingWindowsArabic CFStringEncodings = 1286 // KCFStringEncodingWindowsBalticRim: Code page 1257. KCFStringEncodingWindowsBalticRim CFStringEncodings = 1287 // KCFStringEncodingWindowsCyrillic: Code page 1251, Slavic Cyrillic. KCFStringEncodingWindowsCyrillic CFStringEncodings = 1282 // KCFStringEncodingWindowsGreek: Code page 1253. KCFStringEncodingWindowsGreek CFStringEncodings = 1283 // KCFStringEncodingWindowsHebrew: Code page 1255. KCFStringEncodingWindowsHebrew CFStringEncodings = 1285 // KCFStringEncodingWindowsKoreanJohab: Code page 1361, for Windows NT. KCFStringEncodingWindowsKoreanJohab CFStringEncodings = 1296 // KCFStringEncodingWindowsLatin2: Code page 1250, Central Europe. KCFStringEncodingWindowsLatin2 CFStringEncodings = 1281 // KCFStringEncodingWindowsLatin5: Code page 1254, Turkish. KCFStringEncodingWindowsLatin5 CFStringEncodings = 1284 // KCFStringEncodingWindowsVietnamese: Code page 1258. KCFStringEncodingWindowsVietnamese CFStringEncodings = 1288 )
func (CFStringEncodings) String ¶
func (e CFStringEncodings) String() string
type CFStringInlineBuffer ¶
type CFStringInlineBuffer struct {
TheString CFStringRef
RangeToBuffer CFRange
BufferedRangeStart int
BufferedRangeEnd int
Buffer uint16
DirectCStringBuffer *byte
DirectUniCharBuffer *uint16
}
CFStringInlineBuffer - Defines the buffer and related fields used for in-line buffer access of characters in CFString objects.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFStringInlineBuffer
type CFStringNormalizationForm ¶
type CFStringNormalizationForm int
See: https://developer.apple.com/documentation/CoreFoundation/CFStringNormalizationForm
const ( // KCFStringNormalizationFormC: Canonical decomposition followed by canonical composition. KCFStringNormalizationFormC CFStringNormalizationForm = 2 // KCFStringNormalizationFormD: Canonical decomposition. KCFStringNormalizationFormD CFStringNormalizationForm = 0 // KCFStringNormalizationFormKC: Compatibility decomposition followed by canonical composition. KCFStringNormalizationFormKC CFStringNormalizationForm = 3 // KCFStringNormalizationFormKD: Compatibility decomposition. KCFStringNormalizationFormKD CFStringNormalizationForm = 1 )
func (CFStringNormalizationForm) String ¶
func (e CFStringNormalizationForm) String() string
type CFStringRef ¶
type CFStringRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFString
func CFAttributedStringGetString ¶
func CFAttributedStringGetString(aStr CFAttributedStringRef) CFStringRef
CFAttributedStringGetString returns the string for an attributed string.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetString(_:)
func CFBundleCopyLocalizedString ¶
func CFBundleCopyLocalizedString(bundle CFBundleRef, key CFStringRef, value CFStringRef, tableName CFStringRef) CFStringRef
CFBundleCopyLocalizedString returns a localized string from a bundle’s strings file.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyLocalizedString(_:_:_:_:)
func CFBundleCopyLocalizedStringForLocalizations ¶
func CFBundleCopyLocalizedStringForLocalizations(bundle CFBundleRef, key CFStringRef, value CFStringRef, tableName CFStringRef, localizations CFArrayRef) CFStringRef
CFBundleCopyLocalizedStringForLocalizations returns a localized string from a bundle’s strings file.
func CFBundleGetDevelopmentRegion ¶
func CFBundleGetDevelopmentRegion(bundle CFBundleRef) CFStringRef
CFBundleGetDevelopmentRegion returns the bundle’s development region from the bundle’s information property list.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetDevelopmentRegion(_:)
func CFBundleGetIdentifier ¶
func CFBundleGetIdentifier(bundle CFBundleRef) CFStringRef
CFBundleGetIdentifier returns the bundle identifier from a bundle’s information property list.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetIdentifier(_:)
func CFCopyDescription ¶
func CFCopyDescription(cf CFTypeRef) CFStringRef
CFCopyDescription returns a textual description of a Core Foundation object.
See: https://developer.apple.com/documentation/CoreFoundation/CFCopyDescription(_:)
func CFCopyTypeIDDescription ¶
func CFCopyTypeIDDescription(type_id uint) CFStringRef
CFCopyTypeIDDescription returns a textual description of a Core Foundation type, as identified by its type ID, which can be used when debugging.
See: https://developer.apple.com/documentation/CoreFoundation/CFCopyTypeIDDescription(_:)
func CFDateFormatterCreateDateFormatFromTemplate ¶
func CFDateFormatterCreateDateFormatFromTemplate(allocator CFAllocatorRef, tmplate CFStringRef, options uint64, locale CFLocaleRef) CFStringRef
CFDateFormatterCreateDateFormatFromTemplate returns a localized date format string representing the given date format components arranged appropriately for the specified locale.
func CFDateFormatterCreateStringWithAbsoluteTime ¶
func CFDateFormatterCreateStringWithAbsoluteTime(allocator CFAllocatorRef, formatter CFDateFormatterRef, at CFAbsoluteTime) CFStringRef
CFDateFormatterCreateStringWithAbsoluteTime returns a string representation of the given absolute time using the specified date formatter.
func CFDateFormatterCreateStringWithDate ¶
func CFDateFormatterCreateStringWithDate(allocator CFAllocatorRef, formatter CFDateFormatterRef, date CFDateRef) CFStringRef
CFDateFormatterCreateStringWithDate returns a string representation of the given date using the specified date formatter.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterCreateStringWithDate(_:_:_:)
func CFDateFormatterGetFormat ¶
func CFDateFormatterGetFormat(formatter CFDateFormatterRef) CFStringRef
CFDateFormatterGetFormat returns a format string for the given date formatter object.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterGetFormat(_:)
func CFErrorCopyDescription ¶
func CFErrorCopyDescription(err CFErrorRef) CFStringRef
CFErrorCopyDescription returns a human-presentable description for a given error.
See: https://developer.apple.com/documentation/CoreFoundation/CFErrorCopyDescription(_:)
func CFErrorCopyFailureReason ¶
func CFErrorCopyFailureReason(err CFErrorRef) CFStringRef
CFErrorCopyFailureReason returns a human-presentable failure reason for a given error.
See: https://developer.apple.com/documentation/CoreFoundation/CFErrorCopyFailureReason(_:)
func CFErrorCopyRecoverySuggestion ¶
func CFErrorCopyRecoverySuggestion(err CFErrorRef) CFStringRef
CFErrorCopyRecoverySuggestion returns a human presentable recovery suggestion for a given error.
See: https://developer.apple.com/documentation/CoreFoundation/CFErrorCopyRecoverySuggestion(_:)
func CFLocaleCopyDisplayNameForPropertyValue ¶
func CFLocaleCopyDisplayNameForPropertyValue(displayLocale CFLocaleRef, key CFLocaleKey, value CFStringRef) CFStringRef
CFLocaleCopyDisplayNameForPropertyValue returns the display name for the given value.
func CFMessagePortGetName ¶
func CFMessagePortGetName(ms CFMessagePortRef) CFStringRef
CFMessagePortGetName returns the name with which a CFMessagePort object is registered.
See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortGetName(_:)
func CFNumberFormatterCreateStringWithNumber ¶
func CFNumberFormatterCreateStringWithNumber(allocator CFAllocatorRef, formatter CFNumberFormatterRef, number CFNumberRef) CFStringRef
CFNumberFormatterCreateStringWithNumber returns a string representation of the given number using the specified number formatter.
func CFNumberFormatterCreateStringWithValue ¶
func CFNumberFormatterCreateStringWithValue(allocator CFAllocatorRef, formatter CFNumberFormatterRef, numberType CFNumberType, valuePtr unsafe.Pointer) CFStringRef
CFNumberFormatterCreateStringWithValue returns a string representation of the given number or value using the specified number formatter.
func CFNumberFormatterGetFormat ¶
func CFNumberFormatterGetFormat(formatter CFNumberFormatterRef) CFStringRef
CFNumberFormatterGetFormat returns a format string for the given number formatter object.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterGetFormat(_:)
func CFPlugInInstanceGetFactoryName ¶
func CFPlugInInstanceGetFactoryName(instance CFPlugInInstanceRef) CFStringRef
CFPlugInInstanceGetFactoryName not recommended.
See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstanceGetFactoryName(_:)
func CFStringConvertEncodingToIANACharSetName ¶
func CFStringConvertEncodingToIANACharSetName(encoding uint32) CFStringRef
CFStringConvertEncodingToIANACharSetName returns the name of the IANA registry “charset” that is the closest mapping to a specified string encoding.
func CFStringCreateByCombiningStrings ¶
func CFStringCreateByCombiningStrings(alloc CFAllocatorRef, theArray CFArrayRef, separatorString CFStringRef) CFStringRef
CFStringCreateByCombiningStrings creates a single string from the individual CFString objects that comprise the elements of an array.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateByCombiningStrings(_:_:_:)
func CFStringCreateCopy ¶
func CFStringCreateCopy(alloc CFAllocatorRef, theString CFStringRef) CFStringRef
CFStringCreateCopy creates an immutable copy of a string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateCopy(_:_:)
func CFStringCreateFromExternalRepresentation ¶
func CFStringCreateFromExternalRepresentation(alloc CFAllocatorRef, data CFDataRef, encoding uint32) CFStringRef
CFStringCreateFromExternalRepresentation creates a string from its “external representation.”
func CFStringCreateStringWithValidatedFormat ¶
func CFStringCreateStringWithValidatedFormat(alloc CFAllocatorRef, formatOptions CFDictionaryRef, validFormatSpecifiers CFStringRef, format CFStringRef, errorPtr *CFErrorRef) CFStringRef
CFStringCreateStringWithValidatedFormat.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateStringWithValidatedFormat
func CFStringCreateStringWithValidatedFormatAndArguments ¶ added in v0.2.0
func CFStringCreateStringWithValidatedFormatAndArguments(alloc CFAllocatorRef, formatOptions CFDictionaryRef, validFormatSpecifiers CFStringRef, format CFStringRef, arguments uintptr, errorPtr *CFErrorRef) CFStringRef
CFStringCreateStringWithValidatedFormatAndArguments.
func CFStringCreateWithBytes ¶
func CFStringCreateWithBytes(alloc CFAllocatorRef, bytes *uint8, numBytes int, encoding uint32, isExternalRepresentation bool) CFStringRef
CFStringCreateWithBytes creates a string from a buffer containing characters in a specified encoding.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithBytes(_:_:_:_:_:)
func CFStringCreateWithBytesNoCopy ¶
func CFStringCreateWithBytesNoCopy(alloc CFAllocatorRef, bytes *uint8, numBytes int, encoding uint32, isExternalRepresentation bool, contentsDeallocator CFAllocatorRef) CFStringRef
CFStringCreateWithBytesNoCopy creates a string from a buffer, containing characters in a specified encoding, that might serve as the backing store for the new string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithBytesNoCopy(_:_:_:_:_:_:)
func CFStringCreateWithCString ¶
func CFStringCreateWithCString(alloc CFAllocatorRef, cStr string, encoding uint32) CFStringRef
CFStringCreateWithCString creates an immutable string from a C string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithCString(_:_:_:)
func CFStringCreateWithCStringNoCopy ¶
func CFStringCreateWithCStringNoCopy(alloc CFAllocatorRef, cStr string, encoding uint32, contentsDeallocator CFAllocatorRef) CFStringRef
CFStringCreateWithCStringNoCopy creates a CFString object from an external C string buffer that might serve as the backing store for the object.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithCStringNoCopy(_:_:_:_:)
func CFStringCreateWithCharacters ¶
func CFStringCreateWithCharacters(alloc CFAllocatorRef, chars *uint16, numChars int) CFStringRef
CFStringCreateWithCharacters creates a string from a buffer of Unicode characters.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithCharacters(_:_:_:)
func CFStringCreateWithCharactersNoCopy ¶
func CFStringCreateWithCharactersNoCopy(alloc CFAllocatorRef, chars *uint16, numChars int, contentsDeallocator CFAllocatorRef) CFStringRef
CFStringCreateWithCharactersNoCopy creates a string from a buffer of Unicode characters that might serve as the backing store for the object.
func CFStringCreateWithFileSystemRepresentation ¶
func CFStringCreateWithFileSystemRepresentation(alloc CFAllocatorRef, buffer *byte) CFStringRef
CFStringCreateWithFileSystemRepresentation creates a CFString from a zero-terminated POSIX file system representation.
func CFStringCreateWithFormat ¶
func CFStringCreateWithFormat(alloc CFAllocatorRef, formatOptions CFDictionaryRef, format CFStringRef) CFStringRef
CFStringCreateWithFormat creates an immutable string from a formatted string and a variable number of arguments.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithFormat
func CFStringCreateWithFormatAndArguments ¶ added in v0.2.0
func CFStringCreateWithFormatAndArguments(alloc CFAllocatorRef, formatOptions CFDictionaryRef, format CFStringRef, arguments uintptr) CFStringRef
CFStringCreateWithFormatAndArguments creates an immutable string from a formatted string and a variable number of arguments (specified in a parameter of type `va_list`).
func CFStringCreateWithPascalString ¶
func CFStringCreateWithPascalString(alloc CFAllocatorRef, pStr unsafe.Pointer, encoding uint32) CFStringRef
CFStringCreateWithPascalString creates an immutable CFString object from a Pascal string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithPascalString(_:_:_:)
func CFStringCreateWithPascalStringNoCopy ¶
func CFStringCreateWithPascalStringNoCopy(alloc CFAllocatorRef, pStr unsafe.Pointer, encoding uint32, contentsDeallocator CFAllocatorRef) CFStringRef
CFStringCreateWithPascalStringNoCopy creates a CFString object from an external Pascal string buffer that might serve as the backing store for the object.
func CFStringCreateWithSubstring ¶
func CFStringCreateWithSubstring(alloc CFAllocatorRef, str CFStringRef, range_ CFRange) CFStringRef
CFStringCreateWithSubstring creates an immutable string from a segment (substring) of an existing string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithSubstring(_:_:_:)
func CFStringGetNameOfEncoding ¶
func CFStringGetNameOfEncoding(encoding uint32) CFStringRef
CFStringGetNameOfEncoding returns the canonical name of a specified string encoding.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetNameOfEncoding(_:)
func CFStringTokenizerCopyBestStringLanguage ¶
func CFStringTokenizerCopyBestStringLanguage(string_ CFStringRef, range_ CFRange) CFStringRef
CFStringTokenizerCopyBestStringLanguage guesses a language of a given string and returns the guess as a BCP 47 string.
func CFTimeZoneCopyAbbreviation ¶
func CFTimeZoneCopyAbbreviation(tz CFTimeZoneRef, at CFAbsoluteTime) CFStringRef
CFTimeZoneCopyAbbreviation returns the abbreviation of a time zone at a specified date.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneCopyAbbreviation(_:_:)
func CFTimeZoneCopyLocalizedName ¶
func CFTimeZoneCopyLocalizedName(tz CFTimeZoneRef, style CFTimeZoneNameStyle, locale CFLocaleRef) CFStringRef
CFTimeZoneCopyLocalizedName returns the localized name of a given time zone.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneCopyLocalizedName(_:_:_:)
func CFTimeZoneGetName ¶
func CFTimeZoneGetName(tz CFTimeZoneRef) CFStringRef
CFTimeZoneGetName returns the geopolitical region name that identifies a given time zone.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneGetName(_:)
func CFURLCopyFileSystemPath ¶
func CFURLCopyFileSystemPath(anURL CFURLRef, pathStyle CFURLPathStyle) CFStringRef
CFURLCopyFileSystemPath returns the path portion of a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyFileSystemPath(_:_:)
func CFURLCopyFragment ¶
func CFURLCopyFragment(anURL CFURLRef, charactersToLeaveEscaped CFStringRef) CFStringRef
CFURLCopyFragment returns the fragment from a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyFragment(_:_:)
func CFURLCopyHostName ¶
func CFURLCopyHostName(anURL CFURLRef) CFStringRef
CFURLCopyHostName returns the host name of a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyHostName(_:)
func CFURLCopyLastPathComponent ¶
func CFURLCopyLastPathComponent(url CFURLRef) CFStringRef
CFURLCopyLastPathComponent returns the last path component of a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyLastPathComponent(_:)
func CFURLCopyNetLocation ¶
func CFURLCopyNetLocation(anURL CFURLRef) CFStringRef
CFURLCopyNetLocation returns the net location portion of a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyNetLocation(_:)
func CFURLCopyPassword ¶
func CFURLCopyPassword(anURL CFURLRef) CFStringRef
CFURLCopyPassword returns the password of a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyPassword(_:)
func CFURLCopyPath ¶
func CFURLCopyPath(anURL CFURLRef) CFStringRef
CFURLCopyPath returns the path portion of a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyPath(_:)
func CFURLCopyPathExtension ¶
func CFURLCopyPathExtension(url CFURLRef) CFStringRef
CFURLCopyPathExtension returns the path extension of a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyPathExtension(_:)
func CFURLCopyQueryString ¶
func CFURLCopyQueryString(anURL CFURLRef, charactersToLeaveEscaped CFStringRef) CFStringRef
CFURLCopyQueryString returns the query string of a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyQueryString(_:_:)
func CFURLCopyResourceSpecifier ¶
func CFURLCopyResourceSpecifier(anURL CFURLRef) CFStringRef
CFURLCopyResourceSpecifier returns any additional resource specifiers after the path.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyResourceSpecifier(_:)
func CFURLCopyScheme ¶
func CFURLCopyScheme(anURL CFURLRef) CFStringRef
CFURLCopyScheme returns the scheme portion of a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyScheme(_:)
func CFURLCopyStrictPath ¶
func CFURLCopyStrictPath(anURL CFURLRef, isAbsolute *bool) CFStringRef
CFURLCopyStrictPath returns the path portion of a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyStrictPath(_:_:)
func CFURLCopyUserName ¶
func CFURLCopyUserName(anURL CFURLRef) CFStringRef
CFURLCopyUserName returns the user name from a given URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyUserName(_:)
func CFURLCreateStringByReplacingPercentEscapes ¶
func CFURLCreateStringByReplacingPercentEscapes(allocator CFAllocatorRef, originalString CFStringRef, charactersToLeaveEscaped CFStringRef) CFStringRef
CFURLCreateStringByReplacingPercentEscapes creates a new string by replacing any percent escape sequences with their character equivalent.
func CFURLGetString ¶
func CFURLGetString(anURL CFURLRef) CFStringRef
CFURLGetString returns the URL as a [CFString] object.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLGetString(_:)
func CFUUIDCreateString ¶
func CFUUIDCreateString(alloc CFAllocatorRef, uuid CFUUIDRef) CFStringRef
CFUUIDCreateString returns the string representation of a specified CFUUID object.
See: https://developer.apple.com/documentation/CoreFoundation/CFUUIDCreateString(_:_:)
func CFUserNotificationGetResponseValue ¶
func CFUserNotificationGetResponseValue(userNotification CFUserNotificationRef, key CFStringRef, idx int) CFStringRef
CFUserNotificationGetResponseValue extracts the values of the text fields from a dismissed notification dialog.
See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationGetResponseValue(_:_:_:)
func CFXMLCreateStringByEscapingEntities ¶
func CFXMLCreateStringByEscapingEntities(allocator CFAllocatorRef, string_ CFStringRef, entitiesDictionary CFDictionaryRef) CFStringRef
CFXMLCreateStringByEscapingEntities given a CFString object containing XML source with unescaped entities, returns a string with specified XML entities escaped.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLCreateStringByEscapingEntities(_:_:_:)
func CFXMLCreateStringByUnescapingEntities ¶
func CFXMLCreateStringByUnescapingEntities(allocator CFAllocatorRef, string_ CFStringRef, entitiesDictionary CFDictionaryRef) CFStringRef
CFXMLCreateStringByUnescapingEntities given a CFString object containing XML source with escaped entities, returns a string with specified XML entities unescaped.
func CFXMLNodeGetString
deprecated
func CFXMLNodeGetString(node unsafe.Pointer) CFStringRef
CFXMLNodeGetString returns the data string from a CFXMLNode.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLNodeGetString
func CFXMLParserCopyErrorDescription
deprecated
func CFXMLParserCopyErrorDescription(parser CFXMLParserRef) CFStringRef
CFXMLParserCopyErrorDescription returns the user-readable description of the current error condition.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserCopyErrorDescription
type CFStringTokenizerRef ¶
type CFStringTokenizerRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizer
func CFStringTokenizerCreate ¶
func CFStringTokenizerCreate(alloc CFAllocatorRef, string_ CFStringRef, range_ CFRange, options uint64, locale CFLocaleRef) CFStringTokenizerRef
CFStringTokenizerCreate returns a tokenizer for a given string.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerCreate(_:_:_:_:_:)
type CFStringTokenizerTokenType ¶
type CFStringTokenizerTokenType int
See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerTokenType
const ( // KCFStringTokenizerTokenHasDerivedSubTokensMask: Compound token which may contain derived subtokens. KCFStringTokenizerTokenHasDerivedSubTokensMask CFStringTokenizerTokenType = 4 // KCFStringTokenizerTokenHasHasNumbersMask: Appears to contain a number. KCFStringTokenizerTokenHasHasNumbersMask CFStringTokenizerTokenType = 8 // KCFStringTokenizerTokenHasNonLettersMask: Contains punctuation, symbols, and so on. KCFStringTokenizerTokenHasNonLettersMask CFStringTokenizerTokenType = 16 // KCFStringTokenizerTokenHasSubTokensMask: Compound token which may contain subtokens but with no derived subtokens. KCFStringTokenizerTokenHasSubTokensMask CFStringTokenizerTokenType = 2 // KCFStringTokenizerTokenIsCJWordMask: Contains kana and/or ideographs. KCFStringTokenizerTokenIsCJWordMask CFStringTokenizerTokenType = 32 // KCFStringTokenizerTokenNormal: Has a normal token. KCFStringTokenizerTokenNormal CFStringTokenizerTokenType = 1 )
func CFStringTokenizerAdvanceToNextToken ¶
func CFStringTokenizerAdvanceToNextToken(tokenizer CFStringTokenizerRef) CFStringTokenizerTokenType
CFStringTokenizerAdvanceToNextToken advances the tokenizer to the next token and sets that as the current token.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerAdvanceToNextToken(_:)
func CFStringTokenizerGoToTokenAtIndex ¶
func CFStringTokenizerGoToTokenAtIndex(tokenizer CFStringTokenizerRef, index int) CFStringTokenizerTokenType
CFStringTokenizerGoToTokenAtIndex finds a token that includes the character at a given index, and set it as the current token.
See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerGoToTokenAtIndex(_:_:)
func (CFStringTokenizerTokenType) String ¶
func (e CFStringTokenizerTokenType) String() string
type CFSwappedFloat32 ¶
type CFSwappedFloat32 struct {
V uint32 // A 32-bit float value stored with a platform-independentbyte order.
}
CFSwappedFloat32 - Structure holding a 32-bit float value in a platform-independentbyte order.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFSwappedFloat32
type CFSwappedFloat64 ¶
type CFSwappedFloat64 struct {
V uint64 // A 64-bit float value stored with a platform-independentbyte order.
}
CFSwappedFloat64 - Structure holding a 64-bit float value in a platform-independentbyte order.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFSwappedFloat64
type CFTimeInterval ¶
type CFTimeInterval = float64
CFTimeInterval is type used to represent elapsed time in seconds.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeInterval
type CFTimeZoneNameStyle ¶
type CFTimeZoneNameStyle int
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneNameStyle
const ( // KCFTimeZoneNameStyleDaylightSaving: Specifies the daylight saving name style; for example, “Central Daylight Time” for the Central time zone. KCFTimeZoneNameStyleDaylightSaving CFTimeZoneNameStyle = 2 // KCFTimeZoneNameStyleGeneric: Specifies the generic name style, which does not distinguish between daylight saving and standard time; for example, “Central Time” for the Central time zone. KCFTimeZoneNameStyleGeneric CFTimeZoneNameStyle = 4 // KCFTimeZoneNameStyleShortDaylightSaving: Specifies the short daylight saving name style; for example, “CDT” for the Central time zone. KCFTimeZoneNameStyleShortDaylightSaving CFTimeZoneNameStyle = 3 // KCFTimeZoneNameStyleShortGeneric: Specifies the short generic name style, which does not distinguish between daylight saving and standard time; for example, “CT” for the Central time zone. KCFTimeZoneNameStyleShortGeneric CFTimeZoneNameStyle = 5 // KCFTimeZoneNameStyleShortStandard: Specifies the short standard name style; for example, “CST” for the Central time zone. KCFTimeZoneNameStyleShortStandard CFTimeZoneNameStyle = 1 // KCFTimeZoneNameStyleStandard: Specifies the standard name style; for example, “Central Standard Time” for the Central time zone. KCFTimeZoneNameStyleStandard CFTimeZoneNameStyle = 0 )
func (CFTimeZoneNameStyle) String ¶
func (e CFTimeZoneNameStyle) String() string
type CFTimeZoneRef ¶
type CFTimeZoneRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZone
func CFCalendarCopyTimeZone ¶
func CFCalendarCopyTimeZone(calendar CFCalendarRef) CFTimeZoneRef
CFCalendarCopyTimeZone returns a time zone object for a specified calendar.
See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarCopyTimeZone(_:)
func CFTimeZoneCopyDefault ¶
func CFTimeZoneCopyDefault() CFTimeZoneRef
CFTimeZoneCopyDefault returns the default time zone set for your application.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneCopyDefault()
func CFTimeZoneCopySystem ¶
func CFTimeZoneCopySystem() CFTimeZoneRef
CFTimeZoneCopySystem returns the time zone currently used by the system.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneCopySystem()
func CFTimeZoneCreate ¶
func CFTimeZoneCreate(allocator CFAllocatorRef, name CFStringRef, data CFDataRef) CFTimeZoneRef
CFTimeZoneCreate creates a time zone with a given name and data.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneCreate(_:_:_:)
func CFTimeZoneCreateWithName ¶
func CFTimeZoneCreateWithName(allocator CFAllocatorRef, name CFStringRef, tryAbbrev bool) CFTimeZoneRef
CFTimeZoneCreateWithName returns the time zone object identified by a given name or abbreviation.
See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneCreateWithName(_:_:_:)
func CFTimeZoneCreateWithTimeIntervalFromGMT ¶
func CFTimeZoneCreateWithTimeIntervalFromGMT(allocator CFAllocatorRef, ti float64) CFTimeZoneRef
CFTimeZoneCreateWithTimeIntervalFromGMT returns a time zone object for the specified time interval offset from Greenwich Mean Time (GMT).
type CFTreeApplierFunction ¶
CFTreeApplierFunction is type of the callback function used by the CFTree apply function.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeApplierFunction
type CFTreeContext ¶
type CFTreeContext struct {
Version int // The version number of the structure type being passed in as a parameter to a CFTree creation function. This structure is version `0`.
Info unsafe.Pointer // A C pointer to a program-defined block of data, referred to as the information pointer.
Retain CFTreeRetainCallBack // The callback used to retain the `info` field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. This value may be [NULL].
Release CFTreeReleaseCallBack // The callback used to release a previously retained `info` field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. This value may be [NULL].
CopyDescription CFTreeCopyDescriptionCallBack // The callback used to provide a description of the `info` field.
}
CFTreeContext - Structure containing program-defined data and callbacks for a CFTree object.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFTreeContext
type CFTreeCopyDescriptionCallBack ¶
CFTreeCopyDescriptionCallBack is callback function used to provide a description of the program-defined information pointer.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeCopyDescriptionCallBack
type CFTreeRef ¶
type CFTreeRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFTree
func CFTreeCreate ¶
func CFTreeCreate(allocator CFAllocatorRef, context *CFTreeContext) CFTreeRef
CFTreeCreate creates a new CFTree object.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeCreate(_:_:)
func CFTreeFindRoot ¶
CFTreeFindRoot returns the root tree of a given tree.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeFindRoot(_:)
func CFTreeGetChildAtIndex ¶
CFTreeGetChildAtIndex returns the child of a tree at the specified index.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetChildAtIndex(_:_:)
func CFTreeGetFirstChild ¶
CFTreeGetFirstChild returns the first child of a tree.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetFirstChild(_:)
func CFTreeGetNextSibling ¶
CFTreeGetNextSibling returns the next sibling, adjacent to a given tree, in the parent’s children list.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetNextSibling(_:)
func CFTreeGetParent ¶
CFTreeGetParent returns the parent of a given tree.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetParent(_:)
type CFTreeReleaseCallBack ¶
CFTreeReleaseCallBack is callback function used to release a previously retained program-defined information pointer.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeReleaseCallBack
type CFTreeRetainCallBack ¶
CFTreeRetainCallBack is callback function used to retain a program-defined information pointer.
See: https://developer.apple.com/documentation/CoreFoundation/CFTreeRetainCallBack
type CFTypeID ¶
type CFTypeID = uint
CFTypeID is a type for unique, constant integer values that identify particular Core Foundation opaque types.
See: https://developer.apple.com/documentation/CoreFoundation/CFTypeID
type CFTypeRef ¶
type CFTypeRef uintptr
CFTypeRef is an untyped “generic” reference to any Core Foundation object.
See: https://developer.apple.com/documentation/CoreFoundation/CFTypeRef
func CFAttributedStringGetAttribute ¶
func CFAttributedStringGetAttribute(aStr CFAttributedStringRef, loc int, attrName CFStringRef, effectiveRange *CFRange) CFTypeRef
CFAttributedStringGetAttribute returns the value of a given attribute of an attributed string at a specified location.
See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetAttribute(_:_:_:_:)
func CFAttributedStringGetAttributeAndLongestEffectiveRange ¶
func CFAttributedStringGetAttributeAndLongestEffectiveRange(aStr CFAttributedStringRef, loc int, attrName CFStringRef, inRange CFRange, longestEffectiveRange *CFRange) CFTypeRef
CFAttributedStringGetAttributeAndLongestEffectiveRange returns the value of a given attribute of an attributed string at a specified location.
func CFAutorelease ¶
CFAutorelease.
See: https://developer.apple.com/documentation/CoreFoundation/CFAutorelease
func CFBundleGetValueForInfoDictionaryKey ¶
func CFBundleGetValueForInfoDictionaryKey(bundle CFBundleRef, key CFStringRef) CFTypeRef
CFBundleGetValueForInfoDictionaryKey returns a value (localized if possible) from a bundle’s information dictionary.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetValueForInfoDictionaryKey(_:_:)
func CFDateFormatterCopyProperty ¶
func CFDateFormatterCopyProperty(formatter CFDateFormatterRef, key CFDateFormatterKey) CFTypeRef
CFDateFormatterCopyProperty returns a copy of a date formatter’s value for a given key.
See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterCopyProperty(_:_:)
func CFLocaleGetValue ¶
func CFLocaleGetValue(locale CFLocaleRef, key CFLocaleKey) CFTypeRef
CFLocaleGetValue returns the corresponding value for the given key of a locale’s key-value pair.
See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleGetValue(_:_:)
func CFMakeCollectable ¶
CFMakeCollectable makes a newly-allocated Core Foundation object eligible for garbage collection.
See: https://developer.apple.com/documentation/CoreFoundation/CFMakeCollectable
func CFNumberFormatterCopyProperty ¶
func CFNumberFormatterCopyProperty(formatter CFNumberFormatterRef, key CFNumberFormatterKey) CFTypeRef
CFNumberFormatterCopyProperty returns a copy of a number formatter’s value for a given key.
See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterCopyProperty(_:_:)
func CFReadStreamCopyProperty ¶
func CFReadStreamCopyProperty(stream CFReadStreamRef, propertyName CFStreamPropertyKey) CFTypeRef
CFReadStreamCopyProperty returns the value of a property for a stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamCopyProperty(_:_:)
func CFRetain ¶
CFRetain retains a Core Foundation object.
See: https://developer.apple.com/documentation/CoreFoundation/CFRetain
func CFStringTokenizerCopyCurrentTokenAttribute ¶
func CFStringTokenizerCopyCurrentTokenAttribute(tokenizer CFStringTokenizerRef, attribute uint64) CFTypeRef
CFStringTokenizerCopyCurrentTokenAttribute returns a given attribute of the current token.
func CFURLCreateResourcePropertyForKeyFromBookmarkData ¶
func CFURLCreateResourcePropertyForKeyFromBookmarkData(allocator CFAllocatorRef, resourcePropertyKey CFStringRef, bookmark CFDataRef) CFTypeRef
CFURLCreateResourcePropertyForKeyFromBookmarkData returns the value of a resource property from specified bookmark data.
func CFWriteStreamCopyProperty ¶
func CFWriteStreamCopyProperty(stream CFWriteStreamRef, propertyName CFStreamPropertyKey) CFTypeRef
CFWriteStreamCopyProperty returns the value of a property for a stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamCopyProperty(_:_:)
type CFURLBookmarkCreationOptions ¶
type CFURLBookmarkCreationOptions int
See: https://developer.apple.com/documentation/CoreFoundation/CFURLBookmarkCreationOptions
const ( // KCFURLBookmarkCreationMinimalBookmarkMask: Specifies that an alias created with the bookmark data be created with minimal information, which may make it smaller but still able to resolve in certain ways. KCFURLBookmarkCreationMinimalBookmarkMask CFURLBookmarkCreationOptions = 512 // KCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess: When combined with the KCFURLBookmarkCreationWithSecurityScope option, specifies that you want to create a security-scoped bookmark that, when resolved, provides a security-scoped URL allowing read-only access to a file-system resource; for use in an app that adopts App Sandbox. KCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess CFURLBookmarkCreationOptions = 4096 // KCFURLBookmarkCreationSuitableForBookmarkFile: Specifies that the bookmark data include properties required to create Finder alias files. KCFURLBookmarkCreationSuitableForBookmarkFile CFURLBookmarkCreationOptions = 1024 // KCFURLBookmarkCreationWithSecurityScope: Specifies that you want to create a security-scoped bookmark that, when resolved, provides a security-scoped URL allowing read/write access to a file-system resource; for use in an app that adopts App Sandbox. KCFURLBookmarkCreationWithSecurityScope CFURLBookmarkCreationOptions = 2048 KCFURLBookmarkCreationWithoutImplicitSecurityScope CFURLBookmarkCreationOptions = 536870912 // Deprecated. KCFURLBookmarkCreationPreferFileIDResolutionMask CFURLBookmarkCreationOptions = 536870913 )
func (CFURLBookmarkCreationOptions) String ¶
func (e CFURLBookmarkCreationOptions) String() string
type CFURLBookmarkFileCreationOptions ¶
type CFURLBookmarkFileCreationOptions = uint64
CFURLBookmarkFileCreationOptions is type for bookmark file creation options.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLBookmarkFileCreationOptions
type CFURLBookmarkResolutionOptions ¶
type CFURLBookmarkResolutionOptions int
See: https://developer.apple.com/documentation/CoreFoundation/CFURLBookmarkResolutionOptions
const ( // KCFBookmarkResolutionWithoutMountingMask: Specifies that no volume should be mounted during resolution of the bookmark data. KCFBookmarkResolutionWithoutMountingMask CFURLBookmarkResolutionOptions = 512 // KCFBookmarkResolutionWithoutUIMask: Specifies that no UI feedback accompany resolution of the bookmark data. KCFBookmarkResolutionWithoutUIMask CFURLBookmarkResolutionOptions = 256 // KCFURLBookmarkResolutionWithSecurityScope: Specifies that the security scope, applied to the bookmark when it was created, should be used during resolution of the bookmark data. KCFURLBookmarkResolutionWithSecurityScope CFURLBookmarkResolutionOptions = 1024 KCFURLBookmarkResolutionWithoutImplicitStartAccessing CFURLBookmarkResolutionOptions = 32768 KCFURLBookmarkResolutionWithoutMountingMask CFURLBookmarkResolutionOptions = 512 KCFURLBookmarkResolutionWithoutUIMask CFURLBookmarkResolutionOptions = 256 )
func (CFURLBookmarkResolutionOptions) String ¶
func (e CFURLBookmarkResolutionOptions) String() string
type CFURLComponentType ¶
type CFURLComponentType int
See: https://developer.apple.com/documentation/CoreFoundation/CFURLComponentType
const ( // KCFURLComponentFragment: The URL’s fragment. KCFURLComponentFragment CFURLComponentType = 12 // KCFURLComponentHost: The URL’s host. KCFURLComponentHost CFURLComponentType = 8 // KCFURLComponentNetLocation: The URL’s network location. KCFURLComponentNetLocation CFURLComponentType = 2 // KCFURLComponentParameterString: The URL’s parameter string. KCFURLComponentParameterString CFURLComponentType = 10 // KCFURLComponentPassword: The user’s password. KCFURLComponentPassword CFURLComponentType = 6 // KCFURLComponentPath: The URL’s path component. KCFURLComponentPath CFURLComponentType = 3 // KCFURLComponentPort: The URL’s port. KCFURLComponentPort CFURLComponentType = 9 // KCFURLComponentQuery: The URL’s query. KCFURLComponentQuery CFURLComponentType = 11 // KCFURLComponentResourceSpecifier: The URL’s resource specifier. KCFURLComponentResourceSpecifier CFURLComponentType = 4 // KCFURLComponentScheme: The URL’s scheme. KCFURLComponentScheme CFURLComponentType = 1 // KCFURLComponentUser: The URL’s user. KCFURLComponentUser CFURLComponentType = 5 // KCFURLComponentUserInfo: The user’s information. KCFURLComponentUserInfo CFURLComponentType = 7 )
func (CFURLComponentType) String ¶
func (e CFURLComponentType) String() string
type CFURLEnumeratorOptions ¶
type CFURLEnumeratorOptions int
See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorOptions
const ( // KCFURLEnumeratorDescendRecursively: The enumerator recurses into each subdirectory enumerated. KCFURLEnumeratorDescendRecursively CFURLEnumeratorOptions = 1 // KCFURLEnumeratorGenerateFileReferenceURLs: The enumerator generates file reference URLs instead of file path URLs. KCFURLEnumeratorGenerateFileReferenceURLs CFURLEnumeratorOptions = 4 KCFURLEnumeratorGenerateRelativePathURLs CFURLEnumeratorOptions = 64 // KCFURLEnumeratorIncludeDirectoriesPostOrder: If provided along with the KCFURLEnumeratorDescendRecursively option, the recursive enumerator returns a directory’s URL after returning the URLs of the directory’s descendents. KCFURLEnumeratorIncludeDirectoriesPostOrder CFURLEnumeratorOptions = 32 // KCFURLEnumeratorIncludeDirectoriesPreOrder: If provided along with the KCFURLEnumeratorDescendRecursively option, the recursive enumerator returns a directory’s URL before returning the URLs of the directory’s descendents. KCFURLEnumeratorIncludeDirectoriesPreOrder CFURLEnumeratorOptions = 16 // KCFURLEnumeratorSkipInvisibles: The enumerator skips “hidden” or “invisible” objects. KCFURLEnumeratorSkipInvisibles CFURLEnumeratorOptions = 2 // KCFURLEnumeratorSkipPackageContents: The enumerator skips package directory contents. KCFURLEnumeratorSkipPackageContents CFURLEnumeratorOptions = 8 )
func (CFURLEnumeratorOptions) String ¶
func (e CFURLEnumeratorOptions) String() string
type CFURLEnumeratorRef ¶
type CFURLEnumeratorRef uintptr
CFURLEnumeratorRef is a reference to a [CFURLEnumerator] object.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumerator
func CFURLEnumeratorCreateForDirectoryURL ¶
func CFURLEnumeratorCreateForDirectoryURL(alloc CFAllocatorRef, directoryURL CFURLRef, option CFURLEnumeratorOptions, propertyKeys CFArrayRef) CFURLEnumeratorRef
CFURLEnumeratorCreateForDirectoryURL creates and returns a directory enumerator with provided enumerator behavior options and properties to be prefetched.
func CFURLEnumeratorCreateForMountedVolumes ¶
func CFURLEnumeratorCreateForMountedVolumes(alloc CFAllocatorRef, option CFURLEnumeratorOptions, propertyKeys CFArrayRef) CFURLEnumeratorRef
CFURLEnumeratorCreateForMountedVolumes creates and returns a volume enumerator with provided enumerator behavior options and properties to be prefetched.
type CFURLEnumeratorResult ¶
type CFURLEnumeratorResult int
See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorResult
const ( // KCFURLEnumeratorDirectoryPostOrderSuccess: The recursive post-order enumerator returned the URL for a directory after having returned the URLs for all of the directory’s descendents. KCFURLEnumeratorDirectoryPostOrderSuccess CFURLEnumeratorResult = 4 // KCFURLEnumeratorEnd: The enumeration is complete. KCFURLEnumeratorEnd CFURLEnumeratorResult = 2 // KCFURLEnumeratorError: An error occurred during enumeration. KCFURLEnumeratorError CFURLEnumeratorResult = 3 // KCFURLEnumeratorSuccess: The enumerator was advanced successfully and returned a valid URL. KCFURLEnumeratorSuccess CFURLEnumeratorResult = 1 )
func CFURLEnumeratorGetNextURL ¶
func CFURLEnumeratorGetNextURL(enumerator CFURLEnumeratorRef, url *CFURLRef, err *CFErrorRef) CFURLEnumeratorResult
CFURLEnumeratorGetNextURL advances an enumerator to the next URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorGetNextURL(_:_:_:)
func (CFURLEnumeratorResult) String ¶
func (e CFURLEnumeratorResult) String() string
type CFURLError ¶
type CFURLError int
See: https://developer.apple.com/documentation/CoreFoundation/CFURLError
const ( // KCFURLImproperArgumentsError: Indicates one or more arguments are improper. KCFURLImproperArgumentsError CFURLError = -15 KCFURLPropertyKeyUnavailableError CFURLError = -17 KCFURLRemoteHostUnavailableError CFURLError = -14 // KCFURLResourceAccessViolationError: Indicates an error in accessing a resource. KCFURLResourceAccessViolationError CFURLError = -13 // KCFURLResourceNotFoundError: Indicates a resource was not found. KCFURLResourceNotFoundError CFURLError = -12 // KCFURLTimeoutError: Indicates a timeout. KCFURLTimeoutError CFURLError = -18 // KCFURLUnknownError: Indicates an unknown error. KCFURLUnknownError CFURLError = -10 // KCFURLUnknownPropertyKeyError: Indicates a property key is unknown. KCFURLUnknownPropertyKeyError CFURLError = -16 // KCFURLUnknownSchemeError: Indicates that the scheme is not recognized. KCFURLUnknownSchemeError CFURLError = -11 )
func (CFURLError) String ¶
func (e CFURLError) String() string
type CFURLPathStyle ¶
type CFURLPathStyle int
See: https://developer.apple.com/documentation/CoreFoundation/CFURLPathStyle
const ( // KCFURLHFSPathStyle: Indicates a HFS style path name. KCFURLHFSPathStyle CFURLPathStyle = 1 // KCFURLPOSIXPathStyle: Indicates a POSIX style path name. KCFURLPOSIXPathStyle CFURLPathStyle = 0 // KCFURLWindowsPathStyle: Indicates a Windows style path name. KCFURLWindowsPathStyle CFURLPathStyle = 2 )
func (CFURLPathStyle) String ¶
func (e CFURLPathStyle) String() string
type CFURLRef ¶
type CFURLRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFURL
func CFBundleCopyAuxiliaryExecutableURL ¶
func CFBundleCopyAuxiliaryExecutableURL(bundle CFBundleRef, executableName CFStringRef) CFURLRef
CFBundleCopyAuxiliaryExecutableURL returns the location of a bundle’s auxiliary executable code.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyAuxiliaryExecutableURL(_:_:)
func CFBundleCopyBuiltInPlugInsURL ¶
func CFBundleCopyBuiltInPlugInsURL(bundle CFBundleRef) CFURLRef
CFBundleCopyBuiltInPlugInsURL returns the location of a bundle’s built in plug-in.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyBuiltInPlugInsURL(_:)
func CFBundleCopyBundleURL ¶
func CFBundleCopyBundleURL(bundle CFBundleRef) CFURLRef
CFBundleCopyBundleURL returns the location of a bundle.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyBundleURL(_:)
func CFBundleCopyExecutableURL ¶
func CFBundleCopyExecutableURL(bundle CFBundleRef) CFURLRef
CFBundleCopyExecutableURL returns the location of a bundle’s main executable code.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyExecutableURL(_:)
func CFBundleCopyPrivateFrameworksURL ¶
func CFBundleCopyPrivateFrameworksURL(bundle CFBundleRef) CFURLRef
CFBundleCopyPrivateFrameworksURL returns the location of a bundle’s private Frameworks directory.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyPrivateFrameworksURL(_:)
func CFBundleCopyResourceURL ¶
func CFBundleCopyResourceURL(bundle CFBundleRef, resourceName CFStringRef, resourceType CFStringRef, subDirName CFStringRef) CFURLRef
CFBundleCopyResourceURL returns the location of a resource contained in the specified bundle.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyResourceURL(_:_:_:_:)
func CFBundleCopyResourceURLForLocalization ¶
func CFBundleCopyResourceURLForLocalization(bundle CFBundleRef, resourceName CFStringRef, resourceType CFStringRef, subDirName CFStringRef, localizationName CFStringRef) CFURLRef
CFBundleCopyResourceURLForLocalization returns the location of a localized resource in a bundle.
func CFBundleCopyResourceURLInDirectory ¶
func CFBundleCopyResourceURLInDirectory(bundleURL CFURLRef, resourceName CFStringRef, resourceType CFStringRef, subDirName CFStringRef) CFURLRef
CFBundleCopyResourceURLInDirectory returns the location of a resource contained in the specified bundle directory without requiring the creation of a CFBundle object.
func CFBundleCopyResourcesDirectoryURL ¶
func CFBundleCopyResourcesDirectoryURL(bundle CFBundleRef) CFURLRef
CFBundleCopyResourcesDirectoryURL returns the location of a bundle’s Resources directory.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyResourcesDirectoryURL(_:)
func CFBundleCopySharedFrameworksURL ¶
func CFBundleCopySharedFrameworksURL(bundle CFBundleRef) CFURLRef
CFBundleCopySharedFrameworksURL returns the location of a bundle’s shared frameworks directory.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopySharedFrameworksURL(_:)
func CFBundleCopySharedSupportURL ¶
func CFBundleCopySharedSupportURL(bundle CFBundleRef) CFURLRef
CFBundleCopySharedSupportURL returns the location of a bundle’s shared support files directory.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopySharedSupportURL(_:)
func CFBundleCopySupportFilesDirectoryURL ¶
func CFBundleCopySupportFilesDirectoryURL(bundle CFBundleRef) CFURLRef
CFBundleCopySupportFilesDirectoryURL returns the location of the bundle’s support files directory.
See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopySupportFilesDirectoryURL(_:)
func CFURLCopyAbsoluteURL ¶
CFURLCopyAbsoluteURL creates a new [CFURL] object by resolving the relative portion of a URL against its base.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyAbsoluteURL(_:)
func CFURLCreateAbsoluteURLWithBytes ¶
func CFURLCreateAbsoluteURLWithBytes(alloc CFAllocatorRef, relativeURLBytes *uint8, length int, encoding uint32, baseURL CFURLRef, useCompatibilityMode bool) CFURLRef
CFURLCreateAbsoluteURLWithBytes creates a new [CFURL] object by resolving the relative portion of a URL, specified as bytes, against its given base URL.
func CFURLCreateByResolvingBookmarkData ¶
func CFURLCreateByResolvingBookmarkData(allocator CFAllocatorRef, bookmark CFDataRef, options CFURLBookmarkResolutionOptions, relativeToURL CFURLRef, resourcePropertiesToInclude CFArrayRef, isStale *bool, err *CFErrorRef) CFURLRef
CFURLCreateByResolvingBookmarkData returns a new URL made by resolving bookmark data.
func CFURLCreateCopyAppendingPathComponent ¶
func CFURLCreateCopyAppendingPathComponent(allocator CFAllocatorRef, url CFURLRef, pathComponent CFStringRef, isDirectory bool) CFURLRef
CFURLCreateCopyAppendingPathComponent creates a copy of a given URL and appends a path component.
func CFURLCreateCopyAppendingPathExtension ¶
func CFURLCreateCopyAppendingPathExtension(allocator CFAllocatorRef, url CFURLRef, extension CFStringRef) CFURLRef
CFURLCreateCopyAppendingPathExtension creates a copy of a given URL and appends a path extension.
func CFURLCreateCopyDeletingLastPathComponent ¶
func CFURLCreateCopyDeletingLastPathComponent(allocator CFAllocatorRef, url CFURLRef) CFURLRef
CFURLCreateCopyDeletingLastPathComponent creates a copy of a given URL with the last path component deleted.
func CFURLCreateCopyDeletingPathExtension ¶
func CFURLCreateCopyDeletingPathExtension(allocator CFAllocatorRef, url CFURLRef) CFURLRef
CFURLCreateCopyDeletingPathExtension creates a copy of a given URL with its last path extension removed.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateCopyDeletingPathExtension(_:_:)
func CFURLCreateFilePathURL ¶
func CFURLCreateFilePathURL(allocator CFAllocatorRef, url CFURLRef, err *CFErrorRef) CFURLRef
CFURLCreateFilePathURL returns a new file path URL that refers to the same resource as a specified URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateFilePathURL(_:_:_:)
func CFURLCreateFileReferenceURL ¶
func CFURLCreateFileReferenceURL(allocator CFAllocatorRef, url CFURLRef, err *CFErrorRef) CFURLRef
CFURLCreateFileReferenceURL returns a new file reference URL that points to the same resource as a specified URL.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateFileReferenceURL(_:_:_:)
func CFURLCreateFromFileSystemRepresentation ¶
func CFURLCreateFromFileSystemRepresentation(allocator CFAllocatorRef, buffer *uint8, bufLen int, isDirectory bool) CFURLRef
CFURLCreateFromFileSystemRepresentation creates a new [CFURL] object for a file system entity using the native representation.
func CFURLCreateFromFileSystemRepresentationRelativeToBase ¶
func CFURLCreateFromFileSystemRepresentationRelativeToBase(allocator CFAllocatorRef, buffer *uint8, bufLen int, isDirectory bool, baseURL CFURLRef) CFURLRef
CFURLCreateFromFileSystemRepresentationRelativeToBase creates a [CFURL] object from a native character string path relative to a base URL.
func CFURLCreateWithBytes ¶
func CFURLCreateWithBytes(allocator CFAllocatorRef, URLBytes *uint8, length int, encoding uint32, baseURL CFURLRef) CFURLRef
CFURLCreateWithBytes creates a [CFURL] object using a given character bytes.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateWithBytes(_:_:_:_:_:)
func CFURLCreateWithFileSystemPath ¶
func CFURLCreateWithFileSystemPath(allocator CFAllocatorRef, filePath CFStringRef, pathStyle CFURLPathStyle, isDirectory bool) CFURLRef
CFURLCreateWithFileSystemPath creates a [CFURL] object using a local file system path string.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateWithFileSystemPath(_:_:_:_:)
func CFURLCreateWithFileSystemPathRelativeToBase ¶
func CFURLCreateWithFileSystemPathRelativeToBase(allocator CFAllocatorRef, filePath CFStringRef, pathStyle CFURLPathStyle, isDirectory bool, baseURL CFURLRef) CFURLRef
CFURLCreateWithFileSystemPathRelativeToBase creates a [CFURL] object using a local file system path string relative to a base URL.
func CFURLCreateWithString ¶
func CFURLCreateWithString(allocator CFAllocatorRef, URLString CFStringRef, baseURL CFURLRef) CFURLRef
CFURLCreateWithString creates a [CFURL] object using a given [CFString] object.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateWithString(_:_:_:)
func CFURLGetBaseURL ¶
CFURLGetBaseURL returns the base URL of a given URL if it exists.
See: https://developer.apple.com/documentation/CoreFoundation/CFURLGetBaseURL(_:)
func CFXMLParserGetSourceURL
deprecated
func CFXMLParserGetSourceURL(parser CFXMLParserRef) CFURLRef
CFXMLParserGetSourceURL returns the URL for the XML data being parsed.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetSourceURL
type CFUUIDBytes ¶
type CFUUIDBytes struct {
Byte0 uint8 // The first byte.
Byte1 uint8 // The second byte.
Byte2 uint8 // The third byte.
Byte3 uint8 // The fourth byte.
Byte4 uint8 // The fifth byte.
Byte5 uint8 // The sixth byte.
Byte6 uint8 // The seventh byte.
Byte7 uint8 // The eighth byte.
Byte8 uint8 // The ninth byte.
Byte9 uint8 // The tenth byte.
Byte10 uint8 // The eleventh byte.
Byte11 uint8 // The twelfth byte.
Byte12 uint8 // The thirteenth byte.
Byte13 uint8 // The fourteenth byte.
Byte14 uint8 // The fifteenth byte.
Byte15 uint8 // The sixteenth byte.
}
CFUUIDBytes - A 128-bit struct that represents a UUID as raw bytes.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFUUIDBytes
func CFUUIDGetUUIDBytes ¶
func CFUUIDGetUUIDBytes(uuid CFUUIDRef) CFUUIDBytes
CFUUIDGetUUIDBytes returns the value of a UUID object as raw bytes.
See: https://developer.apple.com/documentation/CoreFoundation/CFUUIDGetUUIDBytes(_:)
type CFUUIDRef ¶
type CFUUIDRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFUUID
func CFUUIDCreate ¶
func CFUUIDCreate(alloc CFAllocatorRef) CFUUIDRef
CFUUIDCreate creates a Universally Unique Identifier (UUID) object.
See: https://developer.apple.com/documentation/CoreFoundation/CFUUIDCreate(_:)
func CFUUIDCreateFromString ¶
func CFUUIDCreateFromString(alloc CFAllocatorRef, uuidStr CFStringRef) CFUUIDRef
CFUUIDCreateFromString creates a CFUUID object for a specified string.
See: https://developer.apple.com/documentation/CoreFoundation/CFUUIDCreateFromString(_:_:)
func CFUUIDCreateFromUUIDBytes ¶
func CFUUIDCreateFromUUIDBytes(alloc CFAllocatorRef, bytes CFUUIDBytes) CFUUIDRef
CFUUIDCreateFromUUIDBytes creates a CFUUID object from raw UUID bytes.
See: https://developer.apple.com/documentation/CoreFoundation/CFUUIDCreateFromUUIDBytes(_:_:)
func CFUUIDCreateWithBytes ¶
func CFUUIDCreateWithBytes(alloc CFAllocatorRef, byte0 uint8, byte1 uint8, byte2 uint8, byte3 uint8, byte4 uint8, byte5 uint8, byte6 uint8, byte7 uint8, byte8 uint8, byte9 uint8, byte10 uint8, byte11 uint8, byte12 uint8, byte13 uint8, byte14 uint8, byte15 uint8) CFUUIDRef
CFUUIDCreateWithBytes creates a CFUUID object from raw UUID bytes.
func CFUUIDGetConstantUUIDWithBytes ¶
func CFUUIDGetConstantUUIDWithBytes(alloc CFAllocatorRef, byte0 uint8, byte1 uint8, byte2 uint8, byte3 uint8, byte4 uint8, byte5 uint8, byte6 uint8, byte7 uint8, byte8 uint8, byte9 uint8, byte10 uint8, byte11 uint8, byte12 uint8, byte13 uint8, byte14 uint8, byte15 uint8) CFUUIDRef
CFUUIDGetConstantUUIDWithBytes returns a CFUUID object from raw UUID bytes.
type CFUserNotificationCallBack ¶
CFUserNotificationCallBack is callback invoked when an asynchronous user notification dialog is dismissed.
See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationCallBack
type CFUserNotificationRef ¶
type CFUserNotificationRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotification
func CFUserNotificationCreate ¶
func CFUserNotificationCreate(allocator CFAllocatorRef, timeout float64, flags uint64, err *int32, dictionary CFDictionaryRef) CFUserNotificationRef
CFUserNotificationCreate creates a CFUserNotification object and displays its notification dialog on screen.
See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationCreate(_:_:_:_:_:)
type CFWriteStreamClientCallBack ¶
type CFWriteStreamClientCallBack = func(uintptr, CFStreamEventType, unsafe.Pointer)
CFWriteStreamClientCallBack is callback invoked when certain types of activity takes place on a writable stream.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamClientCallBack
type CFWriteStreamRef ¶
type CFWriteStreamRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStream
func CFWriteStreamCreateWithAllocatedBuffers ¶
func CFWriteStreamCreateWithAllocatedBuffers(alloc CFAllocatorRef, bufferAllocator CFAllocatorRef) CFWriteStreamRef
CFWriteStreamCreateWithAllocatedBuffers creates a writable stream for a growable block of memory.
func CFWriteStreamCreateWithBuffer ¶
func CFWriteStreamCreateWithBuffer(alloc CFAllocatorRef, buffer *uint8, bufferCapacity int) CFWriteStreamRef
CFWriteStreamCreateWithBuffer creates a writable stream for a fixed-size block of memory.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamCreateWithBuffer(_:_:_:)
func CFWriteStreamCreateWithFile ¶
func CFWriteStreamCreateWithFile(alloc CFAllocatorRef, fileURL CFURLRef) CFWriteStreamRef
CFWriteStreamCreateWithFile creates a writable stream for a file.
See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamCreateWithFile(_:_:)
type CFXMLAttributeDeclarationInfo ¶
type CFXMLAttributeDeclarationInfo struct {
AttributeName CFStringRef // The name of the attribute.
TypeString CFStringRef // Describes the declaration of a single attribute.
DefaultString CFStringRef // The attribute’s default value.
}
CFXMLAttributeDeclarationInfo - Contains information about an element attribute definition.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLAttributeDeclarationInfo
type CFXMLAttributeListDeclarationInfo ¶
type CFXMLAttributeListDeclarationInfo struct {
NumberOfAttributes int // The number of attributes in the array.
Attributes *CFXMLAttributeDeclarationInfo // A C array of attributes.
}
CFXMLAttributeListDeclarationInfo - Contains a list of the attributes associated with an element.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLAttributeListDeclarationInfo
type CFXMLDocumentInfo ¶
type CFXMLDocumentInfo struct {
SourceURL CFURLRef // The source URL of the XML document.
Encoding uint32 // The text encoding of the XML document.
}
CFXMLDocumentInfo - Contains the source URL and text encoding information for the XML document.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLDocumentInfo
type CFXMLDocumentTypeInfo ¶
type CFXMLDocumentTypeInfo struct {
ExternalID CFXMLExternalID // The external ID of the DTD.
}
CFXMLDocumentTypeInfo - Contains the external ID of the DTD.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLDocumentTypeInfo
type CFXMLElementInfo ¶
type CFXMLElementInfo struct {
Attributes CFDictionaryRef // The dictionary of attribute values.
AttributeOrder CFArrayRef // An array specifying the order in which the attributes appeared in the XML document.
IsEmpty bool // A flag indicating whether the element was expressed in closed form.
}
CFXMLElementInfo - Contains a list of element attributes packaged as CFDictionary key/value pairs.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLElementInfo
type CFXMLElementTypeDeclarationInfo ¶
type CFXMLElementTypeDeclarationInfo struct {
ContentDescription CFStringRef // A textual description of the element type.
}
CFXMLElementTypeDeclarationInfo - Contains a description of the element type.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLElementTypeDeclarationInfo
type CFXMLEntityInfo ¶
type CFXMLEntityInfo struct {
EntityType CFXMLEntityTypeCode // The entity type code.
ReplacementText CFStringRef // [NULL] if `entityType` is external or unparsed, otherwise the text that the entity should be replaced with.
EntityID CFXMLExternalID // `entityID.SystemID()` will be [NULL] if `entityType` is internal.
NotationName CFStringRef // [NULL] if `entityType` is parsed.
}
CFXMLEntityInfo - Contains information describing an XML entity.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLEntityInfo
type CFXMLEntityReferenceInfo ¶
type CFXMLEntityReferenceInfo struct {
EntityType CFXMLEntityTypeCode // The entity type code.
}
CFXMLEntityReferenceInfo - Contains information describing an XML entity reference.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLEntityReferenceInfo
type CFXMLEntityTypeCode ¶
type CFXMLEntityTypeCode int
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLEntityTypeCode
const ( // KCFXMLEntityTypeCharacter: Indicates a character entity type. KCFXMLEntityTypeCharacter CFXMLEntityTypeCode = 4 // KCFXMLEntityTypeParameter: Implies a parsed, internal entity. KCFXMLEntityTypeParameter CFXMLEntityTypeCode = 0 // KCFXMLEntityTypeParsedExternal: Indicates a parsed, external entity. KCFXMLEntityTypeParsedExternal CFXMLEntityTypeCode = 2 // KCFXMLEntityTypeParsedInternal: Indicates a parsed, internal entity. KCFXMLEntityTypeParsedInternal CFXMLEntityTypeCode = 1 // KCFXMLEntityTypeUnparsed: Indicates an unparsed entity. KCFXMLEntityTypeUnparsed CFXMLEntityTypeCode = 3 )
func (CFXMLEntityTypeCode) String ¶
func (e CFXMLEntityTypeCode) String() string
type CFXMLExternalID ¶
type CFXMLExternalID struct {
SystemID CFURLRef // The systemID URL.
PublicID CFStringRef // The publicID string.
}
CFXMLExternalID - Contains the system and public IDs for an external entity reference.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLExternalID
type CFXMLNotationInfo ¶
type CFXMLNotationInfo struct {
ExternalID CFXMLExternalID // The external ID of the notation.
}
CFXMLNotationInfo - Contains the external ID of the notation.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLNotationInfo
type CFXMLParserAddChildCallBack ¶
CFXMLParserAddChildCallBack is callback function invoked by the parser to notify your application of parent/child relationships between XML structures.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserAddChildCallBack
type CFXMLParserCallBacks ¶
type CFXMLParserCallBacks struct {
Version int // Version number. Must be `0`.
CreateXMLStructure CFXMLParserCreateXMLStructureCallBack // Called when an XML structure is created.
AddChild CFXMLParserAddChildCallBack // Called when a child is added.
EndXMLStructure CFXMLParserEndXMLStructureCallBack // Called when an XML structure has ended.
ResolveExternalEntity CFXMLParserResolveExternalEntityCallBack // Called when an external entity needs to be resolved.
HandleError CFXMLParserHandleErrorCallBack // Called when a parse error needs to be handled.
}
CFXMLParserCallBacks - Contains version information and function pointers to callbacks needed when parsing XML.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserCallBacks
type CFXMLParserContext ¶
type CFXMLParserContext struct {
Version int // Version number of this structure. Must be 0.
Info unsafe.Pointer // An arbitrary program-defined value passed to all the callbacks in this structure and in the [CFXMLParserCallBacks](<doc://com.apple.corefoundation/documentation/CoreFoundation/CFXMLParserCallBacks>) structure.
Retain CFXMLParserRetainCallBack // A retain callback for your program-defined context data. Optional.
Release CFXMLParserReleaseCallBack // A release callback for your program-defined context data. Optional.
CopyDescription CFXMLParserCopyDescriptionCallBack // A copy description callback for your program-defined context data. Optional.
}
CFXMLParserContext - Contains version information and function pointers to callbacks used when handling a program-defined context.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserContext
type CFXMLParserCopyDescriptionCallBack ¶
CFXMLParserCopyDescriptionCallBack is callback function invoked by the parser when handling the information pointer.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserCopyDescriptionCallBack
type CFXMLParserCreateXMLStructureCallBack ¶
CFXMLParserCreateXMLStructureCallBack is callback function invoked when the parser encounters an XML open tag.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserCreateXMLStructureCallBack
type CFXMLParserEndXMLStructureCallBack ¶
CFXMLParserEndXMLStructureCallBack is callback function invoked by the parser to notify your application that an XML structure (and all its children) have been completely parsed.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserEndXMLStructureCallBack
type CFXMLParserHandleErrorCallBack ¶
type CFXMLParserHandleErrorCallBack = func(uintptr, CFXMLParserStatusCode, unsafe.Pointer) uint8
CFXMLParserHandleErrorCallBack is callback function invoked by the parser to notify your application that an error has occurred.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserHandleErrorCallBack
type CFXMLParserOptions ¶
type CFXMLParserOptions int
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserOptions
const ( // KCFXMLParserAddImpliedAttributes: Where the DTD specifies implied attribute-value pairs for a particular element, add those pairs to any occurrences of the element in the element tree. KCFXMLParserAddImpliedAttributes CFXMLParserOptions = 32 // KCFXMLParserAllOptions: Makes the parser do the most work, returning only the pure elementtree. KCFXMLParserAllOptions CFXMLParserOptions = 16777215 // KCFXMLParserReplacePhysicalEntities: Replaces declared entities like `<`;. KCFXMLParserReplacePhysicalEntities CFXMLParserOptions = 4 // KCFXMLParserResolveExternalEntities: Resolves all external entities. KCFXMLParserResolveExternalEntities CFXMLParserOptions = 16 // KCFXMLParserSkipMetaData: Silently skip over metadata constructs (the DTD and comments). KCFXMLParserSkipMetaData CFXMLParserOptions = 2 // KCFXMLParserSkipWhitespace: # Discussion KCFXMLParserSkipWhitespace CFXMLParserOptions = 8 // KCFXMLParserValidateDocument: Validates the document against its grammar from the DTD, reporting any errors. KCFXMLParserValidateDocument CFXMLParserOptions = 1 )
func (CFXMLParserOptions) String ¶
func (e CFXMLParserOptions) String() string
type CFXMLParserRef ¶
type CFXMLParserRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParser
func CFXMLParserCreate
deprecated
func CFXMLParserCreate(allocator CFAllocatorRef, xmlData CFDataRef, dataSource CFURLRef, parseOptions uint64, versionOfNodes int, callBacks *CFXMLParserCallBacks, context *CFXMLParserContext) CFXMLParserRef
CFXMLParserCreate creates a new XML parser for the specified XML data.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserCreate
func CFXMLParserCreateWithDataFromURL
deprecated
func CFXMLParserCreateWithDataFromURL(allocator CFAllocatorRef, dataSource CFURLRef, parseOptions uint64, versionOfNodes int, callBacks *CFXMLParserCallBacks, context *CFXMLParserContext) CFXMLParserRef
CFXMLParserCreateWithDataFromURL creates a new XML parser for the specified XML data at the specified URL.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserCreateWithDataFromURL
type CFXMLParserReleaseCallBack ¶
CFXMLParserReleaseCallBack is callback function invoked by the parser when it wants to release a reference to the information pointer.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserReleaseCallBack
type CFXMLParserResolveExternalEntityCallBack ¶
type CFXMLParserResolveExternalEntityCallBack = func(uintptr, *CFXMLExternalID, unsafe.Pointer) uintptr
CFXMLParserResolveExternalEntityCallBack is callback function invoked by the parser to notify your application that an external entity has been referenced.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserResolveExternalEntityCallBack
type CFXMLParserRetainCallBack ¶
CFXMLParserRetainCallBack is callback function invoked by the parser when it needs another reference to the information pointer.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserRetainCallBack
type CFXMLParserStatusCode ¶
type CFXMLParserStatusCode int
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserStatusCode
const ( // KCFXMLErrorElementlessDocument: Indicates a document containing no elements. KCFXMLErrorElementlessDocument CFXMLParserStatusCode = 11 // KCFXMLErrorEncodingConversionFailure: Indicates an encoding conversion error. KCFXMLErrorEncodingConversionFailure CFXMLParserStatusCode = 3 // KCFXMLErrorMalformedCDSect: Indicates a malformed CDATA section. KCFXMLErrorMalformedCDSect CFXMLParserStatusCode = 7 // KCFXMLErrorMalformedCharacterReference: Indicates a malformed character reference. KCFXMLErrorMalformedCharacterReference CFXMLParserStatusCode = 13 // KCFXMLErrorMalformedCloseTag: Indicates a malformed close tag. KCFXMLErrorMalformedCloseTag CFXMLParserStatusCode = 8 // KCFXMLErrorMalformedComment: Indicates a malformed comment. KCFXMLErrorMalformedComment CFXMLParserStatusCode = 12 // KCFXMLErrorMalformedDTD: Indicates a malformed DTD. KCFXMLErrorMalformedDTD CFXMLParserStatusCode = 5 // KCFXMLErrorMalformedDocument: Indicates a malformed document. KCFXMLErrorMalformedDocument CFXMLParserStatusCode = 10 // KCFXMLErrorMalformedName: Indicates a malformed name. KCFXMLErrorMalformedName CFXMLParserStatusCode = 6 // KCFXMLErrorMalformedParsedCharacterData: Indicates malformed character data. KCFXMLErrorMalformedParsedCharacterData CFXMLParserStatusCode = 14 // KCFXMLErrorMalformedProcessingInstruction: Indicates a malformed processing instruction. KCFXMLErrorMalformedProcessingInstruction CFXMLParserStatusCode = 4 // KCFXMLErrorMalformedStartTag: Indicates a malformed start tag. KCFXMLErrorMalformedStartTag CFXMLParserStatusCode = 9 // KCFXMLErrorNoData: Indicates a no data error. KCFXMLErrorNoData CFXMLParserStatusCode = 15 // KCFXMLErrorUnexpectedEOF: Indicates an unexpected EOF occurred. KCFXMLErrorUnexpectedEOF CFXMLParserStatusCode = 1 // KCFXMLErrorUnknownEncoding: Indicates an unknown encoding error. KCFXMLErrorUnknownEncoding CFXMLParserStatusCode = 2 // KCFXMLStatusParseInProgress: Indicates the parser is in progress. KCFXMLStatusParseInProgress CFXMLParserStatusCode = -1 // KCFXMLStatusParseNotBegun: Indicates the parser has not begun. KCFXMLStatusParseNotBegun CFXMLParserStatusCode = -2 )
func CFXMLParserGetStatusCode
deprecated
func CFXMLParserGetStatusCode(parser CFXMLParserRef) CFXMLParserStatusCode
CFXMLParserGetStatusCode returns a numeric code indicating the current status of the parser.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetStatusCode
func (CFXMLParserStatusCode) String ¶
func (e CFXMLParserStatusCode) String() string
type CFXMLProcessingInstructionInfo ¶
type CFXMLProcessingInstructionInfo struct {
DataString CFStringRef // The text of the processing instruction.
}
CFXMLProcessingInstructionInfo - Contains the text of the processing instruction.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFXMLProcessingInstructionInfo
type CFXMLTreeRef ¶
type CFXMLTreeRef uintptr
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLTree
func CFXMLTreeCreateFromData
deprecated
func CFXMLTreeCreateFromData(allocator CFAllocatorRef, xmlData CFDataRef, dataSource CFURLRef, parseOptions uint64, versionOfNodes int) CFXMLTreeRef
CFXMLTreeCreateFromData parses the given XML data and returns the resulting CFXMLTree object.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLTreeCreateFromData
func CFXMLTreeCreateFromDataWithError
deprecated
func CFXMLTreeCreateFromDataWithError(allocator CFAllocatorRef, xmlData CFDataRef, dataSource CFURLRef, parseOptions uint64, versionOfNodes int, errorDict *CFDictionaryRef) CFXMLTreeRef
CFXMLTreeCreateFromDataWithError parses the given XML data and returns the resulting CFXMLTree object and any error information.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLTreeCreateFromDataWithError
func CFXMLTreeCreateWithDataFromURL
deprecated
func CFXMLTreeCreateWithDataFromURL(allocator CFAllocatorRef, dataSource CFURLRef, parseOptions uint64, versionOfNodes int) CFXMLTreeRef
CFXMLTreeCreateWithDataFromURL creates a new CFXMLTree object by loading the data to be parsed directly from a data source.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLTreeCreateWithDataFromURL
func CFXMLTreeCreateWithNode
deprecated
func CFXMLTreeCreateWithNode(allocator CFAllocatorRef, node unsafe.Pointer) CFXMLTreeRef
CFXMLTreeCreateWithNode creates a childless, parentless CFXMLTree object node for a CFXMLNode object.
Deprecated: Deprecated since macOS 10.8.
See: https://developer.apple.com/documentation/CoreFoundation/CFXMLTreeCreateWithNode
type CGAffineTransform ¶
CGAffineTransform
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CGAffineTransform
type CGAffineTransformComponents ¶
type CGAffineTransformComponents struct {
Scale CGSize
HorizontalShear float64
Rotation float64
Translation CGVector
}
CGAffineTransformComponents
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CGAffineTransformComponents
type CGFloat ¶
type CGFloat = float64
CGFloat is the basic type for all floating-point values.
See: https://developer.apple.com/documentation/CoreFoundation/CGFloat-c.typealias
type CGPoint ¶
CGPoint
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CGPoint
type CGRect ¶
CGRect
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CGRect
type CGRectEdge ¶
type CGRectEdge int
See: https://developer.apple.com/documentation/CoreFoundation/CGRectEdge
const ( CGRectMaxXEdge CGRectEdge = 2 CGRectMinXEdge CGRectEdge = 0 CGRectMinYEdge CGRectEdge = 1 )
func (CGRectEdge) String ¶
func (e CGRectEdge) String() string
type CGSize ¶
CGSize - A structure that contains width and height values.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CGSize
type CGVector ¶
type CGVector struct {
Dx float64 // The x component of the vector.
Dy float64 // The y component of the vector.
}
CGVector - A structure that contains a two-dimensional vector.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CGVector
type HRESULT ¶
type HRESULT = int32
See: https://developer.apple.com/documentation/CoreFoundation/HRESULT
type IUnknownVTbl ¶
type IUnknownVTbl struct {
AddRef func(unsafe.Pointer) uint
QueryInterface func(unsafe.Pointer, CFUUIDBytes, unsafe.Pointer) int
Release func(unsafe.Pointer) uint
}
IUnknownVTbl
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/IUnknownVTbl
type KCFBundleExecutableArchitecture ¶
type KCFBundleExecutableArchitecture uint
const ( KCFBundleExecutableArchitectureARM64 KCFBundleExecutableArchitecture = 16777228 // KCFBundleExecutableArchitectureI386: Specifies the 32-bit Intel architecture. KCFBundleExecutableArchitectureI386 KCFBundleExecutableArchitecture = 7 // KCFBundleExecutableArchitecturePPC: Specifies the 32-bit PowerPC architecture. KCFBundleExecutableArchitecturePPC KCFBundleExecutableArchitecture = 18 // KCFBundleExecutableArchitecturePPC64: Specifies the 64-bit PowerPC architecture. KCFBundleExecutableArchitecturePPC64 KCFBundleExecutableArchitecture = 16777234 // KCFBundleExecutableArchitectureX86_64: Specifies the 64-bit Intel architecture. KCFBundleExecutableArchitectureX86_64 KCFBundleExecutableArchitecture = 16777223 )
func (KCFBundleExecutableArchitecture) String ¶
func (e KCFBundleExecutableArchitecture) String() string
type KCFFileDescriptor ¶
type KCFFileDescriptor uint
const ( // KCFFileDescriptorReadCallBack: Identifies the read callback. KCFFileDescriptorReadCallBack KCFFileDescriptor = 1 // KCFFileDescriptorWriteCallBack: Identifies the write callback. KCFFileDescriptorWriteCallBack KCFFileDescriptor = 2 )
func (KCFFileDescriptor) String ¶
func (e KCFFileDescriptor) String() string
type KCFMessagePort ¶
type KCFMessagePort int
const ( // KCFMessagePortBecameInvalidError: The message port was invalidated. KCFMessagePortBecameInvalidError KCFMessagePort = -5 // KCFMessagePortIsInvalid: The message could not be sent because the message port is invalid. KCFMessagePortIsInvalid KCFMessagePort = -3 // KCFMessagePortReceiveTimeout: No reply was received before the receive timeout. KCFMessagePortReceiveTimeout KCFMessagePort = -2 // KCFMessagePortSendTimeout: The message could not be sent before the send timeout. KCFMessagePortSendTimeout KCFMessagePort = -1 // KCFMessagePortSuccess: The message was successfully sent and, if a reply was expected, a reply was received. KCFMessagePortSuccess KCFMessagePort = 0 // KCFMessagePortTransportError: An error occurred trying to send the message. KCFMessagePortTransportError KCFMessagePort = -4 )
func (KCFMessagePort) String ¶
func (e KCFMessagePort) String() string
type KCFNotification ¶
type KCFNotification uint
const ( // KCFNotificationDeliverImmediately: Delivers the notification immediately. KCFNotificationDeliverImmediately KCFNotification = 1 // KCFNotificationPostToAllSessions: Delivers the notification to all sessions. KCFNotificationPostToAllSessions KCFNotification = 2 )
func (KCFNotification) String ¶
func (e KCFNotification) String() string
type KCFPropertyList ¶
type KCFPropertyList uint
const ( // KCFPropertyListReadCorruptError: Signifies an error parsing a property list. KCFPropertyListReadCorruptError KCFPropertyList = 3840 // KCFPropertyListReadStreamError: Signifies a stream error reading a property list. KCFPropertyListReadStreamError KCFPropertyList = 3842 // KCFPropertyListReadUnknownVersionError: Signifies the version number in the property list is unknown. KCFPropertyListReadUnknownVersionError KCFPropertyList = 3841 // KCFPropertyListWriteStreamError: Signifies a stream error writing a property list. KCFPropertyListWriteStreamError KCFPropertyList = 3851 )
func (KCFPropertyList) String ¶
func (e KCFPropertyList) String() string
type KCFSocket ¶
type KCFSocket uint
const ( // KCFSocketAutomaticallyReenableAcceptCallBack: # Discussion KCFSocketAutomaticallyReenableAcceptCallBack KCFSocket = 2 // KCFSocketAutomaticallyReenableDataCallBack: # Discussion KCFSocketAutomaticallyReenableDataCallBack KCFSocket = 3 // KCFSocketAutomaticallyReenableReadCallBack: # Discussion KCFSocketAutomaticallyReenableReadCallBack KCFSocket = 1 // KCFSocketAutomaticallyReenableWriteCallBack: # Discussion KCFSocketAutomaticallyReenableWriteCallBack KCFSocket = 8 // KCFSocketCloseOnInvalidate: When enabled using CFSocketSetSocketFlags(_:_:), the native socket associated with a CFSocket object is closed when the CFSocket object is invalidated. KCFSocketCloseOnInvalidate KCFSocket = 128 // KCFSocketLeaveErrors: # Discussion KCFSocketLeaveErrors KCFSocket = 64 )
type KCFStringTokenizer ¶
type KCFStringTokenizer uint
const ( // KCFStringTokenizerAttributeLanguage: Tells the tokenizer to prepare the language (specified as an RFC 3066bis string) when it tokenizes the string. KCFStringTokenizerAttributeLanguage KCFStringTokenizer = 131072 // KCFStringTokenizerAttributeLatinTranscription: Used with `kCFStringTokenizerUnitWord`, tells the tokenizer to prepare the Latin transcription when it tokenizes the string. KCFStringTokenizerAttributeLatinTranscription KCFStringTokenizer = 65536 // KCFStringTokenizerUnitLineBreak: Specifies that a string should be tokenized by line break. KCFStringTokenizerUnitLineBreak KCFStringTokenizer = 3 // KCFStringTokenizerUnitParagraph: Specifies that a string should be tokenized by paragraph. KCFStringTokenizerUnitParagraph KCFStringTokenizer = 2 // KCFStringTokenizerUnitSentence: Specifies that a string should be tokenized by sentence. KCFStringTokenizerUnitSentence KCFStringTokenizer = 1 // KCFStringTokenizerUnitWord: Specifies that a string should be tokenized by word. KCFStringTokenizerUnitWord KCFStringTokenizer = 0 // KCFStringTokenizerUnitWordBoundary: Specifies that a string should be tokenized by locale-sensitive word boundary. KCFStringTokenizerUnitWordBoundary KCFStringTokenizer = 4 )
func (KCFStringTokenizer) String ¶
func (e KCFStringTokenizer) String() string
type KCFUserNotification ¶
type KCFUserNotification uint
const ( // KCFUserNotificationAlternateResponse: The alternate button was pressed. KCFUserNotificationAlternateResponse KCFUserNotification = 1 // KCFUserNotificationCancelResponse: No button was pressed and the notification timed out. KCFUserNotificationCancelResponse KCFUserNotification = 3 // KCFUserNotificationCautionAlertLevel: The notification is somewhat serious. KCFUserNotificationCautionAlertLevel KCFUserNotification = 2 // KCFUserNotificationDefaultResponse: The default button was pressed. KCFUserNotificationDefaultResponse KCFUserNotification = 0 // KCFUserNotificationNoDefaultButtonFlag: Displays the dialog without the default, alternate, or other buttons. KCFUserNotificationNoDefaultButtonFlag KCFUserNotification = 32 // KCFUserNotificationNoteAlertLevel: The notification is not very serious. KCFUserNotificationNoteAlertLevel KCFUserNotification = 1 // KCFUserNotificationOtherResponse: The third button was pressed. KCFUserNotificationOtherResponse KCFUserNotification = 2 // KCFUserNotificationPlainAlertLevel: The notification is not serious. KCFUserNotificationPlainAlertLevel KCFUserNotification = 3 // KCFUserNotificationStopAlertLevel: The notification is very serious. KCFUserNotificationStopAlertLevel KCFUserNotification = 0 // KCFUserNotificationUseRadioButtonsFlag: Creates a group of radio buttons instead of checkboxes for the elements in the kCFUserNotificationCheckBoxTitlesKey array in the user notification’s description dictionary. KCFUserNotificationUseRadioButtonsFlag KCFUserNotification = 64 )
func (KCFUserNotification) String ¶
func (e KCFUserNotification) String() string
type LPVOID ¶
type LPVOID = string
See: https://developer.apple.com/documentation/CoreFoundation/LPVOID
type REFIID ¶
type REFIID = CFUUIDBytes
See: https://developer.apple.com/documentation/CoreFoundation/REFIID
type ULONG ¶
type ULONG = uint32
See: https://developer.apple.com/documentation/CoreFoundation/ULONG