corefoundation

package
v0.6.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 9 Imported by: 4 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Opaque Types

Variables

Functions

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
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
	// KCFStreamSocketSecurityLevelSSLv2 is specifies that SSL version 2 be set as the security protocol for a socket stream.
	//
	// Deprecated: Deprecated since macOS 10.12.
	//
	// See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamSocketSecurityLevelSSLv2
	KCFStreamSocketSecurityLevelSSLv2 string
	// KCFStreamSocketSecurityLevelSSLv3 is specifies that SSL version 3 be set as the security protocol for a socket stream pair.
	//
	// Deprecated: Deprecated since macOS 10.12.
	//
	// See: https://developer.apple.com/documentation/CoreFoundation/kCFStreamSocketSecurityLevelSSLv3
	KCFStreamSocketSecurityLevelSSLv3 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
	// KCFURLCustomIconKey is key for the icon stored with the resource, returned as a [CGImageRef] object, or [NULL] if the resource has no custom icon.
	//
	// Deprecated: Deprecated since macOS 10.12. Use NSURLCustomIconKey
	//
	// See: https://developer.apple.com/documentation/CoreFoundation/kCFURLCustomIconKey
	KCFURLCustomIconKey string
	// See: https://developer.apple.com/documentation/CoreFoundation/kCFURLDirectoryEntryCountKey
	KCFURLDirectoryEntryCountKey string
	// See: https://developer.apple.com/documentation/CoreFoundation/kCFURLDocumentIdentifierKey
	KCFURLDocumentIdentifierKey string
	// KCFURLEffectiveIconKey is key for the resource’s typical icon, returned as a [CGImageRef] object.
	//
	// Deprecated: Deprecated since macOS 10.12. Use NSURLEffectiveIconKey
	//
	// See: https://developer.apple.com/documentation/CoreFoundation/kCFURLEffectiveIconKey
	KCFURLEffectiveIconKey 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
	// KCFURLLabelColorKey is key for the resource’s label color, returned as a [CFColorRef] object, or [NULL] if the resource has no label color.
	//
	// Deprecated: Deprecated since macOS 10.12. Use NSURLLabelColorKey
	//
	// See: https://developer.apple.com/documentation/CoreFoundation/kCFURLLabelColorKey
	KCFURLLabelColorKey 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
	// See: https://developer.apple.com/documentation/CoreFoundation/kCFURLMayShareFileContentKey
	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 BindFunc

func BindFunc(fptr any, name string) (err error)

BindFunc binds the CoreFoundation symbol name into fptr, which must be a pointer to a func variable.

The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.

func CFAbsoluteTimeGetDayOfWeek deprecated

func CFAbsoluteTimeGetDayOfWeek(at CFAbsoluteTime, tz CFTimeZoneRef) int32

CFAbsoluteTimeGetDayOfWeek returns an integer representing the day of the week indicated by the specified absolute time.

It panics if CFAbsoluteTimeGetDayOfWeek is unavailable at run time; use TryCFAbsoluteTimeGetDayOfWeek to get an error instead.

Deprecated: Deprecated since macOS 10.10. Use CFCalendar or NSCalendar API instead

See: https://developer.apple.com/documentation/CoreFoundation/CFAbsoluteTimeGetDayOfWeek(_:_:)

func CFAbsoluteTimeGetDayOfYear deprecated

func CFAbsoluteTimeGetDayOfYear(at CFAbsoluteTime, tz CFTimeZoneRef) int32

CFAbsoluteTimeGetDayOfYear returns an integer representing the day of the year indicated by the specified absolute time.

It panics if CFAbsoluteTimeGetDayOfYear is unavailable at run time; use TryCFAbsoluteTimeGetDayOfYear to get an error instead.

Deprecated: Deprecated since macOS 10.10. Use CFCalendar or NSCalendar API instead

See: https://developer.apple.com/documentation/CoreFoundation/CFAbsoluteTimeGetDayOfYear(_:_:)

func CFAbsoluteTimeGetWeekOfYear deprecated

func CFAbsoluteTimeGetWeekOfYear(at CFAbsoluteTime, tz CFTimeZoneRef) int32

CFAbsoluteTimeGetWeekOfYear returns an integer representing the week of the year indicated by the specified absolute time.

It panics if CFAbsoluteTimeGetWeekOfYear is unavailable at run time; use TryCFAbsoluteTimeGetWeekOfYear to get an error instead.

Deprecated: Deprecated since macOS 10.10. Use CFCalendar or NSCalendar API instead

See: https://developer.apple.com/documentation/CoreFoundation/CFAbsoluteTimeGetWeekOfYear(_:_:)

func CFAllocatorAllocate

func CFAllocatorAllocate(allocator CFAllocatorRef, size CFIndex, hint CFOptionFlags) unsafe.Pointer

CFAllocatorAllocate allocates memory using the specified allocator.

It panics if CFAllocatorAllocate is unavailable at run time; use TryCFAllocatorAllocate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorAllocate(_:_:_:)

func CFAllocatorAllocateBytes

func CFAllocatorAllocateBytes(allocator CFAllocatorRef, size CFIndex, hint CFOptionFlags) unsafe.Pointer

CFAllocatorAllocateBytes.

It panics if CFAllocatorAllocateBytes is unavailable at run time; use TryCFAllocatorAllocateBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorAllocateBytes(_:_:_:)

func CFAllocatorAllocateTyped

func CFAllocatorAllocateTyped(allocator CFAllocatorRef, size CFIndex, descriptor CFAllocatorTypeID, hint CFOptionFlags) unsafe.Pointer

CFAllocatorAllocateTyped.

It panics if CFAllocatorAllocateTyped is unavailable at run time; use TryCFAllocatorAllocateTyped to get an error instead.

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.

It panics if CFAllocatorDeallocate is unavailable at run time; use TryCFAllocatorDeallocate to get an error instead.

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.

It panics if CFAllocatorGetContext is unavailable at run time; use TryCFAllocatorGetContext to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorGetContext(_:_:)

func CFAllocatorReallocate

func CFAllocatorReallocate(allocator CFAllocatorRef, ptr unsafe.Pointer, newsize CFIndex, hint CFOptionFlags) unsafe.Pointer

CFAllocatorReallocate reallocates memory using the specified allocator.

It panics if CFAllocatorReallocate is unavailable at run time; use TryCFAllocatorReallocate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorReallocate(_:_:_:_:)

func CFAllocatorReallocateBytes

func CFAllocatorReallocateBytes(allocator CFAllocatorRef, ptr unsafe.Pointer, newsize CFIndex, hint CFOptionFlags) unsafe.Pointer

CFAllocatorReallocateBytes.

It panics if CFAllocatorReallocateBytes is unavailable at run time; use TryCFAllocatorReallocateBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorReallocateBytes(_:_:_:_:)

func CFAllocatorReallocateTyped

func CFAllocatorReallocateTyped(allocator CFAllocatorRef, ptr unsafe.Pointer, newsize CFIndex, descriptor CFAllocatorTypeID, hint CFOptionFlags) unsafe.Pointer

CFAllocatorReallocateTyped.

It panics if CFAllocatorReallocateTyped is unavailable at run time; use TryCFAllocatorReallocateTyped to get an error instead.

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.

It panics if CFAllocatorSetDefault is unavailable at run time; use TryCFAllocatorSetDefault to get an error instead.

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.

It panics if CFArrayAppendArray is unavailable at run time; use TryCFArrayAppendArray to get an error instead.

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.

It panics if CFArrayAppendValue is unavailable at run time; use TryCFArrayAppendValue to get an error instead.

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.

It panics if CFArrayApplyFunction is unavailable at run time; use TryCFArrayApplyFunction to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayApplyFunction(_:_:_:_:)

func CFArrayContainsValue

func CFArrayContainsValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) bool

CFArrayContainsValue reports whether or not a value is in an array.

It panics if CFArrayContainsValue is unavailable at run time; use TryCFArrayContainsValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayContainsValue(_:_:_:)

func CFArrayExchangeValuesAtIndices

func CFArrayExchangeValuesAtIndices(theArray CFMutableArrayRef, idx1 CFIndex, idx2 CFIndex)

CFArrayExchangeValuesAtIndices exchanges the values at two indices of an array.

It panics if CFArrayExchangeValuesAtIndices is unavailable at run time; use TryCFArrayExchangeValuesAtIndices to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayExchangeValuesAtIndices(_:_:_:)

func CFArrayGetValueAtIndex

func CFArrayGetValueAtIndex(theArray CFArrayRef, idx CFIndex) unsafe.Pointer

CFArrayGetValueAtIndex retrieves a value at a given index.

It panics if CFArrayGetValueAtIndex is unavailable at run time; use TryCFArrayGetValueAtIndex to get an error instead.

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.

It panics if CFArrayGetValues is unavailable at run time; use TryCFArrayGetValues to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetValues(_:_:_:)

func CFArrayInsertValueAtIndex

func CFArrayInsertValueAtIndex(theArray CFMutableArrayRef, idx CFIndex, value unsafe.Pointer)

CFArrayInsertValueAtIndex inserts a value into an array at a given index.

It panics if CFArrayInsertValueAtIndex is unavailable at run time; use TryCFArrayInsertValueAtIndex to get an error instead.

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.

It panics if CFArrayRemoveAllValues is unavailable at run time; use TryCFArrayRemoveAllValues to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayRemoveAllValues(_:)

func CFArrayRemoveValueAtIndex

func CFArrayRemoveValueAtIndex(theArray CFMutableArrayRef, idx CFIndex)

CFArrayRemoveValueAtIndex removes the value at a given index from an array.

It panics if CFArrayRemoveValueAtIndex is unavailable at run time; use TryCFArrayRemoveValueAtIndex to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayRemoveValueAtIndex(_:_:)

func CFArrayReplaceValues

func CFArrayReplaceValues(theArray CFMutableArrayRef, range_ CFRange, newValues unsafe.Pointer, newCount CFIndex)

CFArrayReplaceValues replaces a range of values in an array.

It panics if CFArrayReplaceValues is unavailable at run time; use TryCFArrayReplaceValues to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayReplaceValues(_:_:_:_:)

func CFArraySetValueAtIndex

func CFArraySetValueAtIndex(theArray CFMutableArrayRef, idx CFIndex, value unsafe.Pointer)

CFArraySetValueAtIndex changes the value at a given index in an array.

It panics if CFArraySetValueAtIndex is unavailable at run time; use TryCFArraySetValueAtIndex to get an error instead.

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.

It panics if CFArraySortValues is unavailable at run time; use TryCFArraySortValues to get an error instead.

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.

It panics if CFAttributedStringBeginEditing is unavailable at run time; use TryCFAttributedStringBeginEditing to get an error instead.

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.

It panics if CFAttributedStringEndEditing is unavailable at run time; use TryCFAttributedStringEndEditing to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringEndEditing(_:)

func CFAttributedStringGetBidiLevelsAndResolvedDirections

func CFAttributedStringGetBidiLevelsAndResolvedDirections(attributedString CFAttributedStringRef, range_ CFRange, baseDirection int8, bidiLevels []byte, baseDirections []byte) bool

CFAttributedStringGetBidiLevelsAndResolvedDirections.

It panics if CFAttributedStringGetBidiLevelsAndResolvedDirections is unavailable at run time; use TryCFAttributedStringGetBidiLevelsAndResolvedDirections to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetBidiLevelsAndResolvedDirections(_:_:_:_:_:)

func CFAttributedStringGetStatisticalWritingDirections

func CFAttributedStringGetStatisticalWritingDirections(attributedString CFAttributedStringRef, range_ CFRange, baseDirection int8, bidiLevels []byte, baseDirections []byte) bool

CFAttributedStringGetStatisticalWritingDirections.

It panics if CFAttributedStringGetStatisticalWritingDirections is unavailable at run time; use TryCFAttributedStringGetStatisticalWritingDirections to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetStatisticalWritingDirections(_:_:_:_:_:)

func CFAttributedStringRemoveAttribute

func CFAttributedStringRemoveAttribute(aStr CFMutableAttributedStringRef, range_ CFRange, attrName CFStringRef)

CFAttributedStringRemoveAttribute removes the value of a single attribute over a specified range.

It panics if CFAttributedStringRemoveAttribute is unavailable at run time; use TryCFAttributedStringRemoveAttribute to get an error instead.

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.

It panics if CFAttributedStringReplaceAttributedString is unavailable at run time; use TryCFAttributedStringReplaceAttributedString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringReplaceAttributedString(_:_:_:)

func CFAttributedStringReplaceString

func CFAttributedStringReplaceString(aStr CFMutableAttributedStringRef, range_ CFRange, replacement CFStringRef)

CFAttributedStringReplaceString modifies the string of an attributed string.

It panics if CFAttributedStringReplaceString is unavailable at run time; use TryCFAttributedStringReplaceString to get an error instead.

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.

It panics if CFAttributedStringSetAttribute is unavailable at run time; use TryCFAttributedStringSetAttribute to get an error instead.

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.

It panics if CFAttributedStringSetAttributes is unavailable at run time; use TryCFAttributedStringSetAttributes to get an error instead.

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.

It panics if CFBagAddValue is unavailable at run time; use TryCFBagAddValue to get an error instead.

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.

It panics if CFBagApplyFunction is unavailable at run time; use TryCFBagApplyFunction to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBagApplyFunction(_:_:_:)

func CFBagContainsValue

func CFBagContainsValue(theBag CFBagRef, value unsafe.Pointer) bool

CFBagContainsValue reports whether or not a value is in a bag.

It panics if CFBagContainsValue is unavailable at run time; use TryCFBagContainsValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBagContainsValue(_:_:)

func CFBagGetValue

func CFBagGetValue(theBag CFBagRef, value unsafe.Pointer) unsafe.Pointer

CFBagGetValue returns a requested value from a bag.

It panics if CFBagGetValue is unavailable at run time; use TryCFBagGetValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBagGetValue(_:_:)

func CFBagGetValueIfPresent

func CFBagGetValueIfPresent(theBag CFBagRef, candidate unsafe.Pointer, value unsafe.Pointer) bool

CFBagGetValueIfPresent reports whether or not a value is in a bag, and returns that value indirectly if it exists.

It panics if CFBagGetValueIfPresent is unavailable at run time; use TryCFBagGetValueIfPresent to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBagGetValueIfPresent(_:_:_:)

func CFBagGetValues

func CFBagGetValues(theBag CFBagRef, values unsafe.Pointer)

CFBagGetValues fills a buffer with values from a bag.

It panics if CFBagGetValues is unavailable at run time; use TryCFBagGetValues to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBagGetValues(_:_:)

func CFBagRemoveAllValues

func CFBagRemoveAllValues(theBag CFMutableBagRef)

CFBagRemoveAllValues removes all values from a mutable bag.

It panics if CFBagRemoveAllValues is unavailable at run time; use TryCFBagRemoveAllValues to get an error instead.

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.

It panics if CFBagRemoveValue is unavailable at run time; use TryCFBagRemoveValue to get an error instead.

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.

It panics if CFBagReplaceValue is unavailable at run time; use TryCFBagReplaceValue to get an error instead.

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.

It panics if CFBagSetValue is unavailable at run time; use TryCFBagSetValue to get an error instead.

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.

It panics if CFBinaryHeapAddValue is unavailable at run time; use TryCFBinaryHeapAddValue to get an error instead.

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.

It panics if CFBinaryHeapApplyFunction is unavailable at run time; use TryCFBinaryHeapApplyFunction to get an error instead.

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.

It panics if CFBinaryHeapContainsValue is unavailable at run time; use TryCFBinaryHeapContainsValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapContainsValue(_:_:)

func CFBinaryHeapGetMinimum

func CFBinaryHeapGetMinimum(heap CFBinaryHeapRef) unsafe.Pointer

CFBinaryHeapGetMinimum returns the minimum value in a binary heap.

It panics if CFBinaryHeapGetMinimum is unavailable at run time; use TryCFBinaryHeapGetMinimum to get an error instead.

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.

It panics if CFBinaryHeapGetMinimumIfPresent is unavailable at run time; use TryCFBinaryHeapGetMinimumIfPresent to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapGetMinimumIfPresent(_:_:)

func CFBinaryHeapGetValues

func CFBinaryHeapGetValues(heap CFBinaryHeapRef, values unsafe.Pointer)

CFBinaryHeapGetValues copies all the values from a binary heap into a sorted C array.

It panics if CFBinaryHeapGetValues is unavailable at run time; use TryCFBinaryHeapGetValues to get an error instead.

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.

It panics if CFBinaryHeapRemoveAllValues is unavailable at run time; use TryCFBinaryHeapRemoveAllValues to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapRemoveAllValues(_:)

func CFBinaryHeapRemoveMinimumValue

func CFBinaryHeapRemoveMinimumValue(heap CFBinaryHeapRef)

CFBinaryHeapRemoveMinimumValue removes the minimum value from a binary heap.

It panics if CFBinaryHeapRemoveMinimumValue is unavailable at run time; use TryCFBinaryHeapRemoveMinimumValue to get an error instead.

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.

It panics if CFBitVectorContainsBit is unavailable at run time; use TryCFBitVectorContainsBit to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorContainsBit(_:_:_:)

func CFBitVectorFlipBitAtIndex

func CFBitVectorFlipBitAtIndex(bv CFMutableBitVectorRef, idx CFIndex)

CFBitVectorFlipBitAtIndex flips a bit value in a bit vector.

It panics if CFBitVectorFlipBitAtIndex is unavailable at run time; use TryCFBitVectorFlipBitAtIndex to get an error instead.

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.

It panics if CFBitVectorFlipBits is unavailable at run time; use TryCFBitVectorFlipBits to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorFlipBits(_:_:)

func CFBitVectorGetBits

func CFBitVectorGetBits(bv CFBitVectorRef, range_ CFRange, bytes []byte)

CFBitVectorGetBits returns the bit values in a range of indices in a bit vector.

It panics if CFBitVectorGetBits is unavailable at run time; use TryCFBitVectorGetBits to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetBits(_:_:_:)

func CFBitVectorSetAllBits

func CFBitVectorSetAllBits(bv CFMutableBitVectorRef, value CFBit)

CFBitVectorSetAllBits sets all bits in a bit vector to a particular value.

It panics if CFBitVectorSetAllBits is unavailable at run time; use TryCFBitVectorSetAllBits to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorSetAllBits(_:_:)

func CFBitVectorSetBitAtIndex

func CFBitVectorSetBitAtIndex(bv CFMutableBitVectorRef, idx CFIndex, value CFBit)

CFBitVectorSetBitAtIndex sets the value of a particular bit in a bit vector.

It panics if CFBitVectorSetBitAtIndex is unavailable at run time; use TryCFBitVectorSetBitAtIndex to get an error instead.

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.

It panics if CFBitVectorSetBits is unavailable at run time; use TryCFBitVectorSetBits to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorSetBits(_:_:_:)

func CFBitVectorSetCount

func CFBitVectorSetCount(bv CFMutableBitVectorRef, count CFIndex)

CFBitVectorSetCount changes the size of a mutable bit vector.

It panics if CFBitVectorSetCount is unavailable at run time; use TryCFBitVectorSetCount to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorSetCount(_:_:)

func CFBooleanGetValue

func CFBooleanGetValue(boolean CFBooleanRef) bool

CFBooleanGetValue returns the value of a CFBoolean object as a standard C type [Boolean].

It panics if CFBooleanGetValue is unavailable at run time; use TryCFBooleanGetValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBooleanGetValue(_:)

func CFBundleCloseBundleResourceMap deprecated

func CFBundleCloseBundleResourceMap(bundle CFBundleRef, refNum CFBundleRefNum)

CFBundleCloseBundleResourceMap closes an open resource map for a bundle.

It panics if CFBundleCloseBundleResourceMap is unavailable at run time; use TryCFBundleCloseBundleResourceMap to get an error instead.

Deprecated: Deprecated since macOS 10.15. The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCloseBundleResourceMap(_:_:)

func CFBundleGetDataPointerForName

func CFBundleGetDataPointerForName(bundle CFBundleRef, symbolName CFStringRef) unsafe.Pointer

CFBundleGetDataPointerForName returns a data pointer to a symbol of the given name.

It panics if CFBundleGetDataPointerForName is unavailable at run time; use TryCFBundleGetDataPointerForName to get an error instead.

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.

It panics if CFBundleGetDataPointersForNames is unavailable at run time; use TryCFBundleGetDataPointersForNames to get an error instead.

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.

It panics if CFBundleGetFunctionPointerForName is unavailable at run time; use TryCFBundleGetFunctionPointerForName to get an error instead.

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.

It panics if CFBundleGetFunctionPointersForNames is unavailable at run time; use TryCFBundleGetFunctionPointersForNames to get an error instead.

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.

It panics if CFBundleGetPackageInfo is unavailable at run time; use TryCFBundleGetPackageInfo to get an error instead.

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.

It panics if CFBundleGetPackageInfoInDirectory is unavailable at run time; use TryCFBundleGetPackageInfoInDirectory to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetPackageInfoInDirectory(_:_:_:)

func CFBundleGetVersionNumber

func CFBundleGetVersionNumber(bundle CFBundleRef) uint32

CFBundleGetVersionNumber returns a bundle’s version number.

It panics if CFBundleGetVersionNumber is unavailable at run time; use TryCFBundleGetVersionNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetVersionNumber(_:)

func CFBundleIsArchitectureLoadable

func CFBundleIsArchitectureLoadable(arch int32) bool

CFBundleIsArchitectureLoadable.

It panics if CFBundleIsArchitectureLoadable is unavailable at run time; use TryCFBundleIsArchitectureLoadable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleIsArchitectureLoadable(_:)

func CFBundleIsExecutableLoadable

func CFBundleIsExecutableLoadable(bundle CFBundleRef) bool

CFBundleIsExecutableLoadable.

It panics if CFBundleIsExecutableLoadable is unavailable at run time; use TryCFBundleIsExecutableLoadable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleIsExecutableLoadable(_:)

func CFBundleIsExecutableLoadableForURL

func CFBundleIsExecutableLoadableForURL(url CFURLRef) bool

CFBundleIsExecutableLoadableForURL.

It panics if CFBundleIsExecutableLoadableForURL is unavailable at run time; use TryCFBundleIsExecutableLoadableForURL to get an error instead.

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.

It panics if CFBundleIsExecutableLoaded is unavailable at run time; use TryCFBundleIsExecutableLoaded to get an error instead.

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.

It panics if CFBundleLoadExecutable is unavailable at run time; use TryCFBundleLoadExecutable to get an error instead.

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.

It panics if CFBundleLoadExecutableAndReturnError is unavailable at run time; use TryCFBundleLoadExecutableAndReturnError to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleLoadExecutableAndReturnError(_:_:)

func CFBundleOpenBundleResourceFiles deprecated

func CFBundleOpenBundleResourceFiles(bundle CFBundleRef, refNum *CFBundleRefNum, localizedRefNum *CFBundleRefNum) int32

CFBundleOpenBundleResourceFiles opens the non-localized and localized resource files (if any) for a bundle in separate resource maps.

It panics if CFBundleOpenBundleResourceFiles is unavailable at run time; use TryCFBundleOpenBundleResourceFiles to get an error instead.

Deprecated: Deprecated since macOS 10.15. The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleOpenBundleResourceFiles(_:_:_:)

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.

It panics if CFBundlePreflightExecutable is unavailable at run time; use TryCFBundlePreflightExecutable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundlePreflightExecutable(_:_:)

func CFBundleUnloadExecutable

func CFBundleUnloadExecutable(bundle CFBundleRef)

CFBundleUnloadExecutable unloads the main executable for the specified bundle.

It panics if CFBundleUnloadExecutable is unavailable at run time; use TryCFBundleUnloadExecutable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleUnloadExecutable(_:)

func CFCalendarAddComponents

func CFCalendarAddComponents(calendar CFCalendarRef, at *CFAbsoluteTime, options CFOptionFlags, componentDesc string) bool

CFCalendarAddComponents computes the absolute time when specified components are added to a given absolute time.

It panics if CFCalendarAddComponents is unavailable at run time; use TryCFCalendarAddComponents to get an error instead.

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.

It panics if CFCalendarComposeAbsoluteTime is unavailable at run time; use TryCFCalendarComposeAbsoluteTime to get an error instead.

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.

It panics if CFCalendarDecomposeAbsoluteTime is unavailable at run time; use TryCFCalendarDecomposeAbsoluteTime to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarDecomposeAbsoluteTime

func CFCalendarGetComponentDifference

func CFCalendarGetComponentDifference(calendar CFCalendarRef, startingAT CFAbsoluteTime, resultAT CFAbsoluteTime, options CFOptionFlags, componentDesc string) bool

CFCalendarGetComponentDifference computes the difference between the two absolute times, in terms of specified calendrical components.

It panics if CFCalendarGetComponentDifference is unavailable at run time; use TryCFCalendarGetComponentDifference to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetComponentDifference

func CFCalendarGetTimeRangeOfUnit

func CFCalendarGetTimeRangeOfUnit(calendar CFCalendarRef, unit CFCalendarUnit, at CFAbsoluteTime, startp *CFAbsoluteTime, tip *CFTimeInterval) bool

CFCalendarGetTimeRangeOfUnit returns by reference the start time and duration of a given calendar unit that contains a given absolute time.

It panics if CFCalendarGetTimeRangeOfUnit is unavailable at run time; use TryCFCalendarGetTimeRangeOfUnit to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetTimeRangeOfUnit(_:_:_:_:_:)

func CFCalendarSetFirstWeekday

func CFCalendarSetFirstWeekday(calendar CFCalendarRef, wkdy CFIndex)

CFCalendarSetFirstWeekday sets the first weekday for a calendar.

It panics if CFCalendarSetFirstWeekday is unavailable at run time; use TryCFCalendarSetFirstWeekday to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarSetFirstWeekday(_:_:)

func CFCalendarSetLocale

func CFCalendarSetLocale(calendar CFCalendarRef, locale CFLocaleRef)

CFCalendarSetLocale sets the locale for a calendar.

It panics if CFCalendarSetLocale is unavailable at run time; use TryCFCalendarSetLocale to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarSetLocale(_:_:)

func CFCalendarSetMinimumDaysInFirstWeek

func CFCalendarSetMinimumDaysInFirstWeek(calendar CFCalendarRef, mwd CFIndex)

CFCalendarSetMinimumDaysInFirstWeek sets the minimum number of days in the first week of a specified calendar.

It panics if CFCalendarSetMinimumDaysInFirstWeek is unavailable at run time; use TryCFCalendarSetMinimumDaysInFirstWeek to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarSetMinimumDaysInFirstWeek(_:_:)

func CFCalendarSetTimeZone

func CFCalendarSetTimeZone(calendar CFCalendarRef, tz CFTimeZoneRef)

CFCalendarSetTimeZone sets the time zone for a calendar.

It panics if CFCalendarSetTimeZone is unavailable at run time; use TryCFCalendarSetTimeZone to get an error instead.

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.

It panics if CFCharacterSetAddCharactersInRange is unavailable at run time; use TryCFCharacterSetAddCharactersInRange to get an error instead.

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.

It panics if CFCharacterSetAddCharactersInString is unavailable at run time; use TryCFCharacterSetAddCharactersInString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetAddCharactersInString(_:_:)

func CFCharacterSetHasMemberInPlane

func CFCharacterSetHasMemberInPlane(theSet CFCharacterSetRef, thePlane CFIndex) bool

CFCharacterSetHasMemberInPlane reports whether or not a character set contains at least one member character in the specified plane.

It panics if CFCharacterSetHasMemberInPlane is unavailable at run time; use TryCFCharacterSetHasMemberInPlane to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetHasMemberInPlane(_:_:)

func CFCharacterSetIntersect

func CFCharacterSetIntersect(theSet CFMutableCharacterSetRef, theOtherSet CFCharacterSetRef)

CFCharacterSetIntersect forms an intersection of two character sets.

It panics if CFCharacterSetIntersect is unavailable at run time; use TryCFCharacterSetIntersect to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetIntersect(_:_:)

func CFCharacterSetInvert

func CFCharacterSetInvert(theSet CFMutableCharacterSetRef)

CFCharacterSetInvert inverts the content of a given character set.

It panics if CFCharacterSetInvert is unavailable at run time; use TryCFCharacterSetInvert to get an error instead.

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.

It panics if CFCharacterSetIsCharacterMember is unavailable at run time; use TryCFCharacterSetIsCharacterMember to get an error instead.

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.

It panics if CFCharacterSetIsLongCharacterMember is unavailable at run time; use TryCFCharacterSetIsLongCharacterMember to get an error instead.

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.

It panics if CFCharacterSetIsSupersetOfSet is unavailable at run time; use TryCFCharacterSetIsSupersetOfSet to get an error instead.

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.

It panics if CFCharacterSetRemoveCharactersInRange is unavailable at run time; use TryCFCharacterSetRemoveCharactersInRange to get an error instead.

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.

It panics if CFCharacterSetRemoveCharactersInString is unavailable at run time; use TryCFCharacterSetRemoveCharactersInString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetRemoveCharactersInString(_:_:)

func CFCharacterSetUnion

func CFCharacterSetUnion(theSet CFMutableCharacterSetRef, theOtherSet CFCharacterSetRef)

CFCharacterSetUnion forms the union of two character sets.

It panics if CFCharacterSetUnion is unavailable at run time; use TryCFCharacterSetUnion to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetUnion(_:_:)

func CFDataAppendBytes

func CFDataAppendBytes(theData CFMutableDataRef, bytes []byte, length CFIndex)

CFDataAppendBytes appends the bytes from a byte buffer to the contents of a CFData object.

It panics if CFDataAppendBytes is unavailable at run time; use TryCFDataAppendBytes to get an error instead.

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.

It panics if CFDataDeleteBytes is unavailable at run time; use TryCFDataDeleteBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDataDeleteBytes(_:_:)

func CFDataGetBytePtr

func CFDataGetBytePtr(theData CFDataRef) *uint8

CFDataGetBytePtr returns a read-only pointer to the bytes of a CFData object.

It panics if CFDataGetBytePtr is unavailable at run time; use TryCFDataGetBytePtr to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDataGetBytePtr(_:)

func CFDataGetBytes

func CFDataGetBytes(theData CFDataRef, range_ CFRange, buffer []byte)

CFDataGetBytes copies the byte contents of a CFData object to an external buffer.

It panics if CFDataGetBytes is unavailable at run time; use TryCFDataGetBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDataGetBytes(_:_:_:)

func CFDataGetMutableBytePtr

func CFDataGetMutableBytePtr(theData CFMutableDataRef) *uint8

CFDataGetMutableBytePtr returns a pointer to a mutable byte buffer of a CFMutableData object.

It panics if CFDataGetMutableBytePtr is unavailable at run time; use TryCFDataGetMutableBytePtr to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDataGetMutableBytePtr(_:)

func CFDataIncreaseLength

func CFDataIncreaseLength(theData CFMutableDataRef, extraLength CFIndex)

CFDataIncreaseLength increases the length of a CFMutableData object’s internal byte buffer, zero-filling the extension to the buffer.

It panics if CFDataIncreaseLength is unavailable at run time; use TryCFDataIncreaseLength to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDataIncreaseLength(_:_:)

func CFDataReplaceBytes

func CFDataReplaceBytes(theData CFMutableDataRef, range_ CFRange, newBytes []byte, newLength CFIndex)

CFDataReplaceBytes replaces those bytes in a CFMutableData object that fall within a specified range with other bytes.

It panics if CFDataReplaceBytes is unavailable at run time; use TryCFDataReplaceBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDataReplaceBytes(_:_:_:_:)

func CFDataSetLength

func CFDataSetLength(theData CFMutableDataRef, length CFIndex)

CFDataSetLength resets the length of a CFMutableData object’s internal byte buffer.

It panics if CFDataSetLength is unavailable at run time; use TryCFDataSetLength to get an error instead.

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.

It panics if CFDateFormatterGetAbsoluteTimeFromString is unavailable at run time; use TryCFDateFormatterGetAbsoluteTimeFromString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterGetAbsoluteTimeFromString(_:_:_:_:)

func CFDateFormatterSetFormat

func CFDateFormatterSetFormat(formatter CFDateFormatterRef, formatString CFStringRef)

CFDateFormatterSetFormat sets the format string of the given date formatter to the specified value.

It panics if CFDateFormatterSetFormat is unavailable at run time; use TryCFDateFormatterSetFormat to get an error instead.

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.

It panics if CFDateFormatterSetProperty is unavailable at run time; use TryCFDateFormatterSetProperty to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterSetProperty(_:_:_:)

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.

It panics if CFDictionaryAddValue is unavailable at run time; use TryCFDictionaryAddValue to get an error instead.

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.

It panics if CFDictionaryApplyFunction is unavailable at run time; use TryCFDictionaryApplyFunction to get an error instead.

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.

It panics if CFDictionaryContainsKey is unavailable at run time; use TryCFDictionaryContainsKey to get an error instead.

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.

It panics if CFDictionaryContainsValue is unavailable at run time; use TryCFDictionaryContainsValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryContainsValue(_:_:)

func CFDictionaryGetKeysAndValues

func CFDictionaryGetKeysAndValues(theDict CFDictionaryRef, keys unsafe.Pointer, values unsafe.Pointer)

CFDictionaryGetKeysAndValues fills two buffers with the keys and values from a dictionary.

It panics if CFDictionaryGetKeysAndValues is unavailable at run time; use TryCFDictionaryGetKeysAndValues to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryGetKeysAndValues(_:_:_:)

func CFDictionaryGetValue

func CFDictionaryGetValue(theDict CFDictionaryRef, key unsafe.Pointer) unsafe.Pointer

CFDictionaryGetValue returns the value associated with a given key.

It panics if CFDictionaryGetValue is unavailable at run time; use TryCFDictionaryGetValue to get an error instead.

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.

It panics if CFDictionaryGetValueIfPresent is unavailable at run time; use TryCFDictionaryGetValueIfPresent to get an error instead.

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.

It panics if CFDictionaryRemoveAllValues is unavailable at run time; use TryCFDictionaryRemoveAllValues to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryRemoveAllValues(_:)

func CFDictionaryRemoveValue

func CFDictionaryRemoveValue(theDict CFMutableDictionaryRef, key unsafe.Pointer)

CFDictionaryRemoveValue removes a key-value pair.

It panics if CFDictionaryRemoveValue is unavailable at run time; use TryCFDictionaryRemoveValue to get an error instead.

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.

It panics if CFDictionaryReplaceValue is unavailable at run time; use TryCFDictionaryReplaceValue to get an error instead.

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.

It panics if CFDictionarySetValue is unavailable at run time; use TryCFDictionarySetValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDictionarySetValue(_:_:_:)

func CFEqual

func CFEqual(cf1 CFTypeRef, cf2 CFTypeRef) bool

CFEqual determines whether two Core Foundation objects are considered equal.

It panics if CFEqual is unavailable at run time; use TryCFEqual to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFEqual(_:_:)

func CFFileDescriptorDisableCallBacks

func CFFileDescriptorDisableCallBacks(f CFFileDescriptorRef, callBackTypes CFOptionFlags)

CFFileDescriptorDisableCallBacks disables callbacks for a given CFFileDescriptor.

It panics if CFFileDescriptorDisableCallBacks is unavailable at run time; use TryCFFileDescriptorDisableCallBacks to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorDisableCallBacks(_:_:)

func CFFileDescriptorEnableCallBacks

func CFFileDescriptorEnableCallBacks(f CFFileDescriptorRef, callBackTypes CFOptionFlags)

CFFileDescriptorEnableCallBacks enables callbacks for a given CFFileDescriptor.

It panics if CFFileDescriptorEnableCallBacks is unavailable at run time; use TryCFFileDescriptorEnableCallBacks to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorEnableCallBacks(_:_:)

func CFFileDescriptorGetContext

func CFFileDescriptorGetContext(f CFFileDescriptorRef, context *CFFileDescriptorContext)

CFFileDescriptorGetContext gets the context for a given CFFileDescriptor.

It panics if CFFileDescriptorGetContext is unavailable at run time; use TryCFFileDescriptorGetContext to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorGetContext(_:_:)

func CFFileDescriptorInvalidate

func CFFileDescriptorInvalidate(f CFFileDescriptorRef)

CFFileDescriptorInvalidate invalidates a CFFileDescriptor object.

It panics if CFFileDescriptorInvalidate is unavailable at run time; use TryCFFileDescriptorInvalidate to get an error instead.

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.

It panics if CFFileDescriptorIsValid is unavailable at run time; use TryCFFileDescriptorIsValid to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorIsValid(_:)

func CFFileSecurityClearProperties

func CFFileSecurityClearProperties(fileSec CFFileSecurityRef, clearPropertyMask CFFileSecurityClearOptions) bool

CFFileSecurityClearProperties clears properties from a CFFileSecurityRef object.

It panics if CFFileSecurityClearProperties is unavailable at run time; use TryCFFileSecurityClearProperties to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityClearProperties(_:_:)

func CFFileSecurityCopyAccessControlList added in v0.2.0

func CFFileSecurityCopyAccessControlList(fileSec CFFileSecurityRef, accessControlList unsafe.Pointer) bool

CFFileSecurityCopyAccessControlList copies the access control list associated with a CFFileSecurityRef object.

It panics if CFFileSecurityCopyAccessControlList is unavailable at run time; use TryCFFileSecurityCopyAccessControlList to get an error instead.

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.

It panics if CFFileSecurityCopyGroupUUID is unavailable at run time; use TryCFFileSecurityCopyGroupUUID to get an error instead.

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.

It panics if CFFileSecurityCopyOwnerUUID is unavailable at run time; use TryCFFileSecurityCopyOwnerUUID to get an error instead.

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

It panics if CFFileSecurityGetGroup is unavailable at run time; use TryCFFileSecurityGetGroup to get an error instead.

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.

It panics if CFFileSecurityGetMode is unavailable at run time; use TryCFFileSecurityGetMode to get an error instead.

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.

It panics if CFFileSecurityGetOwner is unavailable at run time; use TryCFFileSecurityGetOwner to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityGetOwner(_:_:)

func CFFileSecuritySetAccessControlList

func CFFileSecuritySetAccessControlList(fileSec CFFileSecurityRef, accessControlList unsafe.Pointer) bool

CFFileSecuritySetAccessControlList sets the access control list associated with a CFFileSecurityRef object.

It panics if CFFileSecuritySetAccessControlList is unavailable at run time; use TryCFFileSecuritySetAccessControlList to get an error instead.

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.

It panics if CFFileSecuritySetGroup is unavailable at run time; use TryCFFileSecuritySetGroup to get an error instead.

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.

It panics if CFFileSecuritySetGroupUUID is unavailable at run time; use TryCFFileSecuritySetGroupUUID to get an error instead.

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.

It panics if CFFileSecuritySetMode is unavailable at run time; use TryCFFileSecuritySetMode to get an error instead.

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.

It panics if CFFileSecuritySetOwner is unavailable at run time; use TryCFFileSecuritySetOwner to get an error instead.

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.

It panics if CFFileSecuritySetOwnerUUID is unavailable at run time; use TryCFFileSecuritySetOwnerUUID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecuritySetOwnerUUID(_:_:)

func CFGregorianDateIsValid deprecated

func CFGregorianDateIsValid(gdate CFGregorianDate, unitFlags CFOptionFlags) bool

CFGregorianDateIsValid checks the specified fields of a CFGregorianDate structure for valid values.

It panics if CFGregorianDateIsValid is unavailable at run time; use TryCFGregorianDateIsValid to get an error instead.

Deprecated: Deprecated since macOS 10.10. Use CFCalendar or NSCalendar API instead

See: https://developer.apple.com/documentation/CoreFoundation/CFGregorianDateIsValid(_:_:)

func CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier

func CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier(localeIdentifier CFLocaleIdentifier) uint32

CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier returns a Windows locale code from the locale identifier.

It panics if CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier is unavailable at run time; use TryCFLocaleGetWindowsLocaleCodeFromLocaleIdentifier to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier(_:)

func CFMachPortGetContext

func CFMachPortGetContext(port CFMachPortRef, context *CFMachPortContext)

CFMachPortGetContext returns the context information for a CFMachPort object.

It panics if CFMachPortGetContext is unavailable at run time; use TryCFMachPortGetContext to get an error instead.

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.

It panics if CFMachPortGetPort is unavailable at run time; use TryCFMachPortGetPort to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortGetPort(_:)

func CFMachPortInvalidate

func CFMachPortInvalidate(port CFMachPortRef)

CFMachPortInvalidate invalidates a CFMachPort object, stopping it from receiving any more messages.

It panics if CFMachPortInvalidate is unavailable at run time; use TryCFMachPortInvalidate to get an error instead.

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.

It panics if CFMachPortIsValid is unavailable at run time; use TryCFMachPortIsValid to get an error instead.

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.

It panics if CFMachPortSetInvalidationCallBack is unavailable at run time; use TryCFMachPortSetInvalidationCallBack to get an error instead.

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.

It panics if CFMessagePortGetContext is unavailable at run time; use TryCFMessagePortGetContext to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortGetContext(_:_:)

func CFMessagePortInvalidate

func CFMessagePortInvalidate(ms CFMessagePortRef)

CFMessagePortInvalidate invalidates a CFMessagePort object, stopping it from receiving or sending any more messages.

It panics if CFMessagePortInvalidate is unavailable at run time; use TryCFMessagePortInvalidate to get an error instead.

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.

It panics if CFMessagePortIsRemote is unavailable at run time; use TryCFMessagePortIsRemote to get an error instead.

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.

It panics if CFMessagePortIsValid is unavailable at run time; use TryCFMessagePortIsValid to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortIsValid(_:)

func CFMessagePortSendRequest

func CFMessagePortSendRequest(remote CFMessagePortRef, msgid int32, data CFDataRef, sendTimeout CFTimeInterval, rcvTimeout CFTimeInterval, replyMode CFStringRef, returnData *CFDataRef) int32

CFMessagePortSendRequest sends a message to a remote CFMessagePort object.

It panics if CFMessagePortSendRequest is unavailable at run time; use TryCFMessagePortSendRequest to get an error instead.

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.

It panics if CFMessagePortSetDispatchQueue is unavailable at run time; use TryCFMessagePortSetDispatchQueue to get an error instead.

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.

It panics if CFMessagePortSetInvalidationCallBack is unavailable at run time; use TryCFMessagePortSetInvalidationCallBack to get an error instead.

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.

It panics if CFMessagePortSetName is unavailable at run time; use TryCFMessagePortSetName to get an error instead.

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.

It panics if CFNotificationCenterAddObserver is unavailable at run time; use TryCFNotificationCenterAddObserver to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterAddObserver(_:_:_:_:_:_:)

func CFNotificationCenterPostNotification

func CFNotificationCenterPostNotification(center CFNotificationCenterRef, name CFNotificationName, object unsafe.Pointer, userInfo CFDictionaryRef, deliverImmediately bool)

CFNotificationCenterPostNotification posts a notification for an object.

It panics if CFNotificationCenterPostNotification is unavailable at run time; use TryCFNotificationCenterPostNotification to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterPostNotification(_:_:_:_:_:)

func CFNotificationCenterPostNotificationWithOptions

func CFNotificationCenterPostNotificationWithOptions(center CFNotificationCenterRef, name CFNotificationName, object unsafe.Pointer, userInfo CFDictionaryRef, options CFOptionFlags)

CFNotificationCenterPostNotificationWithOptions posts a notification for an object using specified options.

It panics if CFNotificationCenterPostNotificationWithOptions is unavailable at run time; use TryCFNotificationCenterPostNotificationWithOptions to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterPostNotificationWithOptions(_:_:_:_:_:)

func CFNotificationCenterRemoveEveryObserver

func CFNotificationCenterRemoveEveryObserver(center CFNotificationCenterRef, observer unsafe.Pointer)

CFNotificationCenterRemoveEveryObserver stops an observer from receiving any notifications from any object.

It panics if CFNotificationCenterRemoveEveryObserver is unavailable at run time; use TryCFNotificationCenterRemoveEveryObserver to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterRemoveEveryObserver(_:_:)

func CFNotificationCenterRemoveObserver

func CFNotificationCenterRemoveObserver(center CFNotificationCenterRef, observer unsafe.Pointer, name CFNotificationName, object unsafe.Pointer)

CFNotificationCenterRemoveObserver stops an observer from receiving certain notifications.

It panics if CFNotificationCenterRemoveObserver is unavailable at run time; use TryCFNotificationCenterRemoveObserver to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterRemoveObserver(_:_:_:_:)

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.

It panics if CFNumberFormatterGetDecimalInfoForCurrencyCode is unavailable at run time; use TryCFNumberFormatterGetDecimalInfoForCurrencyCode to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterGetDecimalInfoForCurrencyCode(_:_:_:)

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.

It panics if CFNumberFormatterGetValueFromString is unavailable at run time; use TryCFNumberFormatterGetValueFromString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterGetValueFromString(_:_:_:_:_:)

func CFNumberFormatterSetFormat

func CFNumberFormatterSetFormat(formatter CFNumberFormatterRef, formatString CFStringRef)

CFNumberFormatterSetFormat sets the format string of a number formatter.

It panics if CFNumberFormatterSetFormat is unavailable at run time; use TryCFNumberFormatterSetFormat to get an error instead.

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.

It panics if CFNumberFormatterSetProperty is unavailable at run time; use TryCFNumberFormatterSetProperty to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterSetProperty(_:_:_:)

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.

It panics if CFNumberGetValue is unavailable at run time; use TryCFNumberGetValue to get an error instead.

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.

It panics if CFNumberIsFloatType is unavailable at run time; use TryCFNumberIsFloatType to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberIsFloatType(_:)

func CFPlugInAddInstanceForFactory

func CFPlugInAddInstanceForFactory(factoryID CFUUIDRef)

CFPlugInAddInstanceForFactory registers a new instance of a type with [CFPlugIn].

It panics if CFPlugInAddInstanceForFactory is unavailable at run time; use TryCFPlugInAddInstanceForFactory to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInAddInstanceForFactory(_:)

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.

It panics if CFPlugInInstanceCreate is unavailable at run time; use TryCFPlugInInstanceCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstanceCreate(_:_:_:)

func CFPlugInInstanceGetInstanceData

func CFPlugInInstanceGetInstanceData(instance CFPlugInInstanceRef) unsafe.Pointer

CFPlugInInstanceGetInstanceData not recommended.

It panics if CFPlugInInstanceGetInstanceData is unavailable at run time; use TryCFPlugInInstanceGetInstanceData to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstanceGetInstanceData(_:)

func CFPlugInInstanceGetInterfaceFunctionTable

func CFPlugInInstanceGetInterfaceFunctionTable(instance CFPlugInInstanceRef, interfaceName CFStringRef, ftbl unsafe.Pointer) bool

CFPlugInInstanceGetInterfaceFunctionTable not recommended.

It panics if CFPlugInInstanceGetInterfaceFunctionTable is unavailable at run time; use TryCFPlugInInstanceGetInterfaceFunctionTable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstanceGetInterfaceFunctionTable(_:_:_:)

func CFPlugInIsLoadOnDemand

func CFPlugInIsLoadOnDemand(plugIn CFPlugInRef) bool

CFPlugInIsLoadOnDemand determines whether or not a plug-in is loaded on demand.

It panics if CFPlugInIsLoadOnDemand is unavailable at run time; use TryCFPlugInIsLoadOnDemand to get an error instead.

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.

It panics if CFPlugInRegisterFactoryFunction is unavailable at run time; use TryCFPlugInRegisterFactoryFunction to get an error instead.

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.

It panics if CFPlugInRegisterFactoryFunctionByName is unavailable at run time; use TryCFPlugInRegisterFactoryFunctionByName to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInRegisterFactoryFunctionByName(_:_:_:)

func CFPlugInRegisterPlugInType

func CFPlugInRegisterPlugInType(factoryUUID CFUUIDRef, typeUUID CFUUIDRef) bool

CFPlugInRegisterPlugInType registers a type and its corresponding factory function with a [CFPlugIn] object.

It panics if CFPlugInRegisterPlugInType is unavailable at run time; use TryCFPlugInRegisterPlugInType to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInRegisterPlugInType(_:_:)

func CFPlugInRemoveInstanceForFactory

func CFPlugInRemoveInstanceForFactory(factoryID CFUUIDRef)

CFPlugInRemoveInstanceForFactory unregisters an instance of a type with [CFPlugIn].

It panics if CFPlugInRemoveInstanceForFactory is unavailable at run time; use TryCFPlugInRemoveInstanceForFactory to get an error instead.

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).

It panics if CFPlugInSetLoadOnDemand is unavailable at run time; use TryCFPlugInSetLoadOnDemand to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInSetLoadOnDemand(_:_:)

func CFPlugInUnregisterFactory

func CFPlugInUnregisterFactory(factoryUUID CFUUIDRef) bool

CFPlugInUnregisterFactory removes the given function from a plug-in’s list of registered factory functions.

It panics if CFPlugInUnregisterFactory is unavailable at run time; use TryCFPlugInUnregisterFactory to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInUnregisterFactory(_:)

func CFPlugInUnregisterPlugInType

func CFPlugInUnregisterPlugInType(factoryUUID CFUUIDRef, typeUUID CFUUIDRef) bool

CFPlugInUnregisterPlugInType removes the given type from a plug-in’s list of registered types.

It panics if CFPlugInUnregisterPlugInType is unavailable at run time; use TryCFPlugInUnregisterPlugInType to get an error instead.

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.

It panics if CFPreferencesAddSuitePreferencesToApp is unavailable at run time; use TryCFPreferencesAddSuitePreferencesToApp to get an error instead.

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.

It panics if CFPreferencesAppSynchronize is unavailable at run time; use TryCFPreferencesAppSynchronize to get an error instead.

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.

It panics if CFPreferencesAppValueIsForced is unavailable at run time; use TryCFPreferencesAppValueIsForced to get an error instead.

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.

It panics if CFPreferencesGetAppBooleanValue is unavailable at run time; use TryCFPreferencesGetAppBooleanValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesGetAppBooleanValue(_:_:_:)

func CFPreferencesRemoveSuitePreferencesFromApp

func CFPreferencesRemoveSuitePreferencesFromApp(applicationID CFStringRef, suiteID CFStringRef)

CFPreferencesRemoveSuitePreferencesFromApp removes suite preferences from an application’s search chain.

It panics if CFPreferencesRemoveSuitePreferencesFromApp is unavailable at run time; use TryCFPreferencesRemoveSuitePreferencesFromApp to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesRemoveSuitePreferencesFromApp(_:_:)

func CFPreferencesSetAppValue

func CFPreferencesSetAppValue(key CFStringRef, value CFPropertyListRef, applicationID CFStringRef)

CFPreferencesSetAppValue adds, modifies, or removes a preference.

It panics if CFPreferencesSetAppValue is unavailable at run time; use TryCFPreferencesSetAppValue to get an error instead.

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.

It panics if CFPreferencesSetMultiple is unavailable at run time; use TryCFPreferencesSetMultiple to get an error instead.

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.

It panics if CFPreferencesSetValue is unavailable at run time; use TryCFPreferencesSetValue to get an error instead.

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.

It panics if CFPreferencesSynchronize is unavailable at run time; use TryCFPreferencesSynchronize to get an error instead.

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.

It panics if CFPropertyListIsValid is unavailable at run time; use TryCFPropertyListIsValid to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListIsValid(_:_:)

func CFReadStreamClose

func CFReadStreamClose(stream CFReadStreamRef)

CFReadStreamClose closes a readable stream.

It panics if CFReadStreamClose is unavailable at run time; use TryCFReadStreamClose to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamClose(_:)

func CFReadStreamCopyDispatchQueue

func CFReadStreamCopyDispatchQueue(stream CFReadStreamRef) dispatch.Queue

CFReadStreamCopyDispatchQueue.

It panics if CFReadStreamCopyDispatchQueue is unavailable at run time; use TryCFReadStreamCopyDispatchQueue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamCopyDispatchQueue(_:)

func CFReadStreamGetBuffer

func CFReadStreamGetBuffer(stream CFReadStreamRef, maxBytesToRead CFIndex, numBytesRead *CFIndex) *uint8

CFReadStreamGetBuffer returns a pointer to a stream’s internal buffer of unread data, if possible.

It panics if CFReadStreamGetBuffer is unavailable at run time; use TryCFReadStreamGetBuffer to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamGetBuffer(_:_:_:)

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.

It panics if CFReadStreamHasBytesAvailable is unavailable at run time; use TryCFReadStreamHasBytesAvailable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamHasBytesAvailable(_:)

func CFReadStreamOpen

func CFReadStreamOpen(stream CFReadStreamRef) bool

CFReadStreamOpen opens a stream for reading.

It panics if CFReadStreamOpen is unavailable at run time; use TryCFReadStreamOpen to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamOpen(_:)

func CFReadStreamScheduleWithRunLoop

func CFReadStreamScheduleWithRunLoop(stream CFReadStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode)

CFReadStreamScheduleWithRunLoop schedules a stream into a run loop.

It panics if CFReadStreamScheduleWithRunLoop is unavailable at run time; use TryCFReadStreamScheduleWithRunLoop to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamScheduleWithRunLoop(_:_:_:)

func CFReadStreamSetClient

func CFReadStreamSetClient(stream CFReadStreamRef, streamEvents CFOptionFlags, clientCB CFReadStreamClientCallBack, clientContext *CFStreamClientContext) bool

CFReadStreamSetClient assigns a client to a stream, which receives callbacks when certain events occur.

It panics if CFReadStreamSetClient is unavailable at run time; use TryCFReadStreamSetClient to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamSetClient(_:_:_:_:)

func CFReadStreamSetDispatchQueue

func CFReadStreamSetDispatchQueue(stream CFReadStreamRef, q dispatch.Queue)

CFReadStreamSetDispatchQueue.

It panics if CFReadStreamSetDispatchQueue is unavailable at run time; use TryCFReadStreamSetDispatchQueue to get an error instead.

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.

It panics if CFReadStreamSetProperty is unavailable at run time; use TryCFReadStreamSetProperty to get an error instead.

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.

It panics if CFReadStreamUnscheduleFromRunLoop is unavailable at run time; use TryCFReadStreamUnscheduleFromRunLoop to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamUnscheduleFromRunLoop(_:_:_:)

func CFRelease

func CFRelease(cf CFTypeRef)

CFRelease releases a Core Foundation object.

It panics if CFRelease is unavailable at run time; use TryCFRelease to get an error instead.

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.

It panics if CFRunLoopAddCommonMode is unavailable at run time; use TryCFRunLoopAddCommonMode to get an error instead.

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.

It panics if CFRunLoopAddObserver is unavailable at run time; use TryCFRunLoopAddObserver to get an error instead.

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.

It panics if CFRunLoopAddSource is unavailable at run time; use TryCFRunLoopAddSource to get an error instead.

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.

It panics if CFRunLoopAddTimer is unavailable at run time; use TryCFRunLoopAddTimer to get an error instead.

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.

It panics if CFRunLoopContainsObserver is unavailable at run time; use TryCFRunLoopContainsObserver to get an error instead.

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.

It panics if CFRunLoopContainsSource is unavailable at run time; use TryCFRunLoopContainsSource to get an error instead.

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.

It panics if CFRunLoopContainsTimer is unavailable at run time; use TryCFRunLoopContainsTimer to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopContainsTimer(_:_:_:)

func CFRunLoopIsWaiting

func CFRunLoopIsWaiting(rl CFRunLoopRef) bool

CFRunLoopIsWaiting returns a Boolean value that indicates whether the run loop is waiting for an event.

It panics if CFRunLoopIsWaiting is unavailable at run time; use TryCFRunLoopIsWaiting to get an error instead.

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.

It panics if CFRunLoopObserverDoesRepeat is unavailable at run time; use TryCFRunLoopObserverDoesRepeat to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverDoesRepeat(_:)

func CFRunLoopObserverGetContext

func CFRunLoopObserverGetContext(observer CFRunLoopObserverRef, context *CFRunLoopObserverContext)

CFRunLoopObserverGetContext returns the context information for a CFRunLoopObserver object.

It panics if CFRunLoopObserverGetContext is unavailable at run time; use TryCFRunLoopObserverGetContext to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverGetContext(_:_:)

func CFRunLoopObserverInvalidate

func CFRunLoopObserverInvalidate(observer CFRunLoopObserverRef)

CFRunLoopObserverInvalidate invalidates a CFRunLoopObserver object, stopping it from ever firing again.

It panics if CFRunLoopObserverInvalidate is unavailable at run time; use TryCFRunLoopObserverInvalidate to get an error instead.

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.

It panics if CFRunLoopObserverIsValid is unavailable at run time; use TryCFRunLoopObserverIsValid to get an error instead.

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.

It panics if CFRunLoopPerformBlock is unavailable at run time; use TryCFRunLoopPerformBlock to get an error instead.

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.

It panics if CFRunLoopRemoveObserver is unavailable at run time; use TryCFRunLoopRemoveObserver to get an error instead.

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.

It panics if CFRunLoopRemoveSource is unavailable at run time; use TryCFRunLoopRemoveSource to get an error instead.

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.

It panics if CFRunLoopRemoveTimer is unavailable at run time; use TryCFRunLoopRemoveTimer to get an error instead.

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.

It panics if CFRunLoopRun is unavailable at run time; use TryCFRunLoopRun to get an error instead.

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.

It panics if CFRunLoopSourceGetContext is unavailable at run time; use TryCFRunLoopSourceGetContext to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceGetContext(_:_:)

func CFRunLoopSourceInvalidate

func CFRunLoopSourceInvalidate(source CFRunLoopSourceRef)

CFRunLoopSourceInvalidate invalidates a CFRunLoopSource object, stopping it from ever firing again.

It panics if CFRunLoopSourceInvalidate is unavailable at run time; use TryCFRunLoopSourceInvalidate to get an error instead.

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.

It panics if CFRunLoopSourceIsValid is unavailable at run time; use TryCFRunLoopSourceIsValid to get an error instead.

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.

It panics if CFRunLoopSourceSignal is unavailable at run time; use TryCFRunLoopSourceSignal to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceSignal(_:)

func CFRunLoopStop

func CFRunLoopStop(rl CFRunLoopRef)

CFRunLoopStop forces a CFRunLoop object to stop running.

It panics if CFRunLoopStop is unavailable at run time; use TryCFRunLoopStop to get an error instead.

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.

It panics if CFRunLoopTimerDoesRepeat is unavailable at run time; use TryCFRunLoopTimerDoesRepeat to get an error instead.

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.

It panics if CFRunLoopTimerGetContext is unavailable at run time; use TryCFRunLoopTimerGetContext to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerGetContext(_:_:)

func CFRunLoopTimerInvalidate

func CFRunLoopTimerInvalidate(timer CFRunLoopTimerRef)

CFRunLoopTimerInvalidate invalidates a CFRunLoopTimer object, stopping it from ever firing again.

It panics if CFRunLoopTimerInvalidate is unavailable at run time; use TryCFRunLoopTimerInvalidate to get an error instead.

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.

It panics if CFRunLoopTimerIsValid is unavailable at run time; use TryCFRunLoopTimerIsValid to get an error instead.

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 .

It panics if CFRunLoopTimerSetNextFireDate is unavailable at run time; use TryCFRunLoopTimerSetNextFireDate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerSetNextFireDate(_:_:)

func CFRunLoopTimerSetTolerance

func CFRunLoopTimerSetTolerance(timer CFRunLoopTimerRef, tolerance CFTimeInterval)

CFRunLoopTimerSetTolerance.

It panics if CFRunLoopTimerSetTolerance is unavailable at run time; use TryCFRunLoopTimerSetTolerance to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerSetTolerance(_:_:)

func CFRunLoopWakeUp

func CFRunLoopWakeUp(rl CFRunLoopRef)

CFRunLoopWakeUp wakes a waiting CFRunLoop object.

It panics if CFRunLoopWakeUp is unavailable at run time; use TryCFRunLoopWakeUp to get an error instead.

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.

It panics if CFSetAddValue is unavailable at run time; use TryCFSetAddValue to get an error instead.

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.

It panics if CFSetApplyFunction is unavailable at run time; use TryCFSetApplyFunction to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSetApplyFunction(_:_:_:)

func CFSetContainsValue

func CFSetContainsValue(theSet CFSetRef, value unsafe.Pointer) bool

CFSetContainsValue returns a Boolean that indicates whether a set contains a given value.

It panics if CFSetContainsValue is unavailable at run time; use TryCFSetContainsValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSetContainsValue(_:_:)

func CFSetGetValue

func CFSetGetValue(theSet CFSetRef, value unsafe.Pointer) unsafe.Pointer

CFSetGetValue obtains a specified value from a set.

It panics if CFSetGetValue is unavailable at run time; use TryCFSetGetValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSetGetValue(_:_:)

func CFSetGetValueIfPresent

func CFSetGetValueIfPresent(theSet CFSetRef, candidate unsafe.Pointer, value unsafe.Pointer) bool

CFSetGetValueIfPresent reports whether or not a value is in a set, and if it exists returns the value indirectly.

It panics if CFSetGetValueIfPresent is unavailable at run time; use TryCFSetGetValueIfPresent to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSetGetValueIfPresent(_:_:_:)

func CFSetGetValues

func CFSetGetValues(theSet CFSetRef, values unsafe.Pointer)

CFSetGetValues obtains all values in a set.

It panics if CFSetGetValues is unavailable at run time; use TryCFSetGetValues to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSetGetValues(_:_:)

func CFSetRemoveAllValues

func CFSetRemoveAllValues(theSet CFMutableSetRef)

CFSetRemoveAllValues removes all values from a CFMutableSet object.

It panics if CFSetRemoveAllValues is unavailable at run time; use TryCFSetRemoveAllValues to get an error instead.

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.

It panics if CFSetRemoveValue is unavailable at run time; use TryCFSetRemoveValue to get an error instead.

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.

It panics if CFSetReplaceValue is unavailable at run time; use TryCFSetReplaceValue to get an error instead.

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.

It panics if CFSetSetValue is unavailable at run time; use TryCFSetSetValue to get an error instead.

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.

It panics if CFShow is unavailable at run time; use TryCFShow to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFShow(_:)

func CFShowStr

func CFShowStr(str CFStringRef)

CFShowStr prints the attributes of a string during debugging.

It panics if CFShowStr is unavailable at run time; use TryCFShowStr to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFShowStr(_:)

func CFSocketDisableCallBacks

func CFSocketDisableCallBacks(s CFSocketRef, callBackTypes CFOptionFlags)

CFSocketDisableCallBacks disables the callback function of a CFSocket object for certain types of socket activity.

It panics if CFSocketDisableCallBacks is unavailable at run time; use TryCFSocketDisableCallBacks to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketDisableCallBacks(_:_:)

func CFSocketEnableCallBacks

func CFSocketEnableCallBacks(s CFSocketRef, callBackTypes CFOptionFlags)

CFSocketEnableCallBacks enables the callback function of a CFSocket object for certain types of socket activity.

It panics if CFSocketEnableCallBacks is unavailable at run time; use TryCFSocketEnableCallBacks to get an error instead.

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.

It panics if CFSocketGetContext is unavailable at run time; use TryCFSocketGetContext to get an error instead.

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.

It panics if CFSocketGetDefaultNameRegistryPortNumber is unavailable at run time; use TryCFSocketGetDefaultNameRegistryPortNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketGetDefaultNameRegistryPortNumber()

func CFSocketInvalidate

func CFSocketInvalidate(s CFSocketRef)

CFSocketInvalidate invalidates a CFSocket object, stopping it from sending or receiving any more messages.

It panics if CFSocketInvalidate is unavailable at run time; use TryCFSocketInvalidate to get an error instead.

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.

It panics if CFSocketIsValid is unavailable at run time; use TryCFSocketIsValid to get an error instead.

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.

It panics if CFSocketSetDefaultNameRegistryPortNumber is unavailable at run time; use TryCFSocketSetDefaultNameRegistryPortNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketSetDefaultNameRegistryPortNumber(_:)

func CFSocketSetSocketFlags

func CFSocketSetSocketFlags(s CFSocketRef, flags CFOptionFlags)

CFSocketSetSocketFlags sets flags that control certain behaviors of a CFSocket object.

It panics if CFSocketSetSocketFlags is unavailable at run time; use TryCFSocketSetSocketFlags to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketSetSocketFlags(_:_:)

func CFStreamCreateBoundPair

func CFStreamCreateBoundPair(alloc CFAllocatorRef, readStream *CFReadStreamRef, writeStream *CFWriteStreamRef, transferBufferSize CFIndex)

CFStreamCreateBoundPair creates a bound pair of read and write streams.

It panics if CFStreamCreateBoundPair is unavailable at run time; use TryCFStreamCreateBoundPair to get an error instead.

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.

It panics if CFStreamCreatePairWithPeerSocketSignature is unavailable at run time; use TryCFStreamCreatePairWithPeerSocketSignature to get an error instead.

Deprecated: Deprecated since macOS 26.4. Use nw_connection_t in Network framework instead

See: https://developer.apple.com/documentation/CoreFoundation/CFStreamCreatePairWithPeerSocketSignature(_:_:_:_:)

func CFStreamCreatePairWithSocket deprecated

func CFStreamCreatePairWithSocket(alloc CFAllocatorRef, sock CFSocketNativeHandle, readStream *CFReadStreamRef, writeStream *CFWriteStreamRef)

CFStreamCreatePairWithSocket creates readable and writable streams connected to a socket.

It panics if CFStreamCreatePairWithSocket is unavailable at run time; use TryCFStreamCreatePairWithSocket to get an error instead.

Deprecated: Deprecated since macOS 26.4. 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.

It panics if CFStreamCreatePairWithSocketToHost is unavailable at run time; use TryCFStreamCreatePairWithSocketToHost to get an error instead.

Deprecated: Deprecated since macOS 26.4. Use nw_connection_t in Network framework instead

See: https://developer.apple.com/documentation/CoreFoundation/CFStreamCreatePairWithSocketToHost(_:_:_:_:_:)

func CFStringAppend

func CFStringAppend(theString CFMutableStringRef, appendedString CFStringRef)

CFStringAppend appends the characters of a string to those of a CFMutableString object.

It panics if CFStringAppend is unavailable at run time; use TryCFStringAppend to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringAppend(_:_:)

func CFStringAppendCString

func CFStringAppendCString(theString CFMutableStringRef, cStr string, encoding CFStringEncoding)

CFStringAppendCString appends a C string to the character contents of a CFMutableString object.

It panics if CFStringAppendCString is unavailable at run time; use TryCFStringAppendCString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringAppendCString(_:_:_:)

func CFStringAppendCharacters

func CFStringAppendCharacters(theString CFMutableStringRef, chars *uint16, numChars CFIndex)

CFStringAppendCharacters appends a buffer of Unicode characters to the character contents of a CFMutableString object.

It panics if CFStringAppendCharacters is unavailable at run time; use TryCFStringAppendCharacters to get an error instead.

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.

It panics if CFStringAppendFormat is unavailable at run time; use TryCFStringAppendFormat to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringAppendFormat

func CFStringAppendFormatAndArguments added in v0.2.0

func CFStringAppendFormatAndArguments(theString CFMutableStringRef, formatOptions CFDictionaryRef, format CFStringRef, arguments kernel.Va_list)

CFStringAppendFormatAndArguments appends a formatted string to the character contents of a CFMutableString object.

It panics if CFStringAppendFormatAndArguments is unavailable at run time; use TryCFStringAppendFormatAndArguments to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringAppendFormatAndArguments(_:_:_:_:)

func CFStringAppendPascalString

func CFStringAppendPascalString(theString CFMutableStringRef, pStr unsafe.Pointer, encoding CFStringEncoding)

CFStringAppendPascalString appends a Pascal string to the character contents of a CFMutableString object.

It panics if CFStringAppendPascalString is unavailable at run time; use TryCFStringAppendPascalString to get an error instead.

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).

It panics if CFStringCapitalize is unavailable at run time; use TryCFStringCapitalize to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCapitalize(_:_:)

func CFStringConvertEncodingToNSStringEncoding

func CFStringConvertEncodingToNSStringEncoding(encoding CFStringEncoding) uint

CFStringConvertEncodingToNSStringEncoding returns the Cocoa encoding constant that maps most closely to a given Core Foundation encoding constant.

It panics if CFStringConvertEncodingToNSStringEncoding is unavailable at run time; use TryCFStringConvertEncodingToNSStringEncoding to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringConvertEncodingToNSStringEncoding(_:)

func CFStringConvertEncodingToWindowsCodepage

func CFStringConvertEncodingToWindowsCodepage(encoding CFStringEncoding) uint32

CFStringConvertEncodingToWindowsCodepage returns the Windows codepage identifier that maps most closely to a given Core Foundation encoding constant.

It panics if CFStringConvertEncodingToWindowsCodepage is unavailable at run time; use TryCFStringConvertEncodingToWindowsCodepage to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringConvertEncodingToWindowsCodepage(_:)

func CFStringDelete

func CFStringDelete(theString CFMutableStringRef, range_ CFRange)

CFStringDelete deletes a range of characters in a string.

It panics if CFStringDelete is unavailable at run time; use TryCFStringDelete to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringDelete(_:_:)

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.

It panics if CFStringFindCharacterFromSet is unavailable at run time; use TryCFStringFindCharacterFromSet to get an error instead.

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.

It panics if CFStringFindWithOptions is unavailable at run time; use TryCFStringFindWithOptions to get an error instead.

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.

It panics if CFStringFindWithOptionsAndLocale is unavailable at run time; use TryCFStringFindWithOptionsAndLocale to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringFindWithOptionsAndLocale(_:_:_:_:_:_:)

func CFStringFold

func CFStringFold(theString CFMutableStringRef, theFlags CFStringCompareFlags, theLocale CFLocaleRef)

CFStringFold folds a given string into the form specified by optional flags.

It panics if CFStringFold is unavailable at run time; use TryCFStringFold to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringFold(_:_:_:)

func CFStringGetCString

func CFStringGetCString(theString CFStringRef, buffer *byte, bufferSize CFIndex, encoding CFStringEncoding) bool

CFStringGetCString copies the character contents of a string to a local C string buffer after converting the characters to a given encoding.

It panics if CFStringGetCString is unavailable at run time; use TryCFStringGetCString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetCString(_:_:_:_:)

func CFStringGetCStringPtr

func CFStringGetCStringPtr(theString CFStringRef, encoding CFStringEncoding) *byte

CFStringGetCStringPtr quickly obtains a pointer to a C-string buffer containing the characters of a string in a given encoding.

It panics if CFStringGetCStringPtr is unavailable at run time; use TryCFStringGetCStringPtr to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetCStringPtr(_:_:)

func CFStringGetCharacterAtIndex

func CFStringGetCharacterAtIndex(theString CFStringRef, idx CFIndex) uint16

CFStringGetCharacterAtIndex returns the Unicode character at a specified location in a string.

It panics if CFStringGetCharacterAtIndex is unavailable at run time; use TryCFStringGetCharacterAtIndex to get an error instead.

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.

It panics if CFStringGetCharacters is unavailable at run time; use TryCFStringGetCharacters to get an error instead.

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.

It panics if CFStringGetCharactersPtr is unavailable at run time; use TryCFStringGetCharactersPtr to get an error instead.

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.

It panics if CFStringGetDoubleValue is unavailable at run time; use TryCFStringGetDoubleValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetDoubleValue(_:)

func CFStringGetFileSystemRepresentation

func CFStringGetFileSystemRepresentation(string_ CFStringRef, buffer *byte, maxBufLen CFIndex) bool

CFStringGetFileSystemRepresentation extracts the contents of a string as a [NULL]-terminated 8-bit string appropriate for passing to POSIX APIs.

It panics if CFStringGetFileSystemRepresentation is unavailable at run time; use TryCFStringGetFileSystemRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetFileSystemRepresentation(_:_:_:)

func CFStringGetIntValue

func CFStringGetIntValue(str CFStringRef) int32

CFStringGetIntValue returns the integer value represented by a string.

It panics if CFStringGetIntValue is unavailable at run time; use TryCFStringGetIntValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetIntValue(_:)

func CFStringGetLineBounds

func CFStringGetLineBounds(theString CFStringRef, range_ CFRange, lineBeginIndex *CFIndex, lineEndIndex *CFIndex, contentsEndIndex *CFIndex)

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.

It panics if CFStringGetLineBounds is unavailable at run time; use TryCFStringGetLineBounds to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetLineBounds(_:_:_:_:_:)

func CFStringGetParagraphBounds

func CFStringGetParagraphBounds(string_ CFStringRef, range_ CFRange, parBeginIndex *CFIndex, parEndIndex *CFIndex, contentsEndIndex *CFIndex)

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.

It panics if CFStringGetParagraphBounds is unavailable at run time; use TryCFStringGetParagraphBounds to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetParagraphBounds(_:_:_:_:_:)

func CFStringGetPascalString

func CFStringGetPascalString(theString CFStringRef, buffer *byte, bufferSize CFIndex, encoding CFStringEncoding) bool

CFStringGetPascalString copies the character contents of a CFString object to a local Pascal string buffer after converting the characters to a requested encoding.

It panics if CFStringGetPascalString is unavailable at run time; use TryCFStringGetPascalString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetPascalString(_:_:_:_:)

func CFStringGetPascalStringPtr

func CFStringGetPascalStringPtr(theString CFStringRef, encoding CFStringEncoding) *byte

CFStringGetPascalStringPtr quickly obtains a pointer to a Pascal buffer containing the characters of a string in a given encoding.

It panics if CFStringGetPascalStringPtr is unavailable at run time; use TryCFStringGetPascalStringPtr to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetPascalStringPtr(_:_:)

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.

It panics if CFStringHasPrefix is unavailable at run time; use TryCFStringHasPrefix to get an error instead.

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.

It panics if CFStringHasSuffix is unavailable at run time; use TryCFStringHasSuffix to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringHasSuffix(_:_:)

func CFStringInsert

func CFStringInsert(str CFMutableStringRef, idx CFIndex, insertedStr CFStringRef)

CFStringInsert inserts a string at a specified location in the character buffer of a CFMutableString object.

It panics if CFStringInsert is unavailable at run time; use TryCFStringInsert to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringInsert(_:_:_:)

func CFStringIsEncodingAvailable

func CFStringIsEncodingAvailable(encoding CFStringEncoding) bool

CFStringIsEncodingAvailable determines whether a given Core Foundation string encoding is available on the current system.

It panics if CFStringIsEncodingAvailable is unavailable at run time; use TryCFStringIsEncodingAvailable to get an error instead.

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.

It panics if CFStringIsHyphenationAvailableForLocale is unavailable at run time; use TryCFStringIsHyphenationAvailableForLocale to get an error instead.

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.

It panics if CFStringLowercase is unavailable at run time; use TryCFStringLowercase to get an error instead.

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.

It panics if CFStringNormalize is unavailable at run time; use TryCFStringNormalize to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringNormalize(_:_:)

func CFStringPad

func CFStringPad(theString CFMutableStringRef, padString CFStringRef, length CFIndex, indexIntoPad CFIndex)

CFStringPad enlarges a string, padding it with specified characters, or truncates the string.

It panics if CFStringPad is unavailable at run time; use TryCFStringPad to get an error instead.

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.

It panics if CFStringReplace is unavailable at run time; use TryCFStringReplace to get an error instead.

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.

It panics if CFStringReplaceAll is unavailable at run time; use TryCFStringReplaceAll to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringReplaceAll(_:_:)

func CFStringSetExternalCharactersNoCopy

func CFStringSetExternalCharactersNoCopy(theString CFMutableStringRef, chars *uint16, length CFIndex, capacity CFIndex)

CFStringSetExternalCharactersNoCopy notifies a CFMutableString object that its external backing store of Unicode characters has changed.

It panics if CFStringSetExternalCharactersNoCopy is unavailable at run time; use TryCFStringSetExternalCharactersNoCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringSetExternalCharactersNoCopy(_:_:_:_:)

func CFStringTokenizerSetString

func CFStringTokenizerSetString(tokenizer CFStringTokenizerRef, string_ CFStringRef, range_ CFRange)

CFStringTokenizerSetString sets the string for a tokenizer.

It panics if CFStringTokenizerSetString is unavailable at run time; use TryCFStringTokenizerSetString to get an error instead.

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.

It panics if CFStringTransform is unavailable at run time; use TryCFStringTransform to get an error instead.

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.

It panics if CFStringTrim is unavailable at run time; use TryCFStringTrim to get an error instead.

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.

It panics if CFStringTrimWhitespace is unavailable at run time; use TryCFStringTrimWhitespace to get an error instead.

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.

It panics if CFStringUppercase is unavailable at run time; use TryCFStringUppercase to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringUppercase(_:_:)

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.

It panics if CFTimeZoneIsDaylightSavingTime is unavailable at run time; use TryCFTimeZoneIsDaylightSavingTime to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneIsDaylightSavingTime(_:_:)

func CFTimeZoneResetSystem

func CFTimeZoneResetSystem()

CFTimeZoneResetSystem clears the previously determined system time zone, if any.

It panics if CFTimeZoneResetSystem is unavailable at run time; use TryCFTimeZoneResetSystem to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneResetSystem()

func CFTimeZoneSetAbbreviationDictionary

func CFTimeZoneSetAbbreviationDictionary(dict CFDictionaryRef)

CFTimeZoneSetAbbreviationDictionary sets the abbreviation dictionary to a given dictionary.

It panics if CFTimeZoneSetAbbreviationDictionary is unavailable at run time; use TryCFTimeZoneSetAbbreviationDictionary to get an error instead.

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.

It panics if CFTimeZoneSetDefault is unavailable at run time; use TryCFTimeZoneSetDefault to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneSetDefault(_:)

func CFTreeAppendChild

func CFTreeAppendChild(tree CFTreeRef, newChild CFTreeRef)

CFTreeAppendChild adds a new child to a tree as the last in its list of children.

It panics if CFTreeAppendChild is unavailable at run time; use TryCFTreeAppendChild to get an error instead.

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.

It panics if CFTreeApplyFunctionToChildren is unavailable at run time; use TryCFTreeApplyFunctionToChildren to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeApplyFunctionToChildren(_:_:_:)

func CFTreeGetChildren

func CFTreeGetChildren(tree CFTreeRef, children *CFTreeRef)

CFTreeGetChildren fills a buffer with children from the tree.

It panics if CFTreeGetChildren is unavailable at run time; use TryCFTreeGetChildren to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetChildren(_:_:)

func CFTreeGetContext

func CFTreeGetContext(tree CFTreeRef, context *CFTreeContext)

CFTreeGetContext returns the context of the specified tree.

It panics if CFTreeGetContext is unavailable at run time; use TryCFTreeGetContext to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetContext(_:_:)

func CFTreeInsertSibling

func CFTreeInsertSibling(tree CFTreeRef, newSibling CFTreeRef)

CFTreeInsertSibling inserts a new sibling after a given tree.

It panics if CFTreeInsertSibling is unavailable at run time; use TryCFTreeInsertSibling to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeInsertSibling(_:_:)

func CFTreePrependChild

func CFTreePrependChild(tree CFTreeRef, newChild CFTreeRef)

CFTreePrependChild adds a new child to the specified tree as the first in its list of children.

It panics if CFTreePrependChild is unavailable at run time; use TryCFTreePrependChild to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreePrependChild(_:_:)

func CFTreeRemove

func CFTreeRemove(tree CFTreeRef)

CFTreeRemove removes a tree from its parent.

It panics if CFTreeRemove is unavailable at run time; use TryCFTreeRemove to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeRemove(_:)

func CFTreeRemoveAllChildren

func CFTreeRemoveAllChildren(tree CFTreeRef)

CFTreeRemoveAllChildren removes all the children of a tree.

It panics if CFTreeRemoveAllChildren is unavailable at run time; use TryCFTreeRemoveAllChildren to get an error instead.

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.

It panics if CFTreeSetContext is unavailable at run time; use TryCFTreeSetContext to get an error instead.

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.

It panics if CFTreeSortChildren is unavailable at run time; use TryCFTreeSortChildren to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeSortChildren(_:_:_:)

func CFURLCanBeDecomposed

func CFURLCanBeDecomposed(anURL CFURLRef) bool

CFURLCanBeDecomposed determines if the given URL conforms to RFC 1808 and therefore can be decomposed.

It panics if CFURLCanBeDecomposed is unavailable at run time; use TryCFURLCanBeDecomposed to get an error instead.

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.

It panics if CFURLClearResourcePropertyCache is unavailable at run time; use TryCFURLClearResourcePropertyCache to get an error instead.

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.

It panics if CFURLClearResourcePropertyCacheForKey is unavailable at run time; use TryCFURLClearResourcePropertyCacheForKey to get an error instead.

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.

It panics if CFURLCopyResourcePropertyForKey is unavailable at run time; use TryCFURLCopyResourcePropertyForKey to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyResourcePropertyForKey(_:_:_:_:)

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.

It panics if CFURLEnumeratorSkipDescendents is unavailable at run time; use TryCFURLEnumeratorSkipDescendents to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorSkipDescendents(_:)

func CFURLGetFileSystemRepresentation

func CFURLGetFileSystemRepresentation(url CFURLRef, resolveAgainstBase bool, buffer []byte, maxBufLen CFIndex) bool

CFURLGetFileSystemRepresentation fills a buffer with the file system’s native string representation of a given URL’s path.

It panics if CFURLGetFileSystemRepresentation is unavailable at run time; use TryCFURLGetFileSystemRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLGetFileSystemRepresentation(_:_:_:_:)

func CFURLGetPortNumber

func CFURLGetPortNumber(anURL CFURLRef) int32

CFURLGetPortNumber returns the port number from a given URL.

It panics if CFURLGetPortNumber is unavailable at run time; use TryCFURLGetPortNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLGetPortNumber(_:)

func CFURLHasDirectoryPath

func CFURLHasDirectoryPath(anURL CFURLRef) bool

CFURLHasDirectoryPath determines if a given URL’s path represents a directory.

It panics if CFURLHasDirectoryPath is unavailable at run time; use TryCFURLHasDirectoryPath to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLHasDirectoryPath(_:)

func CFURLIsFileReferenceURL

func CFURLIsFileReferenceURL(url CFURLRef) bool

CFURLIsFileReferenceURL.

It panics if CFURLIsFileReferenceURL is unavailable at run time; use TryCFURLIsFileReferenceURL to get an error instead.

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.

It panics if CFURLResourceIsReachable is unavailable at run time; use TryCFURLResourceIsReachable to get an error instead.

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.

It panics if CFURLSetResourcePropertiesForKeys is unavailable at run time; use TryCFURLSetResourcePropertiesForKeys to get an error instead.

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.

It panics if CFURLSetResourcePropertyForKey is unavailable at run time; use TryCFURLSetResourcePropertyForKey to get an error instead.

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.

It panics if CFURLSetTemporaryResourcePropertyForKey is unavailable at run time; use TryCFURLSetTemporaryResourcePropertyForKey to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLSetTemporaryResourcePropertyForKey(_:_:_:)

func CFURLStartAccessingSecurityScopedResource

func CFURLStartAccessingSecurityScopedResource(url CFURLRef) bool

CFURLStartAccessingSecurityScopedResource in an app that has adopted App Sandbox, makes the resource pointed to by a security-scoped URL available to the app.

It panics if CFURLStartAccessingSecurityScopedResource is unavailable at run time; use TryCFURLStartAccessingSecurityScopedResource to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLStartAccessingSecurityScopedResource(_:)

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.

It panics if CFURLStopAccessingSecurityScopedResource is unavailable at run time; use TryCFURLStopAccessingSecurityScopedResource to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLStopAccessingSecurityScopedResource(_:)

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.

It panics if CFURLWriteBookmarkDataToFile is unavailable at run time; use TryCFURLWriteBookmarkDataToFile to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLWriteBookmarkDataToFile(_:_:_:_:)

func CFUserNotificationCancel

func CFUserNotificationCancel(userNotification CFUserNotificationRef) int32

CFUserNotificationCancel cancels a user notification dialog.

It panics if CFUserNotificationCancel is unavailable at run time; use TryCFUserNotificationCancel to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationCancel(_:)

func CFUserNotificationDisplayAlert

func CFUserNotificationDisplayAlert(timeout CFTimeInterval, flags CFOptionFlags, iconURL CFURLRef, soundURL CFURLRef, localizationURL CFURLRef, alertHeader CFStringRef, alertMessage CFStringRef, defaultButtonTitle CFStringRef, alternateButtonTitle CFStringRef, otherButtonTitle CFStringRef, responseFlags *CFOptionFlags) int32

CFUserNotificationDisplayAlert displays a user notification dialog and waits for a user response.

It panics if CFUserNotificationDisplayAlert is unavailable at run time; use TryCFUserNotificationDisplayAlert to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationDisplayAlert(_:_:_:_:_:_:_:_:_:_:_:)

func CFUserNotificationDisplayNotice

func CFUserNotificationDisplayNotice(timeout CFTimeInterval, flags CFOptionFlags, 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.

It panics if CFUserNotificationDisplayNotice is unavailable at run time; use TryCFUserNotificationDisplayNotice to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationDisplayNotice(_:_:_:_:_:_:_:_:)

func CFUserNotificationReceiveResponse

func CFUserNotificationReceiveResponse(userNotification CFUserNotificationRef, timeout CFTimeInterval, responseFlags *CFOptionFlags) int32

CFUserNotificationReceiveResponse waits for the user to respond to a notification or for the notification to time out.

It panics if CFUserNotificationReceiveResponse is unavailable at run time; use TryCFUserNotificationReceiveResponse to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationReceiveResponse(_:_:_:)

func CFUserNotificationUpdate

func CFUserNotificationUpdate(userNotification CFUserNotificationRef, timeout CFTimeInterval, flags CFOptionFlags, dictionary CFDictionaryRef) int32

CFUserNotificationUpdate updates a displayed user notification dialog with new user interface information.

It panics if CFUserNotificationUpdate is unavailable at run time; use TryCFUserNotificationUpdate to get an error instead.

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.

It panics if CFWriteStreamCanAcceptBytes is unavailable at run time; use TryCFWriteStreamCanAcceptBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamCanAcceptBytes(_:)

func CFWriteStreamClose

func CFWriteStreamClose(stream CFWriteStreamRef)

CFWriteStreamClose closes a writable stream.

It panics if CFWriteStreamClose is unavailable at run time; use TryCFWriteStreamClose to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamClose(_:)

func CFWriteStreamCopyDispatchQueue

func CFWriteStreamCopyDispatchQueue(stream CFWriteStreamRef) dispatch.Queue

CFWriteStreamCopyDispatchQueue.

It panics if CFWriteStreamCopyDispatchQueue is unavailable at run time; use TryCFWriteStreamCopyDispatchQueue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamCopyDispatchQueue(_:)

func CFWriteStreamOpen

func CFWriteStreamOpen(stream CFWriteStreamRef) bool

CFWriteStreamOpen opens a stream for writing.

It panics if CFWriteStreamOpen is unavailable at run time; use TryCFWriteStreamOpen to get an error instead.

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.

It panics if CFWriteStreamScheduleWithRunLoop is unavailable at run time; use TryCFWriteStreamScheduleWithRunLoop to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamScheduleWithRunLoop(_:_:_:)

func CFWriteStreamSetClient

func CFWriteStreamSetClient(stream CFWriteStreamRef, streamEvents CFOptionFlags, clientCB CFWriteStreamClientCallBack, clientContext *CFStreamClientContext) bool

CFWriteStreamSetClient assigns a client to a stream, which receives callbacks when certain events occur.

It panics if CFWriteStreamSetClient is unavailable at run time; use TryCFWriteStreamSetClient to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamSetClient(_:_:_:_:)

func CFWriteStreamSetDispatchQueue

func CFWriteStreamSetDispatchQueue(stream CFWriteStreamRef, q dispatch.Queue)

CFWriteStreamSetDispatchQueue.

It panics if CFWriteStreamSetDispatchQueue is unavailable at run time; use TryCFWriteStreamSetDispatchQueue to get an error instead.

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.

It panics if CFWriteStreamSetProperty is unavailable at run time; use TryCFWriteStreamSetProperty to get an error instead.

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.

It panics if CFWriteStreamUnscheduleFromRunLoop is unavailable at run time; use TryCFWriteStreamUnscheduleFromRunLoop to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamUnscheduleFromRunLoop(_:_:_:)

func CFXMLNodeCreate deprecated

func CFXMLNodeCreate(alloc CFAllocatorRef, xmlType uint32, dataString CFStringRef, additionalInfoPtr unsafe.Pointer, version CFIndex) unsafe.Pointer

CFXMLNodeCreate creates a new CFXMLNode.

It panics if CFXMLNodeCreate is unavailable at run time; use TryCFXMLNodeCreate to get an error instead.

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.

It panics if CFXMLNodeCreateCopy is unavailable at run time; use TryCFXMLNodeCreateCopy to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLNodeCreateCopy

func CFXMLNodeGetInfoPtr deprecated

func CFXMLNodeGetInfoPtr(node unsafe.Pointer) unsafe.Pointer

CFXMLNodeGetInfoPtr returns the additional information pointer of a CFXMLNode object.

It panics if CFXMLNodeGetInfoPtr is unavailable at run time; use TryCFXMLNodeGetInfoPtr to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLNodeGetInfoPtr

func CFXMLNodeGetTypeCode deprecated

func CFXMLNodeGetTypeCode(node unsafe.Pointer) uint32

CFXMLNodeGetTypeCode returns the XML structure type code for a CFXMLNode object.

It panics if CFXMLNodeGetTypeCode is unavailable at run time; use TryCFXMLNodeGetTypeCode to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLNodeGetTypeCode

func CFXMLParserAbort deprecated

func CFXMLParserAbort(parser CFXMLParserRef, errorCode CFXMLParserStatusCode, errorDescription CFStringRef)

CFXMLParserAbort causes a parser to abort with the given error code and description.

It panics if CFXMLParserAbort is unavailable at run time; use TryCFXMLParserAbort to get an error instead.

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.

It panics if CFXMLParserGetCallBacks is unavailable at run time; use TryCFXMLParserGetCallBacks to get an error instead.

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.

It panics if CFXMLParserGetContext is unavailable at run time; use TryCFXMLParserGetContext to get an error instead.

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.

It panics if CFXMLParserGetDocument is unavailable at run time; use TryCFXMLParserGetDocument to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetDocument

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.

It panics if CFXMLParserParse is unavailable at run time; use TryCFXMLParserParse to get an error instead.

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.

It panics if CFXMLTreeGetNode is unavailable at run time; use TryCFXMLTreeGetNode to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLTreeGetNode

func SymbolAddress

func SymbolAddress(name string) (uintptr, error)

SymbolAddress returns the address of name in CoreFoundation, whether or not this package generated a binding for it.

What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.

The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.

func TryCFAbsoluteTimeGetDayOfWeek

func TryCFAbsoluteTimeGetDayOfWeek(at CFAbsoluteTime, tz CFTimeZoneRef) (int32, error)

TryCFAbsoluteTimeGetDayOfWeek is like CFAbsoluteTimeGetDayOfWeek but returns an error instead of panicking if CFAbsoluteTimeGetDayOfWeek is unavailable at run time.

func TryCFAbsoluteTimeGetDayOfYear

func TryCFAbsoluteTimeGetDayOfYear(at CFAbsoluteTime, tz CFTimeZoneRef) (int32, error)

TryCFAbsoluteTimeGetDayOfYear is like CFAbsoluteTimeGetDayOfYear but returns an error instead of panicking if CFAbsoluteTimeGetDayOfYear is unavailable at run time.

func TryCFAbsoluteTimeGetWeekOfYear

func TryCFAbsoluteTimeGetWeekOfYear(at CFAbsoluteTime, tz CFTimeZoneRef) (int32, error)

TryCFAbsoluteTimeGetWeekOfYear is like CFAbsoluteTimeGetWeekOfYear but returns an error instead of panicking if CFAbsoluteTimeGetWeekOfYear is unavailable at run time.

func TryCFAllocatorAllocate

func TryCFAllocatorAllocate(allocator CFAllocatorRef, size CFIndex, hint CFOptionFlags) (unsafe.Pointer, error)

TryCFAllocatorAllocate is like CFAllocatorAllocate but returns an error instead of panicking if CFAllocatorAllocate is unavailable at run time.

func TryCFAllocatorAllocateBytes

func TryCFAllocatorAllocateBytes(allocator CFAllocatorRef, size CFIndex, hint CFOptionFlags) (unsafe.Pointer, error)

TryCFAllocatorAllocateBytes is like CFAllocatorAllocateBytes but returns an error instead of panicking if CFAllocatorAllocateBytes is unavailable at run time.

func TryCFAllocatorAllocateTyped

func TryCFAllocatorAllocateTyped(allocator CFAllocatorRef, size CFIndex, descriptor CFAllocatorTypeID, hint CFOptionFlags) (unsafe.Pointer, error)

TryCFAllocatorAllocateTyped is like CFAllocatorAllocateTyped but returns an error instead of panicking if CFAllocatorAllocateTyped is unavailable at run time.

func TryCFAllocatorDeallocate

func TryCFAllocatorDeallocate(allocator CFAllocatorRef, ptr unsafe.Pointer) error

TryCFAllocatorDeallocate is like CFAllocatorDeallocate but returns an error instead of panicking if CFAllocatorDeallocate is unavailable at run time.

func TryCFAllocatorGetContext

func TryCFAllocatorGetContext(allocator CFAllocatorRef, context *CFAllocatorContext) error

TryCFAllocatorGetContext is like CFAllocatorGetContext but returns an error instead of panicking if CFAllocatorGetContext is unavailable at run time.

func TryCFAllocatorReallocate

func TryCFAllocatorReallocate(allocator CFAllocatorRef, ptr unsafe.Pointer, newsize CFIndex, hint CFOptionFlags) (unsafe.Pointer, error)

TryCFAllocatorReallocate is like CFAllocatorReallocate but returns an error instead of panicking if CFAllocatorReallocate is unavailable at run time.

func TryCFAllocatorReallocateBytes

func TryCFAllocatorReallocateBytes(allocator CFAllocatorRef, ptr unsafe.Pointer, newsize CFIndex, hint CFOptionFlags) (unsafe.Pointer, error)

TryCFAllocatorReallocateBytes is like CFAllocatorReallocateBytes but returns an error instead of panicking if CFAllocatorReallocateBytes is unavailable at run time.

func TryCFAllocatorReallocateTyped

func TryCFAllocatorReallocateTyped(allocator CFAllocatorRef, ptr unsafe.Pointer, newsize CFIndex, descriptor CFAllocatorTypeID, hint CFOptionFlags) (unsafe.Pointer, error)

TryCFAllocatorReallocateTyped is like CFAllocatorReallocateTyped but returns an error instead of panicking if CFAllocatorReallocateTyped is unavailable at run time.

func TryCFAllocatorSetDefault

func TryCFAllocatorSetDefault(allocator CFAllocatorRef) error

TryCFAllocatorSetDefault is like CFAllocatorSetDefault but returns an error instead of panicking if CFAllocatorSetDefault is unavailable at run time.

func TryCFArrayAppendArray

func TryCFArrayAppendArray(theArray CFMutableArrayRef, otherArray CFArrayRef, otherRange CFRange) error

TryCFArrayAppendArray is like CFArrayAppendArray but returns an error instead of panicking if CFArrayAppendArray is unavailable at run time.

func TryCFArrayAppendValue

func TryCFArrayAppendValue(theArray CFMutableArrayRef, value unsafe.Pointer) error

TryCFArrayAppendValue is like CFArrayAppendValue but returns an error instead of panicking if CFArrayAppendValue is unavailable at run time.

func TryCFArrayApplyFunction

func TryCFArrayApplyFunction(theArray CFArrayRef, range_ CFRange, applier CFArrayApplierFunction, context unsafe.Pointer) error

TryCFArrayApplyFunction is like CFArrayApplyFunction but returns an error instead of panicking if CFArrayApplyFunction is unavailable at run time.

func TryCFArrayContainsValue

func TryCFArrayContainsValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) (bool, error)

TryCFArrayContainsValue is like CFArrayContainsValue but returns an error instead of panicking if CFArrayContainsValue is unavailable at run time.

func TryCFArrayExchangeValuesAtIndices

func TryCFArrayExchangeValuesAtIndices(theArray CFMutableArrayRef, idx1 CFIndex, idx2 CFIndex) error

TryCFArrayExchangeValuesAtIndices is like CFArrayExchangeValuesAtIndices but returns an error instead of panicking if CFArrayExchangeValuesAtIndices is unavailable at run time.

func TryCFArrayGetValueAtIndex

func TryCFArrayGetValueAtIndex(theArray CFArrayRef, idx CFIndex) (unsafe.Pointer, error)

TryCFArrayGetValueAtIndex is like CFArrayGetValueAtIndex but returns an error instead of panicking if CFArrayGetValueAtIndex is unavailable at run time.

func TryCFArrayGetValues

func TryCFArrayGetValues(theArray CFArrayRef, range_ CFRange, values unsafe.Pointer) error

TryCFArrayGetValues is like CFArrayGetValues but returns an error instead of panicking if CFArrayGetValues is unavailable at run time.

func TryCFArrayInsertValueAtIndex

func TryCFArrayInsertValueAtIndex(theArray CFMutableArrayRef, idx CFIndex, value unsafe.Pointer) error

TryCFArrayInsertValueAtIndex is like CFArrayInsertValueAtIndex but returns an error instead of panicking if CFArrayInsertValueAtIndex is unavailable at run time.

func TryCFArrayRemoveAllValues

func TryCFArrayRemoveAllValues(theArray CFMutableArrayRef) error

TryCFArrayRemoveAllValues is like CFArrayRemoveAllValues but returns an error instead of panicking if CFArrayRemoveAllValues is unavailable at run time.

func TryCFArrayRemoveValueAtIndex

func TryCFArrayRemoveValueAtIndex(theArray CFMutableArrayRef, idx CFIndex) error

TryCFArrayRemoveValueAtIndex is like CFArrayRemoveValueAtIndex but returns an error instead of panicking if CFArrayRemoveValueAtIndex is unavailable at run time.

func TryCFArrayReplaceValues

func TryCFArrayReplaceValues(theArray CFMutableArrayRef, range_ CFRange, newValues unsafe.Pointer, newCount CFIndex) error

TryCFArrayReplaceValues is like CFArrayReplaceValues but returns an error instead of panicking if CFArrayReplaceValues is unavailable at run time.

func TryCFArraySetValueAtIndex

func TryCFArraySetValueAtIndex(theArray CFMutableArrayRef, idx CFIndex, value unsafe.Pointer) error

TryCFArraySetValueAtIndex is like CFArraySetValueAtIndex but returns an error instead of panicking if CFArraySetValueAtIndex is unavailable at run time.

func TryCFArraySortValues

func TryCFArraySortValues(theArray CFMutableArrayRef, range_ CFRange, comparator CFComparatorFunction, context unsafe.Pointer) error

TryCFArraySortValues is like CFArraySortValues but returns an error instead of panicking if CFArraySortValues is unavailable at run time.

func TryCFAttributedStringBeginEditing

func TryCFAttributedStringBeginEditing(aStr CFMutableAttributedStringRef) error

TryCFAttributedStringBeginEditing is like CFAttributedStringBeginEditing but returns an error instead of panicking if CFAttributedStringBeginEditing is unavailable at run time.

func TryCFAttributedStringEndEditing

func TryCFAttributedStringEndEditing(aStr CFMutableAttributedStringRef) error

TryCFAttributedStringEndEditing is like CFAttributedStringEndEditing but returns an error instead of panicking if CFAttributedStringEndEditing is unavailable at run time.

func TryCFAttributedStringGetBidiLevelsAndResolvedDirections

func TryCFAttributedStringGetBidiLevelsAndResolvedDirections(attributedString CFAttributedStringRef, range_ CFRange, baseDirection int8, bidiLevels []byte, baseDirections []byte) (bool, error)

TryCFAttributedStringGetBidiLevelsAndResolvedDirections is like CFAttributedStringGetBidiLevelsAndResolvedDirections but returns an error instead of panicking if CFAttributedStringGetBidiLevelsAndResolvedDirections is unavailable at run time.

func TryCFAttributedStringGetStatisticalWritingDirections

func TryCFAttributedStringGetStatisticalWritingDirections(attributedString CFAttributedStringRef, range_ CFRange, baseDirection int8, bidiLevels []byte, baseDirections []byte) (bool, error)

TryCFAttributedStringGetStatisticalWritingDirections is like CFAttributedStringGetStatisticalWritingDirections but returns an error instead of panicking if CFAttributedStringGetStatisticalWritingDirections is unavailable at run time.

func TryCFAttributedStringRemoveAttribute

func TryCFAttributedStringRemoveAttribute(aStr CFMutableAttributedStringRef, range_ CFRange, attrName CFStringRef) error

TryCFAttributedStringRemoveAttribute is like CFAttributedStringRemoveAttribute but returns an error instead of panicking if CFAttributedStringRemoveAttribute is unavailable at run time.

func TryCFAttributedStringReplaceAttributedString

func TryCFAttributedStringReplaceAttributedString(aStr CFMutableAttributedStringRef, range_ CFRange, replacement CFAttributedStringRef) error

TryCFAttributedStringReplaceAttributedString is like CFAttributedStringReplaceAttributedString but returns an error instead of panicking if CFAttributedStringReplaceAttributedString is unavailable at run time.

func TryCFAttributedStringReplaceString

func TryCFAttributedStringReplaceString(aStr CFMutableAttributedStringRef, range_ CFRange, replacement CFStringRef) error

TryCFAttributedStringReplaceString is like CFAttributedStringReplaceString but returns an error instead of panicking if CFAttributedStringReplaceString is unavailable at run time.

func TryCFAttributedStringSetAttribute

func TryCFAttributedStringSetAttribute(aStr CFMutableAttributedStringRef, range_ CFRange, attrName CFStringRef, value CFTypeRef) error

TryCFAttributedStringSetAttribute is like CFAttributedStringSetAttribute but returns an error instead of panicking if CFAttributedStringSetAttribute is unavailable at run time.

func TryCFAttributedStringSetAttributes

func TryCFAttributedStringSetAttributes(aStr CFMutableAttributedStringRef, range_ CFRange, replacement CFDictionaryRef, clearOtherAttributes bool) error

TryCFAttributedStringSetAttributes is like CFAttributedStringSetAttributes but returns an error instead of panicking if CFAttributedStringSetAttributes is unavailable at run time.

func TryCFBagAddValue

func TryCFBagAddValue(theBag CFMutableBagRef, value unsafe.Pointer) error

TryCFBagAddValue is like CFBagAddValue but returns an error instead of panicking if CFBagAddValue is unavailable at run time.

func TryCFBagApplyFunction

func TryCFBagApplyFunction(theBag CFBagRef, applier CFBagApplierFunction, context unsafe.Pointer) error

TryCFBagApplyFunction is like CFBagApplyFunction but returns an error instead of panicking if CFBagApplyFunction is unavailable at run time.

func TryCFBagContainsValue

func TryCFBagContainsValue(theBag CFBagRef, value unsafe.Pointer) (bool, error)

TryCFBagContainsValue is like CFBagContainsValue but returns an error instead of panicking if CFBagContainsValue is unavailable at run time.

func TryCFBagGetValue

func TryCFBagGetValue(theBag CFBagRef, value unsafe.Pointer) (unsafe.Pointer, error)

TryCFBagGetValue is like CFBagGetValue but returns an error instead of panicking if CFBagGetValue is unavailable at run time.

func TryCFBagGetValueIfPresent

func TryCFBagGetValueIfPresent(theBag CFBagRef, candidate unsafe.Pointer, value unsafe.Pointer) (bool, error)

TryCFBagGetValueIfPresent is like CFBagGetValueIfPresent but returns an error instead of panicking if CFBagGetValueIfPresent is unavailable at run time.

func TryCFBagGetValues

func TryCFBagGetValues(theBag CFBagRef, values unsafe.Pointer) error

TryCFBagGetValues is like CFBagGetValues but returns an error instead of panicking if CFBagGetValues is unavailable at run time.

func TryCFBagRemoveAllValues

func TryCFBagRemoveAllValues(theBag CFMutableBagRef) error

TryCFBagRemoveAllValues is like CFBagRemoveAllValues but returns an error instead of panicking if CFBagRemoveAllValues is unavailable at run time.

func TryCFBagRemoveValue

func TryCFBagRemoveValue(theBag CFMutableBagRef, value unsafe.Pointer) error

TryCFBagRemoveValue is like CFBagRemoveValue but returns an error instead of panicking if CFBagRemoveValue is unavailable at run time.

func TryCFBagReplaceValue

func TryCFBagReplaceValue(theBag CFMutableBagRef, value unsafe.Pointer) error

TryCFBagReplaceValue is like CFBagReplaceValue but returns an error instead of panicking if CFBagReplaceValue is unavailable at run time.

func TryCFBagSetValue

func TryCFBagSetValue(theBag CFMutableBagRef, value unsafe.Pointer) error

TryCFBagSetValue is like CFBagSetValue but returns an error instead of panicking if CFBagSetValue is unavailable at run time.

func TryCFBinaryHeapAddValue

func TryCFBinaryHeapAddValue(heap CFBinaryHeapRef, value unsafe.Pointer) error

TryCFBinaryHeapAddValue is like CFBinaryHeapAddValue but returns an error instead of panicking if CFBinaryHeapAddValue is unavailable at run time.

func TryCFBinaryHeapApplyFunction

func TryCFBinaryHeapApplyFunction(heap CFBinaryHeapRef, applier CFBinaryHeapApplierFunction, context unsafe.Pointer) error

TryCFBinaryHeapApplyFunction is like CFBinaryHeapApplyFunction but returns an error instead of panicking if CFBinaryHeapApplyFunction is unavailable at run time.

func TryCFBinaryHeapContainsValue

func TryCFBinaryHeapContainsValue(heap CFBinaryHeapRef, value unsafe.Pointer) (bool, error)

TryCFBinaryHeapContainsValue is like CFBinaryHeapContainsValue but returns an error instead of panicking if CFBinaryHeapContainsValue is unavailable at run time.

func TryCFBinaryHeapGetMinimum

func TryCFBinaryHeapGetMinimum(heap CFBinaryHeapRef) (unsafe.Pointer, error)

TryCFBinaryHeapGetMinimum is like CFBinaryHeapGetMinimum but returns an error instead of panicking if CFBinaryHeapGetMinimum is unavailable at run time.

func TryCFBinaryHeapGetMinimumIfPresent

func TryCFBinaryHeapGetMinimumIfPresent(heap CFBinaryHeapRef, value unsafe.Pointer) (bool, error)

TryCFBinaryHeapGetMinimumIfPresent is like CFBinaryHeapGetMinimumIfPresent but returns an error instead of panicking if CFBinaryHeapGetMinimumIfPresent is unavailable at run time.

func TryCFBinaryHeapGetValues

func TryCFBinaryHeapGetValues(heap CFBinaryHeapRef, values unsafe.Pointer) error

TryCFBinaryHeapGetValues is like CFBinaryHeapGetValues but returns an error instead of panicking if CFBinaryHeapGetValues is unavailable at run time.

func TryCFBinaryHeapRemoveAllValues

func TryCFBinaryHeapRemoveAllValues(heap CFBinaryHeapRef) error

TryCFBinaryHeapRemoveAllValues is like CFBinaryHeapRemoveAllValues but returns an error instead of panicking if CFBinaryHeapRemoveAllValues is unavailable at run time.

func TryCFBinaryHeapRemoveMinimumValue

func TryCFBinaryHeapRemoveMinimumValue(heap CFBinaryHeapRef) error

TryCFBinaryHeapRemoveMinimumValue is like CFBinaryHeapRemoveMinimumValue but returns an error instead of panicking if CFBinaryHeapRemoveMinimumValue is unavailable at run time.

func TryCFBitVectorContainsBit

func TryCFBitVectorContainsBit(bv CFBitVectorRef, range_ CFRange, value CFBit) (bool, error)

TryCFBitVectorContainsBit is like CFBitVectorContainsBit but returns an error instead of panicking if CFBitVectorContainsBit is unavailable at run time.

func TryCFBitVectorFlipBitAtIndex

func TryCFBitVectorFlipBitAtIndex(bv CFMutableBitVectorRef, idx CFIndex) error

TryCFBitVectorFlipBitAtIndex is like CFBitVectorFlipBitAtIndex but returns an error instead of panicking if CFBitVectorFlipBitAtIndex is unavailable at run time.

func TryCFBitVectorFlipBits

func TryCFBitVectorFlipBits(bv CFMutableBitVectorRef, range_ CFRange) error

TryCFBitVectorFlipBits is like CFBitVectorFlipBits but returns an error instead of panicking if CFBitVectorFlipBits is unavailable at run time.

func TryCFBitVectorGetBits

func TryCFBitVectorGetBits(bv CFBitVectorRef, range_ CFRange, bytes []byte) error

TryCFBitVectorGetBits is like CFBitVectorGetBits but returns an error instead of panicking if CFBitVectorGetBits is unavailable at run time.

func TryCFBitVectorSetAllBits

func TryCFBitVectorSetAllBits(bv CFMutableBitVectorRef, value CFBit) error

TryCFBitVectorSetAllBits is like CFBitVectorSetAllBits but returns an error instead of panicking if CFBitVectorSetAllBits is unavailable at run time.

func TryCFBitVectorSetBitAtIndex

func TryCFBitVectorSetBitAtIndex(bv CFMutableBitVectorRef, idx CFIndex, value CFBit) error

TryCFBitVectorSetBitAtIndex is like CFBitVectorSetBitAtIndex but returns an error instead of panicking if CFBitVectorSetBitAtIndex is unavailable at run time.

func TryCFBitVectorSetBits

func TryCFBitVectorSetBits(bv CFMutableBitVectorRef, range_ CFRange, value CFBit) error

TryCFBitVectorSetBits is like CFBitVectorSetBits but returns an error instead of panicking if CFBitVectorSetBits is unavailable at run time.

func TryCFBitVectorSetCount

func TryCFBitVectorSetCount(bv CFMutableBitVectorRef, count CFIndex) error

TryCFBitVectorSetCount is like CFBitVectorSetCount but returns an error instead of panicking if CFBitVectorSetCount is unavailable at run time.

func TryCFBooleanGetValue

func TryCFBooleanGetValue(boolean CFBooleanRef) (bool, error)

TryCFBooleanGetValue is like CFBooleanGetValue but returns an error instead of panicking if CFBooleanGetValue is unavailable at run time.

func TryCFBundleCloseBundleResourceMap

func TryCFBundleCloseBundleResourceMap(bundle CFBundleRef, refNum CFBundleRefNum) error

TryCFBundleCloseBundleResourceMap is like CFBundleCloseBundleResourceMap but returns an error instead of panicking if CFBundleCloseBundleResourceMap is unavailable at run time.

func TryCFBundleGetDataPointerForName

func TryCFBundleGetDataPointerForName(bundle CFBundleRef, symbolName CFStringRef) (unsafe.Pointer, error)

TryCFBundleGetDataPointerForName is like CFBundleGetDataPointerForName but returns an error instead of panicking if CFBundleGetDataPointerForName is unavailable at run time.

func TryCFBundleGetDataPointersForNames

func TryCFBundleGetDataPointersForNames(bundle CFBundleRef, symbolNames CFArrayRef, stbl unsafe.Pointer) error

TryCFBundleGetDataPointersForNames is like CFBundleGetDataPointersForNames but returns an error instead of panicking if CFBundleGetDataPointersForNames is unavailable at run time.

func TryCFBundleGetFunctionPointerForName

func TryCFBundleGetFunctionPointerForName(bundle CFBundleRef, functionName CFStringRef) (unsafe.Pointer, error)

TryCFBundleGetFunctionPointerForName is like CFBundleGetFunctionPointerForName but returns an error instead of panicking if CFBundleGetFunctionPointerForName is unavailable at run time.

func TryCFBundleGetFunctionPointersForNames

func TryCFBundleGetFunctionPointersForNames(bundle CFBundleRef, functionNames CFArrayRef, ftbl unsafe.Pointer) error

TryCFBundleGetFunctionPointersForNames is like CFBundleGetFunctionPointersForNames but returns an error instead of panicking if CFBundleGetFunctionPointersForNames is unavailable at run time.

func TryCFBundleGetPackageInfo

func TryCFBundleGetPackageInfo(bundle CFBundleRef, packageType *uint32, packageCreator *uint32) error

TryCFBundleGetPackageInfo is like CFBundleGetPackageInfo but returns an error instead of panicking if CFBundleGetPackageInfo is unavailable at run time.

func TryCFBundleGetPackageInfoInDirectory

func TryCFBundleGetPackageInfoInDirectory(url CFURLRef, packageType *uint32, packageCreator *uint32) (bool, error)

TryCFBundleGetPackageInfoInDirectory is like CFBundleGetPackageInfoInDirectory but returns an error instead of panicking if CFBundleGetPackageInfoInDirectory is unavailable at run time.

func TryCFBundleGetVersionNumber

func TryCFBundleGetVersionNumber(bundle CFBundleRef) (uint32, error)

TryCFBundleGetVersionNumber is like CFBundleGetVersionNumber but returns an error instead of panicking if CFBundleGetVersionNumber is unavailable at run time.

func TryCFBundleIsArchitectureLoadable

func TryCFBundleIsArchitectureLoadable(arch int32) (bool, error)

TryCFBundleIsArchitectureLoadable is like CFBundleIsArchitectureLoadable but returns an error instead of panicking if CFBundleIsArchitectureLoadable is unavailable at run time.

func TryCFBundleIsExecutableLoadable

func TryCFBundleIsExecutableLoadable(bundle CFBundleRef) (bool, error)

TryCFBundleIsExecutableLoadable is like CFBundleIsExecutableLoadable but returns an error instead of panicking if CFBundleIsExecutableLoadable is unavailable at run time.

func TryCFBundleIsExecutableLoadableForURL

func TryCFBundleIsExecutableLoadableForURL(url CFURLRef) (bool, error)

TryCFBundleIsExecutableLoadableForURL is like CFBundleIsExecutableLoadableForURL but returns an error instead of panicking if CFBundleIsExecutableLoadableForURL is unavailable at run time.

func TryCFBundleIsExecutableLoaded

func TryCFBundleIsExecutableLoaded(bundle CFBundleRef) (bool, error)

TryCFBundleIsExecutableLoaded is like CFBundleIsExecutableLoaded but returns an error instead of panicking if CFBundleIsExecutableLoaded is unavailable at run time.

func TryCFBundleLoadExecutable

func TryCFBundleLoadExecutable(bundle CFBundleRef) (bool, error)

TryCFBundleLoadExecutable is like CFBundleLoadExecutable but returns an error instead of panicking if CFBundleLoadExecutable is unavailable at run time.

func TryCFBundleLoadExecutableAndReturnError

func TryCFBundleLoadExecutableAndReturnError(bundle CFBundleRef, err *CFErrorRef) (bool, error)

TryCFBundleLoadExecutableAndReturnError is like CFBundleLoadExecutableAndReturnError but returns an error instead of panicking if CFBundleLoadExecutableAndReturnError is unavailable at run time.

func TryCFBundleOpenBundleResourceFiles

func TryCFBundleOpenBundleResourceFiles(bundle CFBundleRef, refNum *CFBundleRefNum, localizedRefNum *CFBundleRefNum) (int32, error)

TryCFBundleOpenBundleResourceFiles is like CFBundleOpenBundleResourceFiles but returns an error instead of panicking if CFBundleOpenBundleResourceFiles is unavailable at run time.

func TryCFBundlePreflightExecutable

func TryCFBundlePreflightExecutable(bundle CFBundleRef, err *CFErrorRef) (bool, error)

TryCFBundlePreflightExecutable is like CFBundlePreflightExecutable but returns an error instead of panicking if CFBundlePreflightExecutable is unavailable at run time.

func TryCFBundleUnloadExecutable

func TryCFBundleUnloadExecutable(bundle CFBundleRef) error

TryCFBundleUnloadExecutable is like CFBundleUnloadExecutable but returns an error instead of panicking if CFBundleUnloadExecutable is unavailable at run time.

func TryCFCalendarAddComponents

func TryCFCalendarAddComponents(calendar CFCalendarRef, at *CFAbsoluteTime, options CFOptionFlags, componentDesc string) (bool, error)

TryCFCalendarAddComponents is like CFCalendarAddComponents but returns an error instead of panicking if CFCalendarAddComponents is unavailable at run time.

func TryCFCalendarComposeAbsoluteTime

func TryCFCalendarComposeAbsoluteTime(calendar CFCalendarRef, at *CFAbsoluteTime, componentDesc string) (bool, error)

TryCFCalendarComposeAbsoluteTime is like CFCalendarComposeAbsoluteTime but returns an error instead of panicking if CFCalendarComposeAbsoluteTime is unavailable at run time.

func TryCFCalendarDecomposeAbsoluteTime

func TryCFCalendarDecomposeAbsoluteTime(calendar CFCalendarRef, at CFAbsoluteTime, componentDesc string) (bool, error)

TryCFCalendarDecomposeAbsoluteTime is like CFCalendarDecomposeAbsoluteTime but returns an error instead of panicking if CFCalendarDecomposeAbsoluteTime is unavailable at run time.

func TryCFCalendarGetComponentDifference

func TryCFCalendarGetComponentDifference(calendar CFCalendarRef, startingAT CFAbsoluteTime, resultAT CFAbsoluteTime, options CFOptionFlags, componentDesc string) (bool, error)

TryCFCalendarGetComponentDifference is like CFCalendarGetComponentDifference but returns an error instead of panicking if CFCalendarGetComponentDifference is unavailable at run time.

func TryCFCalendarGetTimeRangeOfUnit

func TryCFCalendarGetTimeRangeOfUnit(calendar CFCalendarRef, unit CFCalendarUnit, at CFAbsoluteTime, startp *CFAbsoluteTime, tip *CFTimeInterval) (bool, error)

TryCFCalendarGetTimeRangeOfUnit is like CFCalendarGetTimeRangeOfUnit but returns an error instead of panicking if CFCalendarGetTimeRangeOfUnit is unavailable at run time.

func TryCFCalendarSetFirstWeekday

func TryCFCalendarSetFirstWeekday(calendar CFCalendarRef, wkdy CFIndex) error

TryCFCalendarSetFirstWeekday is like CFCalendarSetFirstWeekday but returns an error instead of panicking if CFCalendarSetFirstWeekday is unavailable at run time.

func TryCFCalendarSetLocale

func TryCFCalendarSetLocale(calendar CFCalendarRef, locale CFLocaleRef) error

TryCFCalendarSetLocale is like CFCalendarSetLocale but returns an error instead of panicking if CFCalendarSetLocale is unavailable at run time.

func TryCFCalendarSetMinimumDaysInFirstWeek

func TryCFCalendarSetMinimumDaysInFirstWeek(calendar CFCalendarRef, mwd CFIndex) error

TryCFCalendarSetMinimumDaysInFirstWeek is like CFCalendarSetMinimumDaysInFirstWeek but returns an error instead of panicking if CFCalendarSetMinimumDaysInFirstWeek is unavailable at run time.

func TryCFCalendarSetTimeZone

func TryCFCalendarSetTimeZone(calendar CFCalendarRef, tz CFTimeZoneRef) error

TryCFCalendarSetTimeZone is like CFCalendarSetTimeZone but returns an error instead of panicking if CFCalendarSetTimeZone is unavailable at run time.

func TryCFCharacterSetAddCharactersInRange

func TryCFCharacterSetAddCharactersInRange(theSet CFMutableCharacterSetRef, theRange CFRange) error

TryCFCharacterSetAddCharactersInRange is like CFCharacterSetAddCharactersInRange but returns an error instead of panicking if CFCharacterSetAddCharactersInRange is unavailable at run time.

func TryCFCharacterSetAddCharactersInString

func TryCFCharacterSetAddCharactersInString(theSet CFMutableCharacterSetRef, theString CFStringRef) error

TryCFCharacterSetAddCharactersInString is like CFCharacterSetAddCharactersInString but returns an error instead of panicking if CFCharacterSetAddCharactersInString is unavailable at run time.

func TryCFCharacterSetHasMemberInPlane

func TryCFCharacterSetHasMemberInPlane(theSet CFCharacterSetRef, thePlane CFIndex) (bool, error)

TryCFCharacterSetHasMemberInPlane is like CFCharacterSetHasMemberInPlane but returns an error instead of panicking if CFCharacterSetHasMemberInPlane is unavailable at run time.

func TryCFCharacterSetIntersect

func TryCFCharacterSetIntersect(theSet CFMutableCharacterSetRef, theOtherSet CFCharacterSetRef) error

TryCFCharacterSetIntersect is like CFCharacterSetIntersect but returns an error instead of panicking if CFCharacterSetIntersect is unavailable at run time.

func TryCFCharacterSetInvert

func TryCFCharacterSetInvert(theSet CFMutableCharacterSetRef) error

TryCFCharacterSetInvert is like CFCharacterSetInvert but returns an error instead of panicking if CFCharacterSetInvert is unavailable at run time.

func TryCFCharacterSetIsCharacterMember

func TryCFCharacterSetIsCharacterMember(theSet CFCharacterSetRef, theChar uint16) (bool, error)

TryCFCharacterSetIsCharacterMember is like CFCharacterSetIsCharacterMember but returns an error instead of panicking if CFCharacterSetIsCharacterMember is unavailable at run time.

func TryCFCharacterSetIsLongCharacterMember

func TryCFCharacterSetIsLongCharacterMember(theSet CFCharacterSetRef, theChar uint32) (bool, error)

TryCFCharacterSetIsLongCharacterMember is like CFCharacterSetIsLongCharacterMember but returns an error instead of panicking if CFCharacterSetIsLongCharacterMember is unavailable at run time.

func TryCFCharacterSetIsSupersetOfSet

func TryCFCharacterSetIsSupersetOfSet(theSet CFCharacterSetRef, theOtherset CFCharacterSetRef) (bool, error)

TryCFCharacterSetIsSupersetOfSet is like CFCharacterSetIsSupersetOfSet but returns an error instead of panicking if CFCharacterSetIsSupersetOfSet is unavailable at run time.

func TryCFCharacterSetRemoveCharactersInRange

func TryCFCharacterSetRemoveCharactersInRange(theSet CFMutableCharacterSetRef, theRange CFRange) error

TryCFCharacterSetRemoveCharactersInRange is like CFCharacterSetRemoveCharactersInRange but returns an error instead of panicking if CFCharacterSetRemoveCharactersInRange is unavailable at run time.

func TryCFCharacterSetRemoveCharactersInString

func TryCFCharacterSetRemoveCharactersInString(theSet CFMutableCharacterSetRef, theString CFStringRef) error

TryCFCharacterSetRemoveCharactersInString is like CFCharacterSetRemoveCharactersInString but returns an error instead of panicking if CFCharacterSetRemoveCharactersInString is unavailable at run time.

func TryCFCharacterSetUnion

func TryCFCharacterSetUnion(theSet CFMutableCharacterSetRef, theOtherSet CFCharacterSetRef) error

TryCFCharacterSetUnion is like CFCharacterSetUnion but returns an error instead of panicking if CFCharacterSetUnion is unavailable at run time.

func TryCFDataAppendBytes

func TryCFDataAppendBytes(theData CFMutableDataRef, bytes []byte, length CFIndex) error

TryCFDataAppendBytes is like CFDataAppendBytes but returns an error instead of panicking if CFDataAppendBytes is unavailable at run time.

func TryCFDataDeleteBytes

func TryCFDataDeleteBytes(theData CFMutableDataRef, range_ CFRange) error

TryCFDataDeleteBytes is like CFDataDeleteBytes but returns an error instead of panicking if CFDataDeleteBytes is unavailable at run time.

func TryCFDataGetBytePtr

func TryCFDataGetBytePtr(theData CFDataRef) (*uint8, error)

TryCFDataGetBytePtr is like CFDataGetBytePtr but returns an error instead of panicking if CFDataGetBytePtr is unavailable at run time.

func TryCFDataGetBytes

func TryCFDataGetBytes(theData CFDataRef, range_ CFRange, buffer []byte) error

TryCFDataGetBytes is like CFDataGetBytes but returns an error instead of panicking if CFDataGetBytes is unavailable at run time.

func TryCFDataGetMutableBytePtr

func TryCFDataGetMutableBytePtr(theData CFMutableDataRef) (*uint8, error)

TryCFDataGetMutableBytePtr is like CFDataGetMutableBytePtr but returns an error instead of panicking if CFDataGetMutableBytePtr is unavailable at run time.

func TryCFDataIncreaseLength

func TryCFDataIncreaseLength(theData CFMutableDataRef, extraLength CFIndex) error

TryCFDataIncreaseLength is like CFDataIncreaseLength but returns an error instead of panicking if CFDataIncreaseLength is unavailable at run time.

func TryCFDataReplaceBytes

func TryCFDataReplaceBytes(theData CFMutableDataRef, range_ CFRange, newBytes []byte, newLength CFIndex) error

TryCFDataReplaceBytes is like CFDataReplaceBytes but returns an error instead of panicking if CFDataReplaceBytes is unavailable at run time.

func TryCFDataSetLength

func TryCFDataSetLength(theData CFMutableDataRef, length CFIndex) error

TryCFDataSetLength is like CFDataSetLength but returns an error instead of panicking if CFDataSetLength is unavailable at run time.

func TryCFDateFormatterGetAbsoluteTimeFromString

func TryCFDateFormatterGetAbsoluteTimeFromString(formatter CFDateFormatterRef, string_ CFStringRef, rangep *CFRange, atp *CFAbsoluteTime) (bool, error)

TryCFDateFormatterGetAbsoluteTimeFromString is like CFDateFormatterGetAbsoluteTimeFromString but returns an error instead of panicking if CFDateFormatterGetAbsoluteTimeFromString is unavailable at run time.

func TryCFDateFormatterSetFormat

func TryCFDateFormatterSetFormat(formatter CFDateFormatterRef, formatString CFStringRef) error

TryCFDateFormatterSetFormat is like CFDateFormatterSetFormat but returns an error instead of panicking if CFDateFormatterSetFormat is unavailable at run time.

func TryCFDateFormatterSetProperty

func TryCFDateFormatterSetProperty(formatter CFDateFormatterRef, key CFStringRef, value CFTypeRef) error

TryCFDateFormatterSetProperty is like CFDateFormatterSetProperty but returns an error instead of panicking if CFDateFormatterSetProperty is unavailable at run time.

func TryCFDictionaryAddValue

func TryCFDictionaryAddValue(theDict CFMutableDictionaryRef, key unsafe.Pointer, value unsafe.Pointer) error

TryCFDictionaryAddValue is like CFDictionaryAddValue but returns an error instead of panicking if CFDictionaryAddValue is unavailable at run time.

func TryCFDictionaryApplyFunction

func TryCFDictionaryApplyFunction(theDict CFDictionaryRef, applier CFDictionaryApplierFunction, context unsafe.Pointer) error

TryCFDictionaryApplyFunction is like CFDictionaryApplyFunction but returns an error instead of panicking if CFDictionaryApplyFunction is unavailable at run time.

func TryCFDictionaryContainsKey

func TryCFDictionaryContainsKey(theDict CFDictionaryRef, key unsafe.Pointer) (bool, error)

TryCFDictionaryContainsKey is like CFDictionaryContainsKey but returns an error instead of panicking if CFDictionaryContainsKey is unavailable at run time.

func TryCFDictionaryContainsValue

func TryCFDictionaryContainsValue(theDict CFDictionaryRef, value unsafe.Pointer) (bool, error)

TryCFDictionaryContainsValue is like CFDictionaryContainsValue but returns an error instead of panicking if CFDictionaryContainsValue is unavailable at run time.

func TryCFDictionaryGetKeysAndValues

func TryCFDictionaryGetKeysAndValues(theDict CFDictionaryRef, keys unsafe.Pointer, values unsafe.Pointer) error

TryCFDictionaryGetKeysAndValues is like CFDictionaryGetKeysAndValues but returns an error instead of panicking if CFDictionaryGetKeysAndValues is unavailable at run time.

func TryCFDictionaryGetValue

func TryCFDictionaryGetValue(theDict CFDictionaryRef, key unsafe.Pointer) (unsafe.Pointer, error)

TryCFDictionaryGetValue is like CFDictionaryGetValue but returns an error instead of panicking if CFDictionaryGetValue is unavailable at run time.

func TryCFDictionaryGetValueIfPresent

func TryCFDictionaryGetValueIfPresent(theDict CFDictionaryRef, key unsafe.Pointer, value unsafe.Pointer) (bool, error)

TryCFDictionaryGetValueIfPresent is like CFDictionaryGetValueIfPresent but returns an error instead of panicking if CFDictionaryGetValueIfPresent is unavailable at run time.

func TryCFDictionaryRemoveAllValues

func TryCFDictionaryRemoveAllValues(theDict CFMutableDictionaryRef) error

TryCFDictionaryRemoveAllValues is like CFDictionaryRemoveAllValues but returns an error instead of panicking if CFDictionaryRemoveAllValues is unavailable at run time.

func TryCFDictionaryRemoveValue

func TryCFDictionaryRemoveValue(theDict CFMutableDictionaryRef, key unsafe.Pointer) error

TryCFDictionaryRemoveValue is like CFDictionaryRemoveValue but returns an error instead of panicking if CFDictionaryRemoveValue is unavailable at run time.

func TryCFDictionaryReplaceValue

func TryCFDictionaryReplaceValue(theDict CFMutableDictionaryRef, key unsafe.Pointer, value unsafe.Pointer) error

TryCFDictionaryReplaceValue is like CFDictionaryReplaceValue but returns an error instead of panicking if CFDictionaryReplaceValue is unavailable at run time.

func TryCFDictionarySetValue

func TryCFDictionarySetValue(theDict CFMutableDictionaryRef, key unsafe.Pointer, value unsafe.Pointer) error

TryCFDictionarySetValue is like CFDictionarySetValue but returns an error instead of panicking if CFDictionarySetValue is unavailable at run time.

func TryCFEqual

func TryCFEqual(cf1 CFTypeRef, cf2 CFTypeRef) (bool, error)

TryCFEqual is like CFEqual but returns an error instead of panicking if CFEqual is unavailable at run time.

func TryCFFileDescriptorDisableCallBacks

func TryCFFileDescriptorDisableCallBacks(f CFFileDescriptorRef, callBackTypes CFOptionFlags) error

TryCFFileDescriptorDisableCallBacks is like CFFileDescriptorDisableCallBacks but returns an error instead of panicking if CFFileDescriptorDisableCallBacks is unavailable at run time.

func TryCFFileDescriptorEnableCallBacks

func TryCFFileDescriptorEnableCallBacks(f CFFileDescriptorRef, callBackTypes CFOptionFlags) error

TryCFFileDescriptorEnableCallBacks is like CFFileDescriptorEnableCallBacks but returns an error instead of panicking if CFFileDescriptorEnableCallBacks is unavailable at run time.

func TryCFFileDescriptorGetContext

func TryCFFileDescriptorGetContext(f CFFileDescriptorRef, context *CFFileDescriptorContext) error

TryCFFileDescriptorGetContext is like CFFileDescriptorGetContext but returns an error instead of panicking if CFFileDescriptorGetContext is unavailable at run time.

func TryCFFileDescriptorInvalidate

func TryCFFileDescriptorInvalidate(f CFFileDescriptorRef) error

TryCFFileDescriptorInvalidate is like CFFileDescriptorInvalidate but returns an error instead of panicking if CFFileDescriptorInvalidate is unavailable at run time.

func TryCFFileDescriptorIsValid

func TryCFFileDescriptorIsValid(f CFFileDescriptorRef) (bool, error)

TryCFFileDescriptorIsValid is like CFFileDescriptorIsValid but returns an error instead of panicking if CFFileDescriptorIsValid is unavailable at run time.

func TryCFFileSecurityClearProperties

func TryCFFileSecurityClearProperties(fileSec CFFileSecurityRef, clearPropertyMask CFFileSecurityClearOptions) (bool, error)

TryCFFileSecurityClearProperties is like CFFileSecurityClearProperties but returns an error instead of panicking if CFFileSecurityClearProperties is unavailable at run time.

func TryCFFileSecurityCopyAccessControlList

func TryCFFileSecurityCopyAccessControlList(fileSec CFFileSecurityRef, accessControlList unsafe.Pointer) (bool, error)

TryCFFileSecurityCopyAccessControlList is like CFFileSecurityCopyAccessControlList but returns an error instead of panicking if CFFileSecurityCopyAccessControlList is unavailable at run time.

func TryCFFileSecurityCopyGroupUUID

func TryCFFileSecurityCopyGroupUUID(fileSec CFFileSecurityRef, groupUUID *CFUUIDRef) (bool, error)

TryCFFileSecurityCopyGroupUUID is like CFFileSecurityCopyGroupUUID but returns an error instead of panicking if CFFileSecurityCopyGroupUUID is unavailable at run time.

func TryCFFileSecurityCopyOwnerUUID

func TryCFFileSecurityCopyOwnerUUID(fileSec CFFileSecurityRef, ownerUUID *CFUUIDRef) (bool, error)

TryCFFileSecurityCopyOwnerUUID is like CFFileSecurityCopyOwnerUUID but returns an error instead of panicking if CFFileSecurityCopyOwnerUUID is unavailable at run time.

func TryCFFileSecurityGetGroup

func TryCFFileSecurityGetGroup(fileSec CFFileSecurityRef, group *uint32) (bool, error)

TryCFFileSecurityGetGroup is like CFFileSecurityGetGroup but returns an error instead of panicking if CFFileSecurityGetGroup is unavailable at run time.

func TryCFFileSecurityGetMode

func TryCFFileSecurityGetMode(fileSec CFFileSecurityRef, mode *uint16) (bool, error)

TryCFFileSecurityGetMode is like CFFileSecurityGetMode but returns an error instead of panicking if CFFileSecurityGetMode is unavailable at run time.

func TryCFFileSecurityGetOwner

func TryCFFileSecurityGetOwner(fileSec CFFileSecurityRef, owner *uint32) (bool, error)

TryCFFileSecurityGetOwner is like CFFileSecurityGetOwner but returns an error instead of panicking if CFFileSecurityGetOwner is unavailable at run time.

func TryCFFileSecuritySetAccessControlList

func TryCFFileSecuritySetAccessControlList(fileSec CFFileSecurityRef, accessControlList unsafe.Pointer) (bool, error)

TryCFFileSecuritySetAccessControlList is like CFFileSecuritySetAccessControlList but returns an error instead of panicking if CFFileSecuritySetAccessControlList is unavailable at run time.

func TryCFFileSecuritySetGroup

func TryCFFileSecuritySetGroup(fileSec CFFileSecurityRef, group uint32) (bool, error)

TryCFFileSecuritySetGroup is like CFFileSecuritySetGroup but returns an error instead of panicking if CFFileSecuritySetGroup is unavailable at run time.

func TryCFFileSecuritySetGroupUUID

func TryCFFileSecuritySetGroupUUID(fileSec CFFileSecurityRef, groupUUID CFUUIDRef) (bool, error)

TryCFFileSecuritySetGroupUUID is like CFFileSecuritySetGroupUUID but returns an error instead of panicking if CFFileSecuritySetGroupUUID is unavailable at run time.

func TryCFFileSecuritySetMode

func TryCFFileSecuritySetMode(fileSec CFFileSecurityRef, mode uint16) (bool, error)

TryCFFileSecuritySetMode is like CFFileSecuritySetMode but returns an error instead of panicking if CFFileSecuritySetMode is unavailable at run time.

func TryCFFileSecuritySetOwner

func TryCFFileSecuritySetOwner(fileSec CFFileSecurityRef, owner uint32) (bool, error)

TryCFFileSecuritySetOwner is like CFFileSecuritySetOwner but returns an error instead of panicking if CFFileSecuritySetOwner is unavailable at run time.

func TryCFFileSecuritySetOwnerUUID

func TryCFFileSecuritySetOwnerUUID(fileSec CFFileSecurityRef, ownerUUID CFUUIDRef) (bool, error)

TryCFFileSecuritySetOwnerUUID is like CFFileSecuritySetOwnerUUID but returns an error instead of panicking if CFFileSecuritySetOwnerUUID is unavailable at run time.

func TryCFGregorianDateIsValid

func TryCFGregorianDateIsValid(gdate CFGregorianDate, unitFlags CFOptionFlags) (bool, error)

TryCFGregorianDateIsValid is like CFGregorianDateIsValid but returns an error instead of panicking if CFGregorianDateIsValid is unavailable at run time.

func TryCFLocaleGetWindowsLocaleCodeFromLocaleIdentifier

func TryCFLocaleGetWindowsLocaleCodeFromLocaleIdentifier(localeIdentifier CFLocaleIdentifier) (uint32, error)

TryCFLocaleGetWindowsLocaleCodeFromLocaleIdentifier is like CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier but returns an error instead of panicking if CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier is unavailable at run time.

func TryCFMachPortGetContext

func TryCFMachPortGetContext(port CFMachPortRef, context *CFMachPortContext) error

TryCFMachPortGetContext is like CFMachPortGetContext but returns an error instead of panicking if CFMachPortGetContext is unavailable at run time.

func TryCFMachPortGetPort

func TryCFMachPortGetPort(port CFMachPortRef) (uint32, error)

TryCFMachPortGetPort is like CFMachPortGetPort but returns an error instead of panicking if CFMachPortGetPort is unavailable at run time.

func TryCFMachPortInvalidate

func TryCFMachPortInvalidate(port CFMachPortRef) error

TryCFMachPortInvalidate is like CFMachPortInvalidate but returns an error instead of panicking if CFMachPortInvalidate is unavailable at run time.

func TryCFMachPortIsValid

func TryCFMachPortIsValid(port CFMachPortRef) (bool, error)

TryCFMachPortIsValid is like CFMachPortIsValid but returns an error instead of panicking if CFMachPortIsValid is unavailable at run time.

func TryCFMachPortSetInvalidationCallBack

func TryCFMachPortSetInvalidationCallBack(port CFMachPortRef, callout CFMachPortInvalidationCallBack) error

TryCFMachPortSetInvalidationCallBack is like CFMachPortSetInvalidationCallBack but returns an error instead of panicking if CFMachPortSetInvalidationCallBack is unavailable at run time.

func TryCFMessagePortGetContext

func TryCFMessagePortGetContext(ms CFMessagePortRef, context *CFMessagePortContext) error

TryCFMessagePortGetContext is like CFMessagePortGetContext but returns an error instead of panicking if CFMessagePortGetContext is unavailable at run time.

func TryCFMessagePortInvalidate

func TryCFMessagePortInvalidate(ms CFMessagePortRef) error

TryCFMessagePortInvalidate is like CFMessagePortInvalidate but returns an error instead of panicking if CFMessagePortInvalidate is unavailable at run time.

func TryCFMessagePortIsRemote

func TryCFMessagePortIsRemote(ms CFMessagePortRef) (bool, error)

TryCFMessagePortIsRemote is like CFMessagePortIsRemote but returns an error instead of panicking if CFMessagePortIsRemote is unavailable at run time.

func TryCFMessagePortIsValid

func TryCFMessagePortIsValid(ms CFMessagePortRef) (bool, error)

TryCFMessagePortIsValid is like CFMessagePortIsValid but returns an error instead of panicking if CFMessagePortIsValid is unavailable at run time.

func TryCFMessagePortSendRequest

func TryCFMessagePortSendRequest(remote CFMessagePortRef, msgid int32, data CFDataRef, sendTimeout CFTimeInterval, rcvTimeout CFTimeInterval, replyMode CFStringRef, returnData *CFDataRef) (int32, error)

TryCFMessagePortSendRequest is like CFMessagePortSendRequest but returns an error instead of panicking if CFMessagePortSendRequest is unavailable at run time.

func TryCFMessagePortSetDispatchQueue

func TryCFMessagePortSetDispatchQueue(ms CFMessagePortRef, queue dispatch.Queue) error

TryCFMessagePortSetDispatchQueue is like CFMessagePortSetDispatchQueue but returns an error instead of panicking if CFMessagePortSetDispatchQueue is unavailable at run time.

func TryCFMessagePortSetInvalidationCallBack

func TryCFMessagePortSetInvalidationCallBack(ms CFMessagePortRef, callout CFMessagePortInvalidationCallBack) error

TryCFMessagePortSetInvalidationCallBack is like CFMessagePortSetInvalidationCallBack but returns an error instead of panicking if CFMessagePortSetInvalidationCallBack is unavailable at run time.

func TryCFMessagePortSetName

func TryCFMessagePortSetName(ms CFMessagePortRef, newName CFStringRef) (bool, error)

TryCFMessagePortSetName is like CFMessagePortSetName but returns an error instead of panicking if CFMessagePortSetName is unavailable at run time.

func TryCFNotificationCenterAddObserver

func TryCFNotificationCenterAddObserver(center CFNotificationCenterRef, observer unsafe.Pointer, callBack CFNotificationCallback, name CFStringRef, object unsafe.Pointer, suspensionBehavior CFNotificationSuspensionBehavior) error

TryCFNotificationCenterAddObserver is like CFNotificationCenterAddObserver but returns an error instead of panicking if CFNotificationCenterAddObserver is unavailable at run time.

func TryCFNotificationCenterPostNotification

func TryCFNotificationCenterPostNotification(center CFNotificationCenterRef, name CFNotificationName, object unsafe.Pointer, userInfo CFDictionaryRef, deliverImmediately bool) error

TryCFNotificationCenterPostNotification is like CFNotificationCenterPostNotification but returns an error instead of panicking if CFNotificationCenterPostNotification is unavailable at run time.

func TryCFNotificationCenterPostNotificationWithOptions

func TryCFNotificationCenterPostNotificationWithOptions(center CFNotificationCenterRef, name CFNotificationName, object unsafe.Pointer, userInfo CFDictionaryRef, options CFOptionFlags) error

TryCFNotificationCenterPostNotificationWithOptions is like CFNotificationCenterPostNotificationWithOptions but returns an error instead of panicking if CFNotificationCenterPostNotificationWithOptions is unavailable at run time.

func TryCFNotificationCenterRemoveEveryObserver

func TryCFNotificationCenterRemoveEveryObserver(center CFNotificationCenterRef, observer unsafe.Pointer) error

TryCFNotificationCenterRemoveEveryObserver is like CFNotificationCenterRemoveEveryObserver but returns an error instead of panicking if CFNotificationCenterRemoveEveryObserver is unavailable at run time.

func TryCFNotificationCenterRemoveObserver

func TryCFNotificationCenterRemoveObserver(center CFNotificationCenterRef, observer unsafe.Pointer, name CFNotificationName, object unsafe.Pointer) error

TryCFNotificationCenterRemoveObserver is like CFNotificationCenterRemoveObserver but returns an error instead of panicking if CFNotificationCenterRemoveObserver is unavailable at run time.

func TryCFNumberFormatterGetDecimalInfoForCurrencyCode

func TryCFNumberFormatterGetDecimalInfoForCurrencyCode(currencyCode CFStringRef, defaultFractionDigits *int32, roundingIncrement []float64) (bool, error)

TryCFNumberFormatterGetDecimalInfoForCurrencyCode is like CFNumberFormatterGetDecimalInfoForCurrencyCode but returns an error instead of panicking if CFNumberFormatterGetDecimalInfoForCurrencyCode is unavailable at run time.

func TryCFNumberFormatterGetValueFromString

func TryCFNumberFormatterGetValueFromString(formatter CFNumberFormatterRef, string_ CFStringRef, rangep *CFRange, numberType CFNumberType, valuePtr unsafe.Pointer) (bool, error)

TryCFNumberFormatterGetValueFromString is like CFNumberFormatterGetValueFromString but returns an error instead of panicking if CFNumberFormatterGetValueFromString is unavailable at run time.

func TryCFNumberFormatterSetFormat

func TryCFNumberFormatterSetFormat(formatter CFNumberFormatterRef, formatString CFStringRef) error

TryCFNumberFormatterSetFormat is like CFNumberFormatterSetFormat but returns an error instead of panicking if CFNumberFormatterSetFormat is unavailable at run time.

func TryCFNumberFormatterSetProperty

func TryCFNumberFormatterSetProperty(formatter CFNumberFormatterRef, key CFNumberFormatterKey, value CFTypeRef) error

TryCFNumberFormatterSetProperty is like CFNumberFormatterSetProperty but returns an error instead of panicking if CFNumberFormatterSetProperty is unavailable at run time.

func TryCFNumberGetValue

func TryCFNumberGetValue(number CFNumberRef, theType CFNumberType, valuePtr unsafe.Pointer) (bool, error)

TryCFNumberGetValue is like CFNumberGetValue but returns an error instead of panicking if CFNumberGetValue is unavailable at run time.

func TryCFNumberIsFloatType

func TryCFNumberIsFloatType(number CFNumberRef) (bool, error)

TryCFNumberIsFloatType is like CFNumberIsFloatType but returns an error instead of panicking if CFNumberIsFloatType is unavailable at run time.

func TryCFPlugInAddInstanceForFactory

func TryCFPlugInAddInstanceForFactory(factoryID CFUUIDRef) error

TryCFPlugInAddInstanceForFactory is like CFPlugInAddInstanceForFactory but returns an error instead of panicking if CFPlugInAddInstanceForFactory is unavailable at run time.

func TryCFPlugInInstanceCreate

func TryCFPlugInInstanceCreate(allocator CFAllocatorRef, factoryUUID CFUUIDRef, typeUUID CFUUIDRef) (unsafe.Pointer, error)

TryCFPlugInInstanceCreate is like CFPlugInInstanceCreate but returns an error instead of panicking if CFPlugInInstanceCreate is unavailable at run time.

func TryCFPlugInInstanceGetInstanceData

func TryCFPlugInInstanceGetInstanceData(instance CFPlugInInstanceRef) (unsafe.Pointer, error)

TryCFPlugInInstanceGetInstanceData is like CFPlugInInstanceGetInstanceData but returns an error instead of panicking if CFPlugInInstanceGetInstanceData is unavailable at run time.

func TryCFPlugInInstanceGetInterfaceFunctionTable

func TryCFPlugInInstanceGetInterfaceFunctionTable(instance CFPlugInInstanceRef, interfaceName CFStringRef, ftbl unsafe.Pointer) (bool, error)

TryCFPlugInInstanceGetInterfaceFunctionTable is like CFPlugInInstanceGetInterfaceFunctionTable but returns an error instead of panicking if CFPlugInInstanceGetInterfaceFunctionTable is unavailable at run time.

func TryCFPlugInIsLoadOnDemand

func TryCFPlugInIsLoadOnDemand(plugIn CFPlugInRef) (bool, error)

TryCFPlugInIsLoadOnDemand is like CFPlugInIsLoadOnDemand but returns an error instead of panicking if CFPlugInIsLoadOnDemand is unavailable at run time.

func TryCFPlugInRegisterFactoryFunction

func TryCFPlugInRegisterFactoryFunction(factoryUUID CFUUIDRef, func_ CFPlugInFactoryFunction) (bool, error)

TryCFPlugInRegisterFactoryFunction is like CFPlugInRegisterFactoryFunction but returns an error instead of panicking if CFPlugInRegisterFactoryFunction is unavailable at run time.

func TryCFPlugInRegisterFactoryFunctionByName

func TryCFPlugInRegisterFactoryFunctionByName(factoryUUID CFUUIDRef, plugIn CFPlugInRef, functionName CFStringRef) (bool, error)

TryCFPlugInRegisterFactoryFunctionByName is like CFPlugInRegisterFactoryFunctionByName but returns an error instead of panicking if CFPlugInRegisterFactoryFunctionByName is unavailable at run time.

func TryCFPlugInRegisterPlugInType

func TryCFPlugInRegisterPlugInType(factoryUUID CFUUIDRef, typeUUID CFUUIDRef) (bool, error)

TryCFPlugInRegisterPlugInType is like CFPlugInRegisterPlugInType but returns an error instead of panicking if CFPlugInRegisterPlugInType is unavailable at run time.

func TryCFPlugInRemoveInstanceForFactory

func TryCFPlugInRemoveInstanceForFactory(factoryID CFUUIDRef) error

TryCFPlugInRemoveInstanceForFactory is like CFPlugInRemoveInstanceForFactory but returns an error instead of panicking if CFPlugInRemoveInstanceForFactory is unavailable at run time.

func TryCFPlugInSetLoadOnDemand

func TryCFPlugInSetLoadOnDemand(plugIn CFPlugInRef, flag bool) error

TryCFPlugInSetLoadOnDemand is like CFPlugInSetLoadOnDemand but returns an error instead of panicking if CFPlugInSetLoadOnDemand is unavailable at run time.

func TryCFPlugInUnregisterFactory

func TryCFPlugInUnregisterFactory(factoryUUID CFUUIDRef) (bool, error)

TryCFPlugInUnregisterFactory is like CFPlugInUnregisterFactory but returns an error instead of panicking if CFPlugInUnregisterFactory is unavailable at run time.

func TryCFPlugInUnregisterPlugInType

func TryCFPlugInUnregisterPlugInType(factoryUUID CFUUIDRef, typeUUID CFUUIDRef) (bool, error)

TryCFPlugInUnregisterPlugInType is like CFPlugInUnregisterPlugInType but returns an error instead of panicking if CFPlugInUnregisterPlugInType is unavailable at run time.

func TryCFPreferencesAddSuitePreferencesToApp

func TryCFPreferencesAddSuitePreferencesToApp(applicationID CFStringRef, suiteID CFStringRef) error

TryCFPreferencesAddSuitePreferencesToApp is like CFPreferencesAddSuitePreferencesToApp but returns an error instead of panicking if CFPreferencesAddSuitePreferencesToApp is unavailable at run time.

func TryCFPreferencesAppSynchronize

func TryCFPreferencesAppSynchronize(applicationID CFStringRef) (bool, error)

TryCFPreferencesAppSynchronize is like CFPreferencesAppSynchronize but returns an error instead of panicking if CFPreferencesAppSynchronize is unavailable at run time.

func TryCFPreferencesAppValueIsForced

func TryCFPreferencesAppValueIsForced(key CFStringRef, applicationID CFStringRef) (bool, error)

TryCFPreferencesAppValueIsForced is like CFPreferencesAppValueIsForced but returns an error instead of panicking if CFPreferencesAppValueIsForced is unavailable at run time.

func TryCFPreferencesGetAppBooleanValue

func TryCFPreferencesGetAppBooleanValue(key CFStringRef, applicationID CFStringRef, keyExistsAndHasValidFormat *bool) (bool, error)

TryCFPreferencesGetAppBooleanValue is like CFPreferencesGetAppBooleanValue but returns an error instead of panicking if CFPreferencesGetAppBooleanValue is unavailable at run time.

func TryCFPreferencesRemoveSuitePreferencesFromApp

func TryCFPreferencesRemoveSuitePreferencesFromApp(applicationID CFStringRef, suiteID CFStringRef) error

TryCFPreferencesRemoveSuitePreferencesFromApp is like CFPreferencesRemoveSuitePreferencesFromApp but returns an error instead of panicking if CFPreferencesRemoveSuitePreferencesFromApp is unavailable at run time.

func TryCFPreferencesSetAppValue

func TryCFPreferencesSetAppValue(key CFStringRef, value CFPropertyListRef, applicationID CFStringRef) error

TryCFPreferencesSetAppValue is like CFPreferencesSetAppValue but returns an error instead of panicking if CFPreferencesSetAppValue is unavailable at run time.

func TryCFPreferencesSetMultiple

func TryCFPreferencesSetMultiple(keysToSet CFDictionaryRef, keysToRemove CFArrayRef, applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) error

TryCFPreferencesSetMultiple is like CFPreferencesSetMultiple but returns an error instead of panicking if CFPreferencesSetMultiple is unavailable at run time.

func TryCFPreferencesSetValue

func TryCFPreferencesSetValue(key CFStringRef, value CFPropertyListRef, applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) error

TryCFPreferencesSetValue is like CFPreferencesSetValue but returns an error instead of panicking if CFPreferencesSetValue is unavailable at run time.

func TryCFPreferencesSynchronize

func TryCFPreferencesSynchronize(applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) (bool, error)

TryCFPreferencesSynchronize is like CFPreferencesSynchronize but returns an error instead of panicking if CFPreferencesSynchronize is unavailable at run time.

func TryCFPropertyListIsValid

func TryCFPropertyListIsValid(plist CFPropertyListRef, format CFPropertyListFormat) (bool, error)

TryCFPropertyListIsValid is like CFPropertyListIsValid but returns an error instead of panicking if CFPropertyListIsValid is unavailable at run time.

func TryCFReadStreamClose

func TryCFReadStreamClose(stream CFReadStreamRef) error

TryCFReadStreamClose is like CFReadStreamClose but returns an error instead of panicking if CFReadStreamClose is unavailable at run time.

func TryCFReadStreamCopyDispatchQueue

func TryCFReadStreamCopyDispatchQueue(stream CFReadStreamRef) (dispatch.Queue, error)

TryCFReadStreamCopyDispatchQueue is like CFReadStreamCopyDispatchQueue but returns an error instead of panicking if CFReadStreamCopyDispatchQueue is unavailable at run time.

func TryCFReadStreamGetBuffer

func TryCFReadStreamGetBuffer(stream CFReadStreamRef, maxBytesToRead CFIndex, numBytesRead *CFIndex) (*uint8, error)

TryCFReadStreamGetBuffer is like CFReadStreamGetBuffer but returns an error instead of panicking if CFReadStreamGetBuffer is unavailable at run time.

func TryCFReadStreamHasBytesAvailable

func TryCFReadStreamHasBytesAvailable(stream CFReadStreamRef) (bool, error)

TryCFReadStreamHasBytesAvailable is like CFReadStreamHasBytesAvailable but returns an error instead of panicking if CFReadStreamHasBytesAvailable is unavailable at run time.

func TryCFReadStreamOpen

func TryCFReadStreamOpen(stream CFReadStreamRef) (bool, error)

TryCFReadStreamOpen is like CFReadStreamOpen but returns an error instead of panicking if CFReadStreamOpen is unavailable at run time.

func TryCFReadStreamScheduleWithRunLoop

func TryCFReadStreamScheduleWithRunLoop(stream CFReadStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode) error

TryCFReadStreamScheduleWithRunLoop is like CFReadStreamScheduleWithRunLoop but returns an error instead of panicking if CFReadStreamScheduleWithRunLoop is unavailable at run time.

func TryCFReadStreamSetClient

func TryCFReadStreamSetClient(stream CFReadStreamRef, streamEvents CFOptionFlags, clientCB CFReadStreamClientCallBack, clientContext *CFStreamClientContext) (bool, error)

TryCFReadStreamSetClient is like CFReadStreamSetClient but returns an error instead of panicking if CFReadStreamSetClient is unavailable at run time.

func TryCFReadStreamSetDispatchQueue

func TryCFReadStreamSetDispatchQueue(stream CFReadStreamRef, q dispatch.Queue) error

TryCFReadStreamSetDispatchQueue is like CFReadStreamSetDispatchQueue but returns an error instead of panicking if CFReadStreamSetDispatchQueue is unavailable at run time.

func TryCFReadStreamSetProperty

func TryCFReadStreamSetProperty(stream CFReadStreamRef, propertyName CFStreamPropertyKey, propertyValue CFTypeRef) (bool, error)

TryCFReadStreamSetProperty is like CFReadStreamSetProperty but returns an error instead of panicking if CFReadStreamSetProperty is unavailable at run time.

func TryCFReadStreamUnscheduleFromRunLoop

func TryCFReadStreamUnscheduleFromRunLoop(stream CFReadStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode) error

TryCFReadStreamUnscheduleFromRunLoop is like CFReadStreamUnscheduleFromRunLoop but returns an error instead of panicking if CFReadStreamUnscheduleFromRunLoop is unavailable at run time.

func TryCFRelease

func TryCFRelease(cf CFTypeRef) error

TryCFRelease is like CFRelease but returns an error instead of panicking if CFRelease is unavailable at run time.

func TryCFRunLoopAddCommonMode

func TryCFRunLoopAddCommonMode(rl CFRunLoopRef, mode CFRunLoopMode) error

TryCFRunLoopAddCommonMode is like CFRunLoopAddCommonMode but returns an error instead of panicking if CFRunLoopAddCommonMode is unavailable at run time.

func TryCFRunLoopAddObserver

func TryCFRunLoopAddObserver(rl CFRunLoopRef, observer CFRunLoopObserverRef, mode CFRunLoopMode) error

TryCFRunLoopAddObserver is like CFRunLoopAddObserver but returns an error instead of panicking if CFRunLoopAddObserver is unavailable at run time.

func TryCFRunLoopAddSource

func TryCFRunLoopAddSource(rl CFRunLoopRef, source CFRunLoopSourceRef, mode CFRunLoopMode) error

TryCFRunLoopAddSource is like CFRunLoopAddSource but returns an error instead of panicking if CFRunLoopAddSource is unavailable at run time.

func TryCFRunLoopAddTimer

func TryCFRunLoopAddTimer(rl CFRunLoopRef, timer CFRunLoopTimerRef, mode CFRunLoopMode) error

TryCFRunLoopAddTimer is like CFRunLoopAddTimer but returns an error instead of panicking if CFRunLoopAddTimer is unavailable at run time.

func TryCFRunLoopContainsObserver

func TryCFRunLoopContainsObserver(rl CFRunLoopRef, observer CFRunLoopObserverRef, mode CFRunLoopMode) (bool, error)

TryCFRunLoopContainsObserver is like CFRunLoopContainsObserver but returns an error instead of panicking if CFRunLoopContainsObserver is unavailable at run time.

func TryCFRunLoopContainsSource

func TryCFRunLoopContainsSource(rl CFRunLoopRef, source CFRunLoopSourceRef, mode CFRunLoopMode) (bool, error)

TryCFRunLoopContainsSource is like CFRunLoopContainsSource but returns an error instead of panicking if CFRunLoopContainsSource is unavailable at run time.

func TryCFRunLoopContainsTimer

func TryCFRunLoopContainsTimer(rl CFRunLoopRef, timer CFRunLoopTimerRef, mode CFRunLoopMode) (bool, error)

TryCFRunLoopContainsTimer is like CFRunLoopContainsTimer but returns an error instead of panicking if CFRunLoopContainsTimer is unavailable at run time.

func TryCFRunLoopIsWaiting

func TryCFRunLoopIsWaiting(rl CFRunLoopRef) (bool, error)

TryCFRunLoopIsWaiting is like CFRunLoopIsWaiting but returns an error instead of panicking if CFRunLoopIsWaiting is unavailable at run time.

func TryCFRunLoopObserverDoesRepeat

func TryCFRunLoopObserverDoesRepeat(observer CFRunLoopObserverRef) (bool, error)

TryCFRunLoopObserverDoesRepeat is like CFRunLoopObserverDoesRepeat but returns an error instead of panicking if CFRunLoopObserverDoesRepeat is unavailable at run time.

func TryCFRunLoopObserverGetContext

func TryCFRunLoopObserverGetContext(observer CFRunLoopObserverRef, context *CFRunLoopObserverContext) error

TryCFRunLoopObserverGetContext is like CFRunLoopObserverGetContext but returns an error instead of panicking if CFRunLoopObserverGetContext is unavailable at run time.

func TryCFRunLoopObserverInvalidate

func TryCFRunLoopObserverInvalidate(observer CFRunLoopObserverRef) error

TryCFRunLoopObserverInvalidate is like CFRunLoopObserverInvalidate but returns an error instead of panicking if CFRunLoopObserverInvalidate is unavailable at run time.

func TryCFRunLoopObserverIsValid

func TryCFRunLoopObserverIsValid(observer CFRunLoopObserverRef) (bool, error)

TryCFRunLoopObserverIsValid is like CFRunLoopObserverIsValid but returns an error instead of panicking if CFRunLoopObserverIsValid is unavailable at run time.

func TryCFRunLoopPerformBlock

func TryCFRunLoopPerformBlock(rl CFRunLoopRef, mode CFTypeRef) error

TryCFRunLoopPerformBlock is like CFRunLoopPerformBlock but returns an error instead of panicking if CFRunLoopPerformBlock is unavailable at run time.

func TryCFRunLoopRemoveObserver

func TryCFRunLoopRemoveObserver(rl CFRunLoopRef, observer CFRunLoopObserverRef, mode CFRunLoopMode) error

TryCFRunLoopRemoveObserver is like CFRunLoopRemoveObserver but returns an error instead of panicking if CFRunLoopRemoveObserver is unavailable at run time.

func TryCFRunLoopRemoveSource

func TryCFRunLoopRemoveSource(rl CFRunLoopRef, source CFRunLoopSourceRef, mode CFRunLoopMode) error

TryCFRunLoopRemoveSource is like CFRunLoopRemoveSource but returns an error instead of panicking if CFRunLoopRemoveSource is unavailable at run time.

func TryCFRunLoopRemoveTimer

func TryCFRunLoopRemoveTimer(rl CFRunLoopRef, timer CFRunLoopTimerRef, mode CFRunLoopMode) error

TryCFRunLoopRemoveTimer is like CFRunLoopRemoveTimer but returns an error instead of panicking if CFRunLoopRemoveTimer is unavailable at run time.

func TryCFRunLoopRun

func TryCFRunLoopRun() error

TryCFRunLoopRun is like CFRunLoopRun but returns an error instead of panicking if CFRunLoopRun is unavailable at run time.

func TryCFRunLoopSourceGetContext

func TryCFRunLoopSourceGetContext(source CFRunLoopSourceRef, context *CFRunLoopSourceContext) error

TryCFRunLoopSourceGetContext is like CFRunLoopSourceGetContext but returns an error instead of panicking if CFRunLoopSourceGetContext is unavailable at run time.

func TryCFRunLoopSourceInvalidate

func TryCFRunLoopSourceInvalidate(source CFRunLoopSourceRef) error

TryCFRunLoopSourceInvalidate is like CFRunLoopSourceInvalidate but returns an error instead of panicking if CFRunLoopSourceInvalidate is unavailable at run time.

func TryCFRunLoopSourceIsValid

func TryCFRunLoopSourceIsValid(source CFRunLoopSourceRef) (bool, error)

TryCFRunLoopSourceIsValid is like CFRunLoopSourceIsValid but returns an error instead of panicking if CFRunLoopSourceIsValid is unavailable at run time.

func TryCFRunLoopSourceSignal

func TryCFRunLoopSourceSignal(source CFRunLoopSourceRef) error

TryCFRunLoopSourceSignal is like CFRunLoopSourceSignal but returns an error instead of panicking if CFRunLoopSourceSignal is unavailable at run time.

func TryCFRunLoopStop

func TryCFRunLoopStop(rl CFRunLoopRef) error

TryCFRunLoopStop is like CFRunLoopStop but returns an error instead of panicking if CFRunLoopStop is unavailable at run time.

func TryCFRunLoopTimerDoesRepeat

func TryCFRunLoopTimerDoesRepeat(timer CFRunLoopTimerRef) (bool, error)

TryCFRunLoopTimerDoesRepeat is like CFRunLoopTimerDoesRepeat but returns an error instead of panicking if CFRunLoopTimerDoesRepeat is unavailable at run time.

func TryCFRunLoopTimerGetContext

func TryCFRunLoopTimerGetContext(timer CFRunLoopTimerRef, context *CFRunLoopTimerContext) error

TryCFRunLoopTimerGetContext is like CFRunLoopTimerGetContext but returns an error instead of panicking if CFRunLoopTimerGetContext is unavailable at run time.

func TryCFRunLoopTimerInvalidate

func TryCFRunLoopTimerInvalidate(timer CFRunLoopTimerRef) error

TryCFRunLoopTimerInvalidate is like CFRunLoopTimerInvalidate but returns an error instead of panicking if CFRunLoopTimerInvalidate is unavailable at run time.

func TryCFRunLoopTimerIsValid

func TryCFRunLoopTimerIsValid(timer CFRunLoopTimerRef) (bool, error)

TryCFRunLoopTimerIsValid is like CFRunLoopTimerIsValid but returns an error instead of panicking if CFRunLoopTimerIsValid is unavailable at run time.

func TryCFRunLoopTimerSetNextFireDate

func TryCFRunLoopTimerSetNextFireDate(timer CFRunLoopTimerRef, fireDate CFAbsoluteTime) error

TryCFRunLoopTimerSetNextFireDate is like CFRunLoopTimerSetNextFireDate but returns an error instead of panicking if CFRunLoopTimerSetNextFireDate is unavailable at run time.

func TryCFRunLoopTimerSetTolerance

func TryCFRunLoopTimerSetTolerance(timer CFRunLoopTimerRef, tolerance CFTimeInterval) error

TryCFRunLoopTimerSetTolerance is like CFRunLoopTimerSetTolerance but returns an error instead of panicking if CFRunLoopTimerSetTolerance is unavailable at run time.

func TryCFRunLoopWakeUp

func TryCFRunLoopWakeUp(rl CFRunLoopRef) error

TryCFRunLoopWakeUp is like CFRunLoopWakeUp but returns an error instead of panicking if CFRunLoopWakeUp is unavailable at run time.

func TryCFSetAddValue

func TryCFSetAddValue(theSet CFMutableSetRef, value unsafe.Pointer) error

TryCFSetAddValue is like CFSetAddValue but returns an error instead of panicking if CFSetAddValue is unavailable at run time.

func TryCFSetApplyFunction

func TryCFSetApplyFunction(theSet CFSetRef, applier CFSetApplierFunction, context unsafe.Pointer) error

TryCFSetApplyFunction is like CFSetApplyFunction but returns an error instead of panicking if CFSetApplyFunction is unavailable at run time.

func TryCFSetContainsValue

func TryCFSetContainsValue(theSet CFSetRef, value unsafe.Pointer) (bool, error)

TryCFSetContainsValue is like CFSetContainsValue but returns an error instead of panicking if CFSetContainsValue is unavailable at run time.

func TryCFSetGetValue

func TryCFSetGetValue(theSet CFSetRef, value unsafe.Pointer) (unsafe.Pointer, error)

TryCFSetGetValue is like CFSetGetValue but returns an error instead of panicking if CFSetGetValue is unavailable at run time.

func TryCFSetGetValueIfPresent

func TryCFSetGetValueIfPresent(theSet CFSetRef, candidate unsafe.Pointer, value unsafe.Pointer) (bool, error)

TryCFSetGetValueIfPresent is like CFSetGetValueIfPresent but returns an error instead of panicking if CFSetGetValueIfPresent is unavailable at run time.

func TryCFSetGetValues

func TryCFSetGetValues(theSet CFSetRef, values unsafe.Pointer) error

TryCFSetGetValues is like CFSetGetValues but returns an error instead of panicking if CFSetGetValues is unavailable at run time.

func TryCFSetRemoveAllValues

func TryCFSetRemoveAllValues(theSet CFMutableSetRef) error

TryCFSetRemoveAllValues is like CFSetRemoveAllValues but returns an error instead of panicking if CFSetRemoveAllValues is unavailable at run time.

func TryCFSetRemoveValue

func TryCFSetRemoveValue(theSet CFMutableSetRef, value unsafe.Pointer) error

TryCFSetRemoveValue is like CFSetRemoveValue but returns an error instead of panicking if CFSetRemoveValue is unavailable at run time.

func TryCFSetReplaceValue

func TryCFSetReplaceValue(theSet CFMutableSetRef, value unsafe.Pointer) error

TryCFSetReplaceValue is like CFSetReplaceValue but returns an error instead of panicking if CFSetReplaceValue is unavailable at run time.

func TryCFSetSetValue

func TryCFSetSetValue(theSet CFMutableSetRef, value unsafe.Pointer) error

TryCFSetSetValue is like CFSetSetValue but returns an error instead of panicking if CFSetSetValue is unavailable at run time.

func TryCFShow

func TryCFShow(obj CFTypeRef) error

TryCFShow is like CFShow but returns an error instead of panicking if CFShow is unavailable at run time.

func TryCFShowStr

func TryCFShowStr(str CFStringRef) error

TryCFShowStr is like CFShowStr but returns an error instead of panicking if CFShowStr is unavailable at run time.

func TryCFSocketDisableCallBacks

func TryCFSocketDisableCallBacks(s CFSocketRef, callBackTypes CFOptionFlags) error

TryCFSocketDisableCallBacks is like CFSocketDisableCallBacks but returns an error instead of panicking if CFSocketDisableCallBacks is unavailable at run time.

func TryCFSocketEnableCallBacks

func TryCFSocketEnableCallBacks(s CFSocketRef, callBackTypes CFOptionFlags) error

TryCFSocketEnableCallBacks is like CFSocketEnableCallBacks but returns an error instead of panicking if CFSocketEnableCallBacks is unavailable at run time.

func TryCFSocketGetContext

func TryCFSocketGetContext(s CFSocketRef, context *CFSocketContext) error

TryCFSocketGetContext is like CFSocketGetContext but returns an error instead of panicking if CFSocketGetContext is unavailable at run time.

func TryCFSocketGetDefaultNameRegistryPortNumber

func TryCFSocketGetDefaultNameRegistryPortNumber() (uint16, error)

TryCFSocketGetDefaultNameRegistryPortNumber is like CFSocketGetDefaultNameRegistryPortNumber but returns an error instead of panicking if CFSocketGetDefaultNameRegistryPortNumber is unavailable at run time.

func TryCFSocketInvalidate

func TryCFSocketInvalidate(s CFSocketRef) error

TryCFSocketInvalidate is like CFSocketInvalidate but returns an error instead of panicking if CFSocketInvalidate is unavailable at run time.

func TryCFSocketIsValid

func TryCFSocketIsValid(s CFSocketRef) (bool, error)

TryCFSocketIsValid is like CFSocketIsValid but returns an error instead of panicking if CFSocketIsValid is unavailable at run time.

func TryCFSocketSetDefaultNameRegistryPortNumber

func TryCFSocketSetDefaultNameRegistryPortNumber(port uint16) error

TryCFSocketSetDefaultNameRegistryPortNumber is like CFSocketSetDefaultNameRegistryPortNumber but returns an error instead of panicking if CFSocketSetDefaultNameRegistryPortNumber is unavailable at run time.

func TryCFSocketSetSocketFlags

func TryCFSocketSetSocketFlags(s CFSocketRef, flags CFOptionFlags) error

TryCFSocketSetSocketFlags is like CFSocketSetSocketFlags but returns an error instead of panicking if CFSocketSetSocketFlags is unavailable at run time.

func TryCFStreamCreateBoundPair

func TryCFStreamCreateBoundPair(alloc CFAllocatorRef, readStream *CFReadStreamRef, writeStream *CFWriteStreamRef, transferBufferSize CFIndex) error

TryCFStreamCreateBoundPair is like CFStreamCreateBoundPair but returns an error instead of panicking if CFStreamCreateBoundPair is unavailable at run time.

func TryCFStreamCreatePairWithPeerSocketSignature

func TryCFStreamCreatePairWithPeerSocketSignature(alloc CFAllocatorRef, signature *CFSocketSignature, readStream *CFReadStreamRef, writeStream *CFWriteStreamRef) error

TryCFStreamCreatePairWithPeerSocketSignature is like CFStreamCreatePairWithPeerSocketSignature but returns an error instead of panicking if CFStreamCreatePairWithPeerSocketSignature is unavailable at run time.

func TryCFStreamCreatePairWithSocket

func TryCFStreamCreatePairWithSocket(alloc CFAllocatorRef, sock CFSocketNativeHandle, readStream *CFReadStreamRef, writeStream *CFWriteStreamRef) error

TryCFStreamCreatePairWithSocket is like CFStreamCreatePairWithSocket but returns an error instead of panicking if CFStreamCreatePairWithSocket is unavailable at run time.

func TryCFStreamCreatePairWithSocketToHost

func TryCFStreamCreatePairWithSocketToHost(alloc CFAllocatorRef, host CFStringRef, port uint32, readStream *CFReadStreamRef, writeStream *CFWriteStreamRef) error

TryCFStreamCreatePairWithSocketToHost is like CFStreamCreatePairWithSocketToHost but returns an error instead of panicking if CFStreamCreatePairWithSocketToHost is unavailable at run time.

func TryCFStringAppend

func TryCFStringAppend(theString CFMutableStringRef, appendedString CFStringRef) error

TryCFStringAppend is like CFStringAppend but returns an error instead of panicking if CFStringAppend is unavailable at run time.

func TryCFStringAppendCString

func TryCFStringAppendCString(theString CFMutableStringRef, cStr string, encoding CFStringEncoding) error

TryCFStringAppendCString is like CFStringAppendCString but returns an error instead of panicking if CFStringAppendCString is unavailable at run time.

func TryCFStringAppendCharacters

func TryCFStringAppendCharacters(theString CFMutableStringRef, chars *uint16, numChars CFIndex) error

TryCFStringAppendCharacters is like CFStringAppendCharacters but returns an error instead of panicking if CFStringAppendCharacters is unavailable at run time.

func TryCFStringAppendFormat

func TryCFStringAppendFormat(theString CFMutableStringRef, formatOptions CFDictionaryRef, format CFStringRef) error

TryCFStringAppendFormat is like CFStringAppendFormat but returns an error instead of panicking if CFStringAppendFormat is unavailable at run time.

func TryCFStringAppendFormatAndArguments

func TryCFStringAppendFormatAndArguments(theString CFMutableStringRef, formatOptions CFDictionaryRef, format CFStringRef, arguments kernel.Va_list) error

TryCFStringAppendFormatAndArguments is like CFStringAppendFormatAndArguments but returns an error instead of panicking if CFStringAppendFormatAndArguments is unavailable at run time.

func TryCFStringAppendPascalString

func TryCFStringAppendPascalString(theString CFMutableStringRef, pStr unsafe.Pointer, encoding CFStringEncoding) error

TryCFStringAppendPascalString is like CFStringAppendPascalString but returns an error instead of panicking if CFStringAppendPascalString is unavailable at run time.

func TryCFStringCapitalize

func TryCFStringCapitalize(theString CFMutableStringRef, locale CFLocaleRef) error

TryCFStringCapitalize is like CFStringCapitalize but returns an error instead of panicking if CFStringCapitalize is unavailable at run time.

func TryCFStringConvertEncodingToNSStringEncoding

func TryCFStringConvertEncodingToNSStringEncoding(encoding CFStringEncoding) (uint, error)

TryCFStringConvertEncodingToNSStringEncoding is like CFStringConvertEncodingToNSStringEncoding but returns an error instead of panicking if CFStringConvertEncodingToNSStringEncoding is unavailable at run time.

func TryCFStringConvertEncodingToWindowsCodepage

func TryCFStringConvertEncodingToWindowsCodepage(encoding CFStringEncoding) (uint32, error)

TryCFStringConvertEncodingToWindowsCodepage is like CFStringConvertEncodingToWindowsCodepage but returns an error instead of panicking if CFStringConvertEncodingToWindowsCodepage is unavailable at run time.

func TryCFStringDelete

func TryCFStringDelete(theString CFMutableStringRef, range_ CFRange) error

TryCFStringDelete is like CFStringDelete but returns an error instead of panicking if CFStringDelete is unavailable at run time.

func TryCFStringFindCharacterFromSet

func TryCFStringFindCharacterFromSet(theString CFStringRef, theSet CFCharacterSetRef, rangeToSearch CFRange, searchOptions CFStringCompareFlags, result *CFRange) (bool, error)

TryCFStringFindCharacterFromSet is like CFStringFindCharacterFromSet but returns an error instead of panicking if CFStringFindCharacterFromSet is unavailable at run time.

func TryCFStringFindWithOptions

func TryCFStringFindWithOptions(theString CFStringRef, stringToFind CFStringRef, rangeToSearch CFRange, searchOptions CFStringCompareFlags, result *CFRange) (bool, error)

TryCFStringFindWithOptions is like CFStringFindWithOptions but returns an error instead of panicking if CFStringFindWithOptions is unavailable at run time.

func TryCFStringFindWithOptionsAndLocale

func TryCFStringFindWithOptionsAndLocale(theString CFStringRef, stringToFind CFStringRef, rangeToSearch CFRange, searchOptions CFStringCompareFlags, locale CFLocaleRef, result *CFRange) (bool, error)

TryCFStringFindWithOptionsAndLocale is like CFStringFindWithOptionsAndLocale but returns an error instead of panicking if CFStringFindWithOptionsAndLocale is unavailable at run time.

func TryCFStringFold

func TryCFStringFold(theString CFMutableStringRef, theFlags CFStringCompareFlags, theLocale CFLocaleRef) error

TryCFStringFold is like CFStringFold but returns an error instead of panicking if CFStringFold is unavailable at run time.

func TryCFStringGetCString

func TryCFStringGetCString(theString CFStringRef, buffer *byte, bufferSize CFIndex, encoding CFStringEncoding) (bool, error)

TryCFStringGetCString is like CFStringGetCString but returns an error instead of panicking if CFStringGetCString is unavailable at run time.

func TryCFStringGetCStringPtr

func TryCFStringGetCStringPtr(theString CFStringRef, encoding CFStringEncoding) (*byte, error)

TryCFStringGetCStringPtr is like CFStringGetCStringPtr but returns an error instead of panicking if CFStringGetCStringPtr is unavailable at run time.

func TryCFStringGetCharacterAtIndex

func TryCFStringGetCharacterAtIndex(theString CFStringRef, idx CFIndex) (uint16, error)

TryCFStringGetCharacterAtIndex is like CFStringGetCharacterAtIndex but returns an error instead of panicking if CFStringGetCharacterAtIndex is unavailable at run time.

func TryCFStringGetCharacters

func TryCFStringGetCharacters(theString CFStringRef, range_ CFRange, buffer *uint16) error

TryCFStringGetCharacters is like CFStringGetCharacters but returns an error instead of panicking if CFStringGetCharacters is unavailable at run time.

func TryCFStringGetCharactersPtr

func TryCFStringGetCharactersPtr(theString CFStringRef) (*uint16, error)

TryCFStringGetCharactersPtr is like CFStringGetCharactersPtr but returns an error instead of panicking if CFStringGetCharactersPtr is unavailable at run time.

func TryCFStringGetDoubleValue

func TryCFStringGetDoubleValue(str CFStringRef) (float64, error)

TryCFStringGetDoubleValue is like CFStringGetDoubleValue but returns an error instead of panicking if CFStringGetDoubleValue is unavailable at run time.

func TryCFStringGetFileSystemRepresentation

func TryCFStringGetFileSystemRepresentation(string_ CFStringRef, buffer *byte, maxBufLen CFIndex) (bool, error)

TryCFStringGetFileSystemRepresentation is like CFStringGetFileSystemRepresentation but returns an error instead of panicking if CFStringGetFileSystemRepresentation is unavailable at run time.

func TryCFStringGetIntValue

func TryCFStringGetIntValue(str CFStringRef) (int32, error)

TryCFStringGetIntValue is like CFStringGetIntValue but returns an error instead of panicking if CFStringGetIntValue is unavailable at run time.

func TryCFStringGetLineBounds

func TryCFStringGetLineBounds(theString CFStringRef, range_ CFRange, lineBeginIndex *CFIndex, lineEndIndex *CFIndex, contentsEndIndex *CFIndex) error

TryCFStringGetLineBounds is like CFStringGetLineBounds but returns an error instead of panicking if CFStringGetLineBounds is unavailable at run time.

func TryCFStringGetParagraphBounds

func TryCFStringGetParagraphBounds(string_ CFStringRef, range_ CFRange, parBeginIndex *CFIndex, parEndIndex *CFIndex, contentsEndIndex *CFIndex) error

TryCFStringGetParagraphBounds is like CFStringGetParagraphBounds but returns an error instead of panicking if CFStringGetParagraphBounds is unavailable at run time.

func TryCFStringGetPascalString

func TryCFStringGetPascalString(theString CFStringRef, buffer *byte, bufferSize CFIndex, encoding CFStringEncoding) (bool, error)

TryCFStringGetPascalString is like CFStringGetPascalString but returns an error instead of panicking if CFStringGetPascalString is unavailable at run time.

func TryCFStringGetPascalStringPtr

func TryCFStringGetPascalStringPtr(theString CFStringRef, encoding CFStringEncoding) (*byte, error)

TryCFStringGetPascalStringPtr is like CFStringGetPascalStringPtr but returns an error instead of panicking if CFStringGetPascalStringPtr is unavailable at run time.

func TryCFStringHasPrefix

func TryCFStringHasPrefix(theString CFStringRef, prefix CFStringRef) (bool, error)

TryCFStringHasPrefix is like CFStringHasPrefix but returns an error instead of panicking if CFStringHasPrefix is unavailable at run time.

func TryCFStringHasSuffix

func TryCFStringHasSuffix(theString CFStringRef, suffix CFStringRef) (bool, error)

TryCFStringHasSuffix is like CFStringHasSuffix but returns an error instead of panicking if CFStringHasSuffix is unavailable at run time.

func TryCFStringInsert

func TryCFStringInsert(str CFMutableStringRef, idx CFIndex, insertedStr CFStringRef) error

TryCFStringInsert is like CFStringInsert but returns an error instead of panicking if CFStringInsert is unavailable at run time.

func TryCFStringIsEncodingAvailable

func TryCFStringIsEncodingAvailable(encoding CFStringEncoding) (bool, error)

TryCFStringIsEncodingAvailable is like CFStringIsEncodingAvailable but returns an error instead of panicking if CFStringIsEncodingAvailable is unavailable at run time.

func TryCFStringIsHyphenationAvailableForLocale

func TryCFStringIsHyphenationAvailableForLocale(locale CFLocaleRef) (bool, error)

TryCFStringIsHyphenationAvailableForLocale is like CFStringIsHyphenationAvailableForLocale but returns an error instead of panicking if CFStringIsHyphenationAvailableForLocale is unavailable at run time.

func TryCFStringLowercase

func TryCFStringLowercase(theString CFMutableStringRef, locale CFLocaleRef) error

TryCFStringLowercase is like CFStringLowercase but returns an error instead of panicking if CFStringLowercase is unavailable at run time.

func TryCFStringNormalize

func TryCFStringNormalize(theString CFMutableStringRef, theForm CFStringNormalizationForm) error

TryCFStringNormalize is like CFStringNormalize but returns an error instead of panicking if CFStringNormalize is unavailable at run time.

func TryCFStringPad

func TryCFStringPad(theString CFMutableStringRef, padString CFStringRef, length CFIndex, indexIntoPad CFIndex) error

TryCFStringPad is like CFStringPad but returns an error instead of panicking if CFStringPad is unavailable at run time.

func TryCFStringReplace

func TryCFStringReplace(theString CFMutableStringRef, range_ CFRange, replacement CFStringRef) error

TryCFStringReplace is like CFStringReplace but returns an error instead of panicking if CFStringReplace is unavailable at run time.

func TryCFStringReplaceAll

func TryCFStringReplaceAll(theString CFMutableStringRef, replacement CFStringRef) error

TryCFStringReplaceAll is like CFStringReplaceAll but returns an error instead of panicking if CFStringReplaceAll is unavailable at run time.

func TryCFStringSetExternalCharactersNoCopy

func TryCFStringSetExternalCharactersNoCopy(theString CFMutableStringRef, chars *uint16, length CFIndex, capacity CFIndex) error

TryCFStringSetExternalCharactersNoCopy is like CFStringSetExternalCharactersNoCopy but returns an error instead of panicking if CFStringSetExternalCharactersNoCopy is unavailable at run time.

func TryCFStringTokenizerSetString

func TryCFStringTokenizerSetString(tokenizer CFStringTokenizerRef, string_ CFStringRef, range_ CFRange) error

TryCFStringTokenizerSetString is like CFStringTokenizerSetString but returns an error instead of panicking if CFStringTokenizerSetString is unavailable at run time.

func TryCFStringTransform

func TryCFStringTransform(string_ CFMutableStringRef, range_ *CFRange, transform CFStringRef, reverse bool) (bool, error)

TryCFStringTransform is like CFStringTransform but returns an error instead of panicking if CFStringTransform is unavailable at run time.

func TryCFStringTrim

func TryCFStringTrim(theString CFMutableStringRef, trimString CFStringRef) error

TryCFStringTrim is like CFStringTrim but returns an error instead of panicking if CFStringTrim is unavailable at run time.

func TryCFStringTrimWhitespace

func TryCFStringTrimWhitespace(theString CFMutableStringRef) error

TryCFStringTrimWhitespace is like CFStringTrimWhitespace but returns an error instead of panicking if CFStringTrimWhitespace is unavailable at run time.

func TryCFStringUppercase

func TryCFStringUppercase(theString CFMutableStringRef, locale CFLocaleRef) error

TryCFStringUppercase is like CFStringUppercase but returns an error instead of panicking if CFStringUppercase is unavailable at run time.

func TryCFTimeZoneIsDaylightSavingTime

func TryCFTimeZoneIsDaylightSavingTime(tz CFTimeZoneRef, at CFAbsoluteTime) (bool, error)

TryCFTimeZoneIsDaylightSavingTime is like CFTimeZoneIsDaylightSavingTime but returns an error instead of panicking if CFTimeZoneIsDaylightSavingTime is unavailable at run time.

func TryCFTimeZoneResetSystem

func TryCFTimeZoneResetSystem() error

TryCFTimeZoneResetSystem is like CFTimeZoneResetSystem but returns an error instead of panicking if CFTimeZoneResetSystem is unavailable at run time.

func TryCFTimeZoneSetAbbreviationDictionary

func TryCFTimeZoneSetAbbreviationDictionary(dict CFDictionaryRef) error

TryCFTimeZoneSetAbbreviationDictionary is like CFTimeZoneSetAbbreviationDictionary but returns an error instead of panicking if CFTimeZoneSetAbbreviationDictionary is unavailable at run time.

func TryCFTimeZoneSetDefault

func TryCFTimeZoneSetDefault(tz CFTimeZoneRef) error

TryCFTimeZoneSetDefault is like CFTimeZoneSetDefault but returns an error instead of panicking if CFTimeZoneSetDefault is unavailable at run time.

func TryCFTreeAppendChild

func TryCFTreeAppendChild(tree CFTreeRef, newChild CFTreeRef) error

TryCFTreeAppendChild is like CFTreeAppendChild but returns an error instead of panicking if CFTreeAppendChild is unavailable at run time.

func TryCFTreeApplyFunctionToChildren

func TryCFTreeApplyFunctionToChildren(tree CFTreeRef, applier CFTreeApplierFunction, context unsafe.Pointer) error

TryCFTreeApplyFunctionToChildren is like CFTreeApplyFunctionToChildren but returns an error instead of panicking if CFTreeApplyFunctionToChildren is unavailable at run time.

func TryCFTreeGetChildren

func TryCFTreeGetChildren(tree CFTreeRef, children *CFTreeRef) error

TryCFTreeGetChildren is like CFTreeGetChildren but returns an error instead of panicking if CFTreeGetChildren is unavailable at run time.

func TryCFTreeGetContext

func TryCFTreeGetContext(tree CFTreeRef, context *CFTreeContext) error

TryCFTreeGetContext is like CFTreeGetContext but returns an error instead of panicking if CFTreeGetContext is unavailable at run time.

func TryCFTreeInsertSibling

func TryCFTreeInsertSibling(tree CFTreeRef, newSibling CFTreeRef) error

TryCFTreeInsertSibling is like CFTreeInsertSibling but returns an error instead of panicking if CFTreeInsertSibling is unavailable at run time.

func TryCFTreePrependChild

func TryCFTreePrependChild(tree CFTreeRef, newChild CFTreeRef) error

TryCFTreePrependChild is like CFTreePrependChild but returns an error instead of panicking if CFTreePrependChild is unavailable at run time.

func TryCFTreeRemove

func TryCFTreeRemove(tree CFTreeRef) error

TryCFTreeRemove is like CFTreeRemove but returns an error instead of panicking if CFTreeRemove is unavailable at run time.

func TryCFTreeRemoveAllChildren

func TryCFTreeRemoveAllChildren(tree CFTreeRef) error

TryCFTreeRemoveAllChildren is like CFTreeRemoveAllChildren but returns an error instead of panicking if CFTreeRemoveAllChildren is unavailable at run time.

func TryCFTreeSetContext

func TryCFTreeSetContext(tree CFTreeRef, context *CFTreeContext) error

TryCFTreeSetContext is like CFTreeSetContext but returns an error instead of panicking if CFTreeSetContext is unavailable at run time.

func TryCFTreeSortChildren

func TryCFTreeSortChildren(tree CFTreeRef, comparator CFComparatorFunction, context unsafe.Pointer) error

TryCFTreeSortChildren is like CFTreeSortChildren but returns an error instead of panicking if CFTreeSortChildren is unavailable at run time.

func TryCFURLCanBeDecomposed

func TryCFURLCanBeDecomposed(anURL CFURLRef) (bool, error)

TryCFURLCanBeDecomposed is like CFURLCanBeDecomposed but returns an error instead of panicking if CFURLCanBeDecomposed is unavailable at run time.

func TryCFURLClearResourcePropertyCache

func TryCFURLClearResourcePropertyCache(url CFURLRef) error

TryCFURLClearResourcePropertyCache is like CFURLClearResourcePropertyCache but returns an error instead of panicking if CFURLClearResourcePropertyCache is unavailable at run time.

func TryCFURLClearResourcePropertyCacheForKey

func TryCFURLClearResourcePropertyCacheForKey(url CFURLRef, key CFStringRef) error

TryCFURLClearResourcePropertyCacheForKey is like CFURLClearResourcePropertyCacheForKey but returns an error instead of panicking if CFURLClearResourcePropertyCacheForKey is unavailable at run time.

func TryCFURLCopyResourcePropertyForKey

func TryCFURLCopyResourcePropertyForKey(url CFURLRef, key CFStringRef, propertyValueTypeRefPtr unsafe.Pointer, err *CFErrorRef) (bool, error)

TryCFURLCopyResourcePropertyForKey is like CFURLCopyResourcePropertyForKey but returns an error instead of panicking if CFURLCopyResourcePropertyForKey is unavailable at run time.

func TryCFURLEnumeratorSkipDescendents

func TryCFURLEnumeratorSkipDescendents(enumerator CFURLEnumeratorRef) error

TryCFURLEnumeratorSkipDescendents is like CFURLEnumeratorSkipDescendents but returns an error instead of panicking if CFURLEnumeratorSkipDescendents is unavailable at run time.

func TryCFURLGetFileSystemRepresentation

func TryCFURLGetFileSystemRepresentation(url CFURLRef, resolveAgainstBase bool, buffer []byte, maxBufLen CFIndex) (bool, error)

TryCFURLGetFileSystemRepresentation is like CFURLGetFileSystemRepresentation but returns an error instead of panicking if CFURLGetFileSystemRepresentation is unavailable at run time.

func TryCFURLGetPortNumber

func TryCFURLGetPortNumber(anURL CFURLRef) (int32, error)

TryCFURLGetPortNumber is like CFURLGetPortNumber but returns an error instead of panicking if CFURLGetPortNumber is unavailable at run time.

func TryCFURLHasDirectoryPath

func TryCFURLHasDirectoryPath(anURL CFURLRef) (bool, error)

TryCFURLHasDirectoryPath is like CFURLHasDirectoryPath but returns an error instead of panicking if CFURLHasDirectoryPath is unavailable at run time.

func TryCFURLIsFileReferenceURL

func TryCFURLIsFileReferenceURL(url CFURLRef) (bool, error)

TryCFURLIsFileReferenceURL is like CFURLIsFileReferenceURL but returns an error instead of panicking if CFURLIsFileReferenceURL is unavailable at run time.

func TryCFURLResourceIsReachable

func TryCFURLResourceIsReachable(url CFURLRef, err *CFErrorRef) (bool, error)

TryCFURLResourceIsReachable is like CFURLResourceIsReachable but returns an error instead of panicking if CFURLResourceIsReachable is unavailable at run time.

func TryCFURLSetResourcePropertiesForKeys

func TryCFURLSetResourcePropertiesForKeys(url CFURLRef, keyedPropertyValues CFDictionaryRef, err *CFErrorRef) (bool, error)

TryCFURLSetResourcePropertiesForKeys is like CFURLSetResourcePropertiesForKeys but returns an error instead of panicking if CFURLSetResourcePropertiesForKeys is unavailable at run time.

func TryCFURLSetResourcePropertyForKey

func TryCFURLSetResourcePropertyForKey(url CFURLRef, key CFStringRef, propertyValue CFTypeRef, err *CFErrorRef) (bool, error)

TryCFURLSetResourcePropertyForKey is like CFURLSetResourcePropertyForKey but returns an error instead of panicking if CFURLSetResourcePropertyForKey is unavailable at run time.

func TryCFURLSetTemporaryResourcePropertyForKey

func TryCFURLSetTemporaryResourcePropertyForKey(url CFURLRef, key CFStringRef, propertyValue CFTypeRef) error

TryCFURLSetTemporaryResourcePropertyForKey is like CFURLSetTemporaryResourcePropertyForKey but returns an error instead of panicking if CFURLSetTemporaryResourcePropertyForKey is unavailable at run time.

func TryCFURLStartAccessingSecurityScopedResource

func TryCFURLStartAccessingSecurityScopedResource(url CFURLRef) (bool, error)

TryCFURLStartAccessingSecurityScopedResource is like CFURLStartAccessingSecurityScopedResource but returns an error instead of panicking if CFURLStartAccessingSecurityScopedResource is unavailable at run time.

func TryCFURLStopAccessingSecurityScopedResource

func TryCFURLStopAccessingSecurityScopedResource(url CFURLRef) error

TryCFURLStopAccessingSecurityScopedResource is like CFURLStopAccessingSecurityScopedResource but returns an error instead of panicking if CFURLStopAccessingSecurityScopedResource is unavailable at run time.

func TryCFURLWriteBookmarkDataToFile

func TryCFURLWriteBookmarkDataToFile(bookmarkRef CFDataRef, fileURL CFURLRef, options CFURLBookmarkFileCreationOptions, errorRef *CFErrorRef) (bool, error)

TryCFURLWriteBookmarkDataToFile is like CFURLWriteBookmarkDataToFile but returns an error instead of panicking if CFURLWriteBookmarkDataToFile is unavailable at run time.

func TryCFUserNotificationCancel

func TryCFUserNotificationCancel(userNotification CFUserNotificationRef) (int32, error)

TryCFUserNotificationCancel is like CFUserNotificationCancel but returns an error instead of panicking if CFUserNotificationCancel is unavailable at run time.

func TryCFUserNotificationDisplayAlert

func TryCFUserNotificationDisplayAlert(timeout CFTimeInterval, flags CFOptionFlags, iconURL CFURLRef, soundURL CFURLRef, localizationURL CFURLRef, alertHeader CFStringRef, alertMessage CFStringRef, defaultButtonTitle CFStringRef, alternateButtonTitle CFStringRef, otherButtonTitle CFStringRef, responseFlags *CFOptionFlags) (int32, error)

TryCFUserNotificationDisplayAlert is like CFUserNotificationDisplayAlert but returns an error instead of panicking if CFUserNotificationDisplayAlert is unavailable at run time.

func TryCFUserNotificationDisplayNotice

func TryCFUserNotificationDisplayNotice(timeout CFTimeInterval, flags CFOptionFlags, iconURL CFURLRef, soundURL CFURLRef, localizationURL CFURLRef, alertHeader CFStringRef, alertMessage CFStringRef, defaultButtonTitle CFStringRef) (int32, error)

TryCFUserNotificationDisplayNotice is like CFUserNotificationDisplayNotice but returns an error instead of panicking if CFUserNotificationDisplayNotice is unavailable at run time.

func TryCFUserNotificationReceiveResponse

func TryCFUserNotificationReceiveResponse(userNotification CFUserNotificationRef, timeout CFTimeInterval, responseFlags *CFOptionFlags) (int32, error)

TryCFUserNotificationReceiveResponse is like CFUserNotificationReceiveResponse but returns an error instead of panicking if CFUserNotificationReceiveResponse is unavailable at run time.

func TryCFUserNotificationUpdate

func TryCFUserNotificationUpdate(userNotification CFUserNotificationRef, timeout CFTimeInterval, flags CFOptionFlags, dictionary CFDictionaryRef) (int32, error)

TryCFUserNotificationUpdate is like CFUserNotificationUpdate but returns an error instead of panicking if CFUserNotificationUpdate is unavailable at run time.

func TryCFWriteStreamCanAcceptBytes

func TryCFWriteStreamCanAcceptBytes(stream CFWriteStreamRef) (bool, error)

TryCFWriteStreamCanAcceptBytes is like CFWriteStreamCanAcceptBytes but returns an error instead of panicking if CFWriteStreamCanAcceptBytes is unavailable at run time.

func TryCFWriteStreamClose

func TryCFWriteStreamClose(stream CFWriteStreamRef) error

TryCFWriteStreamClose is like CFWriteStreamClose but returns an error instead of panicking if CFWriteStreamClose is unavailable at run time.

func TryCFWriteStreamCopyDispatchQueue

func TryCFWriteStreamCopyDispatchQueue(stream CFWriteStreamRef) (dispatch.Queue, error)

TryCFWriteStreamCopyDispatchQueue is like CFWriteStreamCopyDispatchQueue but returns an error instead of panicking if CFWriteStreamCopyDispatchQueue is unavailable at run time.

func TryCFWriteStreamOpen

func TryCFWriteStreamOpen(stream CFWriteStreamRef) (bool, error)

TryCFWriteStreamOpen is like CFWriteStreamOpen but returns an error instead of panicking if CFWriteStreamOpen is unavailable at run time.

func TryCFWriteStreamScheduleWithRunLoop

func TryCFWriteStreamScheduleWithRunLoop(stream CFWriteStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode) error

TryCFWriteStreamScheduleWithRunLoop is like CFWriteStreamScheduleWithRunLoop but returns an error instead of panicking if CFWriteStreamScheduleWithRunLoop is unavailable at run time.

func TryCFWriteStreamSetClient

func TryCFWriteStreamSetClient(stream CFWriteStreamRef, streamEvents CFOptionFlags, clientCB CFWriteStreamClientCallBack, clientContext *CFStreamClientContext) (bool, error)

TryCFWriteStreamSetClient is like CFWriteStreamSetClient but returns an error instead of panicking if CFWriteStreamSetClient is unavailable at run time.

func TryCFWriteStreamSetDispatchQueue

func TryCFWriteStreamSetDispatchQueue(stream CFWriteStreamRef, q dispatch.Queue) error

TryCFWriteStreamSetDispatchQueue is like CFWriteStreamSetDispatchQueue but returns an error instead of panicking if CFWriteStreamSetDispatchQueue is unavailable at run time.

func TryCFWriteStreamSetProperty

func TryCFWriteStreamSetProperty(stream CFWriteStreamRef, propertyName CFStreamPropertyKey, propertyValue CFTypeRef) (bool, error)

TryCFWriteStreamSetProperty is like CFWriteStreamSetProperty but returns an error instead of panicking if CFWriteStreamSetProperty is unavailable at run time.

func TryCFWriteStreamUnscheduleFromRunLoop

func TryCFWriteStreamUnscheduleFromRunLoop(stream CFWriteStreamRef, runLoop CFRunLoopRef, runLoopMode CFRunLoopMode) error

TryCFWriteStreamUnscheduleFromRunLoop is like CFWriteStreamUnscheduleFromRunLoop but returns an error instead of panicking if CFWriteStreamUnscheduleFromRunLoop is unavailable at run time.

func TryCFXMLNodeCreate

func TryCFXMLNodeCreate(alloc CFAllocatorRef, xmlType uint32, dataString CFStringRef, additionalInfoPtr unsafe.Pointer, version CFIndex) (unsafe.Pointer, error)

TryCFXMLNodeCreate is like CFXMLNodeCreate but returns an error instead of panicking if CFXMLNodeCreate is unavailable at run time.

func TryCFXMLNodeCreateCopy

func TryCFXMLNodeCreateCopy(alloc CFAllocatorRef, origNode unsafe.Pointer) (unsafe.Pointer, error)

TryCFXMLNodeCreateCopy is like CFXMLNodeCreateCopy but returns an error instead of panicking if CFXMLNodeCreateCopy is unavailable at run time.

func TryCFXMLNodeGetInfoPtr

func TryCFXMLNodeGetInfoPtr(node unsafe.Pointer) (unsafe.Pointer, error)

TryCFXMLNodeGetInfoPtr is like CFXMLNodeGetInfoPtr but returns an error instead of panicking if CFXMLNodeGetInfoPtr is unavailable at run time.

func TryCFXMLNodeGetTypeCode

func TryCFXMLNodeGetTypeCode(node unsafe.Pointer) (uint32, error)

TryCFXMLNodeGetTypeCode is like CFXMLNodeGetTypeCode but returns an error instead of panicking if CFXMLNodeGetTypeCode is unavailable at run time.

func TryCFXMLParserAbort

func TryCFXMLParserAbort(parser CFXMLParserRef, errorCode CFXMLParserStatusCode, errorDescription CFStringRef) error

TryCFXMLParserAbort is like CFXMLParserAbort but returns an error instead of panicking if CFXMLParserAbort is unavailable at run time.

func TryCFXMLParserGetCallBacks

func TryCFXMLParserGetCallBacks(parser CFXMLParserRef, callBacks *CFXMLParserCallBacks) error

TryCFXMLParserGetCallBacks is like CFXMLParserGetCallBacks but returns an error instead of panicking if CFXMLParserGetCallBacks is unavailable at run time.

func TryCFXMLParserGetContext

func TryCFXMLParserGetContext(parser CFXMLParserRef, context *CFXMLParserContext) error

TryCFXMLParserGetContext is like CFXMLParserGetContext but returns an error instead of panicking if CFXMLParserGetContext is unavailable at run time.

func TryCFXMLParserGetDocument

func TryCFXMLParserGetDocument(parser CFXMLParserRef) (unsafe.Pointer, error)

TryCFXMLParserGetDocument is like CFXMLParserGetDocument but returns an error instead of panicking if CFXMLParserGetDocument is unavailable at run time.

func TryCFXMLParserParse

func TryCFXMLParserParse(parser CFXMLParserRef) (bool, error)

TryCFXMLParserParse is like CFXMLParserParse but returns an error instead of panicking if CFXMLParserParse is unavailable at run time.

func TryCFXMLTreeGetNode

func TryCFXMLTreeGetNode(xmlTree CFXMLTreeRef) (unsafe.Pointer, error)

TryCFXMLTreeGetNode is like CFXMLTreeGetNode but returns an error instead of panicking if CFXMLTreeGetNode is unavailable at run time.

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 CFAbsoluteTimeAddGregorianUnits deprecated

func CFAbsoluteTimeAddGregorianUnits(at CFAbsoluteTime, tz CFTimeZoneRef, units CFGregorianUnits) CFAbsoluteTime

CFAbsoluteTimeAddGregorianUnits adds a time interval, expressed as Gregorian units, to a given absolute time.

It panics if CFAbsoluteTimeAddGregorianUnits is unavailable at run time; use TryCFAbsoluteTimeAddGregorianUnits to get an error instead.

Deprecated: Deprecated since macOS 10.10. Use CFCalendar or NSCalendar API instead

See: https://developer.apple.com/documentation/CoreFoundation/CFAbsoluteTimeAddGregorianUnits(_:_:_:)

func CFAbsoluteTimeGetCurrent

func CFAbsoluteTimeGetCurrent() CFAbsoluteTime

CFAbsoluteTimeGetCurrent returns the current system absolute time.

It panics if CFAbsoluteTimeGetCurrent is unavailable at run time; use TryCFAbsoluteTimeGetCurrent to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAbsoluteTimeGetCurrent()

func CFDateGetAbsoluteTime

func CFDateGetAbsoluteTime(theDate CFDateRef) CFAbsoluteTime

CFDateGetAbsoluteTime returns a [CFDate] object’s absolute time.

It panics if CFDateGetAbsoluteTime is unavailable at run time; use TryCFDateGetAbsoluteTime to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDateGetAbsoluteTime(_:)

func CFGregorianDateGetAbsoluteTime deprecated

func CFGregorianDateGetAbsoluteTime(gdate CFGregorianDate, tz CFTimeZoneRef) CFAbsoluteTime

CFGregorianDateGetAbsoluteTime converts a Gregorian date value into an absolute time value.

It panics if CFGregorianDateGetAbsoluteTime is unavailable at run time; use TryCFGregorianDateGetAbsoluteTime to get an error instead.

Deprecated: Deprecated since macOS 10.10. Use CFCalendar or NSCalendar API instead

See: https://developer.apple.com/documentation/CoreFoundation/CFGregorianDateGetAbsoluteTime(_:_:)

func CFRunLoopGetNextTimerFireDate

func CFRunLoopGetNextTimerFireDate(rl CFRunLoopRef, mode CFRunLoopMode) CFAbsoluteTime

CFRunLoopGetNextTimerFireDate returns the time at which the next timer will fire.

It panics if CFRunLoopGetNextTimerFireDate is unavailable at run time; use TryCFRunLoopGetNextTimerFireDate to get an error instead.

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.

It panics if CFRunLoopTimerGetNextFireDate is unavailable at run time; use TryCFRunLoopTimerGetNextFireDate to get an error instead.

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.

It panics if CFTimeZoneGetNextDaylightSavingTimeTransition is unavailable at run time; use TryCFTimeZoneGetNextDaylightSavingTimeTransition to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneGetNextDaylightSavingTimeTransition(_:_:)

func TryCFAbsoluteTimeAddGregorianUnits

func TryCFAbsoluteTimeAddGregorianUnits(at CFAbsoluteTime, tz CFTimeZoneRef, units CFGregorianUnits) (CFAbsoluteTime, error)

TryCFAbsoluteTimeAddGregorianUnits is like CFAbsoluteTimeAddGregorianUnits but returns an error instead of panicking if CFAbsoluteTimeAddGregorianUnits is unavailable at run time.

func TryCFAbsoluteTimeGetCurrent

func TryCFAbsoluteTimeGetCurrent() (CFAbsoluteTime, error)

TryCFAbsoluteTimeGetCurrent is like CFAbsoluteTimeGetCurrent but returns an error instead of panicking if CFAbsoluteTimeGetCurrent is unavailable at run time.

func TryCFDateGetAbsoluteTime

func TryCFDateGetAbsoluteTime(theDate CFDateRef) (CFAbsoluteTime, error)

TryCFDateGetAbsoluteTime is like CFDateGetAbsoluteTime but returns an error instead of panicking if CFDateGetAbsoluteTime is unavailable at run time.

func TryCFGregorianDateGetAbsoluteTime

func TryCFGregorianDateGetAbsoluteTime(gdate CFGregorianDate, tz CFTimeZoneRef) (CFAbsoluteTime, error)

TryCFGregorianDateGetAbsoluteTime is like CFGregorianDateGetAbsoluteTime but returns an error instead of panicking if CFGregorianDateGetAbsoluteTime is unavailable at run time.

func TryCFRunLoopGetNextTimerFireDate

func TryCFRunLoopGetNextTimerFireDate(rl CFRunLoopRef, mode CFRunLoopMode) (CFAbsoluteTime, error)

TryCFRunLoopGetNextTimerFireDate is like CFRunLoopGetNextTimerFireDate but returns an error instead of panicking if CFRunLoopGetNextTimerFireDate is unavailable at run time.

func TryCFRunLoopTimerGetNextFireDate

func TryCFRunLoopTimerGetNextFireDate(timer CFRunLoopTimerRef) (CFAbsoluteTime, error)

TryCFRunLoopTimerGetNextFireDate is like CFRunLoopTimerGetNextFireDate but returns an error instead of panicking if CFRunLoopTimerGetNextFireDate is unavailable at run time.

func TryCFTimeZoneGetNextDaylightSavingTimeTransition

func TryCFTimeZoneGetNextDaylightSavingTimeTransition(tz CFTimeZoneRef, at CFAbsoluteTime) (CFAbsoluteTime, error)

TryCFTimeZoneGetNextDaylightSavingTimeTransition is like CFTimeZoneGetNextDaylightSavingTimeTransition but returns an error instead of panicking if CFTimeZoneGetNextDaylightSavingTimeTransition is unavailable at run time.

type CFAllocatorAllocateCallBack

type CFAllocatorAllocateCallBack = func(allocSize int, hint uint, info unsafe.Pointer) unsafe.Pointer

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 CFIndex        // 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].
	// C: CFAllocatorRetainCallBack (const void *(*)(const void *))
	Retain uintptr // 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].
	// C: CFAllocatorReleaseCallBack (void (*)(const void *))
	Release uintptr // 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.
	// C: CFAllocatorCopyDescriptionCallBack (const struct __CFString *(*)(const void *))
	CopyDescription uintptr // 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.
	// C: CFAllocatorAllocateCallBack (void *(*)(long, unsigned long, void *))
	Allocate uintptr // 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].
	// C: CFAllocatorReallocateCallBack (void *(*)(void *, long, unsigned long, void *))
	Reallocate uintptr // A prototype for a function callback that reallocates memory of a requested size for an existing block of memory.
	// C: CFAllocatorDeallocateCallBack (void (*)(void *, void *))
	Deallocate uintptr // 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(_:_:)](<https://developer.apple.com/documentation/CoreFoundation/CFAllocatorDeallocate(_:_:)>) function has no effect.
	// C: CFAllocatorPreferredSizeCallBack (long (*)(long, unsigned long, void *))
	PreferredSize uintptr // 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.

}

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

type CFAllocatorCopyDescriptionCallBack = func(info unsafe.Pointer) CFStringRef

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

type CFAllocatorDeallocateCallBack = func(ptr unsafe.Pointer, info unsafe.Pointer)

CFAllocatorDeallocateCallBack is a prototype for a function callback that deallocates a block of memory.

See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorDeallocateCallBack

type CFAllocatorPreferredSizeCallBack

type CFAllocatorPreferredSizeCallBack = func(size int, hint uint, info unsafe.Pointer) int

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

type CFAllocatorReallocateCallBack = func(ptr unsafe.Pointer, newsize int, hint uint, info unsafe.Pointer) unsafe.Pointer

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.

It panics if CFAllocatorCreate is unavailable at run time; use TryCFAllocatorCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorCreate(_:_:)

func CFAllocatorCreateWithZone added in v0.2.0

func CFAllocatorCreateWithZone(allocator CFAllocatorRef, zone unsafe.Pointer) CFAllocatorRef

CFAllocatorCreateWithZone.

It panics if CFAllocatorCreateWithZone is unavailable at run time; use TryCFAllocatorCreateWithZone to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorCreateWithZone

func CFAllocatorGetDefault

func CFAllocatorGetDefault() CFAllocatorRef

CFAllocatorGetDefault gets the default allocator object for the current thread.

It panics if CFAllocatorGetDefault is unavailable at run time; use TryCFAllocatorGetDefault to get an error instead.

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.

It panics if CFGetAllocator is unavailable at run time; use TryCFGetAllocator to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFGetAllocator(_:)

func TryCFAllocatorCreate

func TryCFAllocatorCreate(allocator CFAllocatorRef, context *CFAllocatorContext) (CFAllocatorRef, error)

TryCFAllocatorCreate is like CFAllocatorCreate but returns an error instead of panicking if CFAllocatorCreate is unavailable at run time.

func TryCFAllocatorCreateWithZone

func TryCFAllocatorCreateWithZone(allocator CFAllocatorRef, zone unsafe.Pointer) (CFAllocatorRef, error)

TryCFAllocatorCreateWithZone is like CFAllocatorCreateWithZone but returns an error instead of panicking if CFAllocatorCreateWithZone is unavailable at run time.

func TryCFAllocatorGetDefault

func TryCFAllocatorGetDefault() (CFAllocatorRef, error)

TryCFAllocatorGetDefault is like CFAllocatorGetDefault but returns an error instead of panicking if CFAllocatorGetDefault is unavailable at run time.

func TryCFGetAllocator

func TryCFGetAllocator(cf CFTypeRef) (CFAllocatorRef, error)

TryCFGetAllocator is like CFGetAllocator but returns an error instead of panicking if CFGetAllocator is unavailable at run time.

type CFAllocatorReleaseCallBack

type CFAllocatorReleaseCallBack = func(info unsafe.Pointer)

CFAllocatorReleaseCallBack is a prototype for a function callback that releases the given data.

See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorReleaseCallBack

type CFAllocatorRetainCallBack

type CFAllocatorRetainCallBack = func(info unsafe.Pointer) unsafe.Pointer

CFAllocatorRetainCallBack is a prototype for a function callback that retains the given data.

See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorRetainCallBack

type CFArrayApplierFunction

type CFArrayApplierFunction = func(value unsafe.Pointer, context unsafe.Pointer)

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 CFIndex // 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.
	// C: CFArrayRetainCallBack (const void *(*)(const struct __CFAllocator *, const void *))
	Retain uintptr // The callback used to retain each value as they are added to the collection. If [NULL], values are not retained. See [CFArrayRetainCallBack](<https://developer.apple.com/documentation/CoreFoundation/CFArrayRetainCallBack>) for a description of this callback.
	// C: CFArrayReleaseCallBack (void (*)(const struct __CFAllocator *, const void *))
	Release uintptr // The callback used to release values as they are removed from the collection. If [NULL], values are not released. See [CFArrayReleaseCallBack](<https://developer.apple.com/documentation/CoreFoundation/CFArrayReleaseCallBack>) for a description of this callback.
	// C: CFArrayCopyDescriptionCallBack (const struct __CFString *(*)(const void *))
	CopyDescription uintptr // 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](<https://developer.apple.com/documentation/CoreFoundation/CFArrayCopyDescriptionCallBack>) for a description of this callback.
	// C: CFArrayEqualCallBack (unsigned char (*)(const void *, const void *))
	Equal uintptr // 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](<https://developer.apple.com/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

type CFArrayCopyDescriptionCallBack

type CFArrayCopyDescriptionCallBack = func(value unsafe.Pointer) CFStringRef

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

type CFArrayEqualCallBack = func(value1 unsafe.Pointer, value2 unsafe.Pointer) uint8

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 CFIndex, callBacks *CFArrayCallBacks) CFArrayRef

CFArrayCreate creates a new immutable array with the given values.

It panics if CFArrayCreate is unavailable at run time; use TryCFArrayCreate to get an error instead.

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.

It panics if CFArrayCreateCopy is unavailable at run time; use TryCFArrayCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayCreateCopy(_:_:)

func CFBundleCopyBundleLocalizations

func CFBundleCopyBundleLocalizations(bundle CFBundleRef) CFArrayRef

CFBundleCopyBundleLocalizations returns an array containing a bundle’s localizations.

It panics if CFBundleCopyBundleLocalizations is unavailable at run time; use TryCFBundleCopyBundleLocalizations to get an error instead.

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.

It panics if CFBundleCopyExecutableArchitectures is unavailable at run time; use TryCFBundleCopyExecutableArchitectures to get an error instead.

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.

It panics if CFBundleCopyExecutableArchitecturesForURL is unavailable at run time; use TryCFBundleCopyExecutableArchitecturesForURL to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyExecutableArchitecturesForURL(_:)

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.

It panics if CFBundleCopyLocalizationsForPreferences is unavailable at run time; use TryCFBundleCopyLocalizationsForPreferences to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyLocalizationsForPreferences(_:_:)

func CFBundleCopyLocalizationsForURL

func CFBundleCopyLocalizationsForURL(url CFURLRef) CFArrayRef

CFBundleCopyLocalizationsForURL returns an array containing the localizations for a bundle or executable at a particular location.

It panics if CFBundleCopyLocalizationsForURL is unavailable at run time; use TryCFBundleCopyLocalizationsForURL to get an error instead.

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.

It panics if CFBundleCopyPreferredLocalizationsFromArray is unavailable at run time; use TryCFBundleCopyPreferredLocalizationsFromArray to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyPreferredLocalizationsFromArray(_:)

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.

It panics if CFBundleCopyResourceURLsOfType is unavailable at run time; use TryCFBundleCopyResourceURLsOfType to get an error instead.

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.

It panics if CFBundleCopyResourceURLsOfTypeForLocalization is unavailable at run time; use TryCFBundleCopyResourceURLsOfTypeForLocalization to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyResourceURLsOfTypeForLocalization(_:_:_:_:)

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.

It panics if CFBundleCopyResourceURLsOfTypeInDirectory is unavailable at run time; use TryCFBundleCopyResourceURLsOfTypeInDirectory to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyResourceURLsOfTypeInDirectory(_:_:_:)

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.

It panics if CFBundleCreateBundlesFromDirectory is unavailable at run time; use TryCFBundleCreateBundlesFromDirectory to get an error instead.

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.

It panics if CFBundleGetAllBundles is unavailable at run time; use TryCFBundleGetAllBundles to get an error instead.

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.

It panics if CFLocaleCopyAvailableLocaleIdentifiers is unavailable at run time; use TryCFLocaleCopyAvailableLocaleIdentifiers to get an error instead.

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.

It panics if CFLocaleCopyCommonISOCurrencyCodes is unavailable at run time; use TryCFLocaleCopyCommonISOCurrencyCodes to get an error instead.

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.

It panics if CFLocaleCopyISOCountryCodes is unavailable at run time; use TryCFLocaleCopyISOCountryCodes to get an error instead.

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.

It panics if CFLocaleCopyISOCurrencyCodes is unavailable at run time; use TryCFLocaleCopyISOCurrencyCodes to get an error instead.

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.

It panics if CFLocaleCopyISOLanguageCodes is unavailable at run time; use TryCFLocaleCopyISOLanguageCodes to get an error instead.

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.

It panics if CFLocaleCopyPreferredLanguages is unavailable at run time; use TryCFLocaleCopyPreferredLanguages to get an error instead.

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.

It panics if CFPlugInFindFactoriesForPlugInType is unavailable at run time; use TryCFPlugInFindFactoriesForPlugInType to get an error instead.

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.

It panics if CFPlugInFindFactoriesForPlugInTypeInPlugIn is unavailable at run time; use TryCFPlugInFindFactoriesForPlugInTypeInPlugIn to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInFindFactoriesForPlugInTypeInPlugIn(_:_:)

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.

It panics if CFPreferencesCopyKeyList is unavailable at run time; use TryCFPreferencesCopyKeyList to get an error instead.

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.

It panics if CFRunLoopCopyAllModes is unavailable at run time; use TryCFRunLoopCopyAllModes to get an error instead.

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.

It panics if CFStringCreateArrayBySeparatingStrings is unavailable at run time; use TryCFStringCreateArrayBySeparatingStrings to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateArrayBySeparatingStrings(_:_:_:)

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.

It panics if CFStringCreateArrayWithFindResults is unavailable at run time; use TryCFStringCreateArrayWithFindResults to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateArrayWithFindResults(_:_:_:_:_:)

func CFTimeZoneCopyKnownNames

func CFTimeZoneCopyKnownNames() CFArrayRef

CFTimeZoneCopyKnownNames returns an array of strings containing the names of all the time zones known to the system.

It panics if CFTimeZoneCopyKnownNames is unavailable at run time; use TryCFTimeZoneCopyKnownNames to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneCopyKnownNames()

func TryCFArrayCreate

func TryCFArrayCreate(allocator CFAllocatorRef, values unsafe.Pointer, numValues CFIndex, callBacks *CFArrayCallBacks) (CFArrayRef, error)

TryCFArrayCreate is like CFArrayCreate but returns an error instead of panicking if CFArrayCreate is unavailable at run time.

func TryCFArrayCreateCopy

func TryCFArrayCreateCopy(allocator CFAllocatorRef, theArray CFArrayRef) (CFArrayRef, error)

TryCFArrayCreateCopy is like CFArrayCreateCopy but returns an error instead of panicking if CFArrayCreateCopy is unavailable at run time.

func TryCFBundleCopyBundleLocalizations

func TryCFBundleCopyBundleLocalizations(bundle CFBundleRef) (CFArrayRef, error)

TryCFBundleCopyBundleLocalizations is like CFBundleCopyBundleLocalizations but returns an error instead of panicking if CFBundleCopyBundleLocalizations is unavailable at run time.

func TryCFBundleCopyExecutableArchitectures

func TryCFBundleCopyExecutableArchitectures(bundle CFBundleRef) (CFArrayRef, error)

TryCFBundleCopyExecutableArchitectures is like CFBundleCopyExecutableArchitectures but returns an error instead of panicking if CFBundleCopyExecutableArchitectures is unavailable at run time.

func TryCFBundleCopyExecutableArchitecturesForURL

func TryCFBundleCopyExecutableArchitecturesForURL(url CFURLRef) (CFArrayRef, error)

TryCFBundleCopyExecutableArchitecturesForURL is like CFBundleCopyExecutableArchitecturesForURL but returns an error instead of panicking if CFBundleCopyExecutableArchitecturesForURL is unavailable at run time.

func TryCFBundleCopyLocalizationsForPreferences

func TryCFBundleCopyLocalizationsForPreferences(locArray CFArrayRef, prefArray CFArrayRef) (CFArrayRef, error)

TryCFBundleCopyLocalizationsForPreferences is like CFBundleCopyLocalizationsForPreferences but returns an error instead of panicking if CFBundleCopyLocalizationsForPreferences is unavailable at run time.

func TryCFBundleCopyLocalizationsForURL

func TryCFBundleCopyLocalizationsForURL(url CFURLRef) (CFArrayRef, error)

TryCFBundleCopyLocalizationsForURL is like CFBundleCopyLocalizationsForURL but returns an error instead of panicking if CFBundleCopyLocalizationsForURL is unavailable at run time.

func TryCFBundleCopyPreferredLocalizationsFromArray

func TryCFBundleCopyPreferredLocalizationsFromArray(locArray CFArrayRef) (CFArrayRef, error)

TryCFBundleCopyPreferredLocalizationsFromArray is like CFBundleCopyPreferredLocalizationsFromArray but returns an error instead of panicking if CFBundleCopyPreferredLocalizationsFromArray is unavailable at run time.

func TryCFBundleCopyResourceURLsOfType

func TryCFBundleCopyResourceURLsOfType(bundle CFBundleRef, resourceType CFStringRef, subDirName CFStringRef) (CFArrayRef, error)

TryCFBundleCopyResourceURLsOfType is like CFBundleCopyResourceURLsOfType but returns an error instead of panicking if CFBundleCopyResourceURLsOfType is unavailable at run time.

func TryCFBundleCopyResourceURLsOfTypeForLocalization

func TryCFBundleCopyResourceURLsOfTypeForLocalization(bundle CFBundleRef, resourceType CFStringRef, subDirName CFStringRef, localizationName CFStringRef) (CFArrayRef, error)

TryCFBundleCopyResourceURLsOfTypeForLocalization is like CFBundleCopyResourceURLsOfTypeForLocalization but returns an error instead of panicking if CFBundleCopyResourceURLsOfTypeForLocalization is unavailable at run time.

func TryCFBundleCopyResourceURLsOfTypeInDirectory

func TryCFBundleCopyResourceURLsOfTypeInDirectory(bundleURL CFURLRef, resourceType CFStringRef, subDirName CFStringRef) (CFArrayRef, error)

TryCFBundleCopyResourceURLsOfTypeInDirectory is like CFBundleCopyResourceURLsOfTypeInDirectory but returns an error instead of panicking if CFBundleCopyResourceURLsOfTypeInDirectory is unavailable at run time.

func TryCFBundleCreateBundlesFromDirectory

func TryCFBundleCreateBundlesFromDirectory(allocator CFAllocatorRef, directoryURL CFURLRef, bundleType CFStringRef) (CFArrayRef, error)

TryCFBundleCreateBundlesFromDirectory is like CFBundleCreateBundlesFromDirectory but returns an error instead of panicking if CFBundleCreateBundlesFromDirectory is unavailable at run time.

func TryCFBundleGetAllBundles

func TryCFBundleGetAllBundles() (CFArrayRef, error)

TryCFBundleGetAllBundles is like CFBundleGetAllBundles but returns an error instead of panicking if CFBundleGetAllBundles is unavailable at run time.

func TryCFLocaleCopyAvailableLocaleIdentifiers

func TryCFLocaleCopyAvailableLocaleIdentifiers() (CFArrayRef, error)

TryCFLocaleCopyAvailableLocaleIdentifiers is like CFLocaleCopyAvailableLocaleIdentifiers but returns an error instead of panicking if CFLocaleCopyAvailableLocaleIdentifiers is unavailable at run time.

func TryCFLocaleCopyCommonISOCurrencyCodes

func TryCFLocaleCopyCommonISOCurrencyCodes() (CFArrayRef, error)

TryCFLocaleCopyCommonISOCurrencyCodes is like CFLocaleCopyCommonISOCurrencyCodes but returns an error instead of panicking if CFLocaleCopyCommonISOCurrencyCodes is unavailable at run time.

func TryCFLocaleCopyISOCountryCodes

func TryCFLocaleCopyISOCountryCodes() (CFArrayRef, error)

TryCFLocaleCopyISOCountryCodes is like CFLocaleCopyISOCountryCodes but returns an error instead of panicking if CFLocaleCopyISOCountryCodes is unavailable at run time.

func TryCFLocaleCopyISOCurrencyCodes

func TryCFLocaleCopyISOCurrencyCodes() (CFArrayRef, error)

TryCFLocaleCopyISOCurrencyCodes is like CFLocaleCopyISOCurrencyCodes but returns an error instead of panicking if CFLocaleCopyISOCurrencyCodes is unavailable at run time.

func TryCFLocaleCopyISOLanguageCodes

func TryCFLocaleCopyISOLanguageCodes() (CFArrayRef, error)

TryCFLocaleCopyISOLanguageCodes is like CFLocaleCopyISOLanguageCodes but returns an error instead of panicking if CFLocaleCopyISOLanguageCodes is unavailable at run time.

func TryCFLocaleCopyPreferredLanguages

func TryCFLocaleCopyPreferredLanguages() (CFArrayRef, error)

TryCFLocaleCopyPreferredLanguages is like CFLocaleCopyPreferredLanguages but returns an error instead of panicking if CFLocaleCopyPreferredLanguages is unavailable at run time.

func TryCFPlugInFindFactoriesForPlugInType

func TryCFPlugInFindFactoriesForPlugInType(typeUUID CFUUIDRef) (CFArrayRef, error)

TryCFPlugInFindFactoriesForPlugInType is like CFPlugInFindFactoriesForPlugInType but returns an error instead of panicking if CFPlugInFindFactoriesForPlugInType is unavailable at run time.

func TryCFPlugInFindFactoriesForPlugInTypeInPlugIn

func TryCFPlugInFindFactoriesForPlugInTypeInPlugIn(typeUUID CFUUIDRef, plugIn CFPlugInRef) (CFArrayRef, error)

TryCFPlugInFindFactoriesForPlugInTypeInPlugIn is like CFPlugInFindFactoriesForPlugInTypeInPlugIn but returns an error instead of panicking if CFPlugInFindFactoriesForPlugInTypeInPlugIn is unavailable at run time.

func TryCFPreferencesCopyKeyList

func TryCFPreferencesCopyKeyList(applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) (CFArrayRef, error)

TryCFPreferencesCopyKeyList is like CFPreferencesCopyKeyList but returns an error instead of panicking if CFPreferencesCopyKeyList is unavailable at run time.

func TryCFRunLoopCopyAllModes

func TryCFRunLoopCopyAllModes(rl CFRunLoopRef) (CFArrayRef, error)

TryCFRunLoopCopyAllModes is like CFRunLoopCopyAllModes but returns an error instead of panicking if CFRunLoopCopyAllModes is unavailable at run time.

func TryCFStringCreateArrayBySeparatingStrings

func TryCFStringCreateArrayBySeparatingStrings(alloc CFAllocatorRef, theString CFStringRef, separatorString CFStringRef) (CFArrayRef, error)

TryCFStringCreateArrayBySeparatingStrings is like CFStringCreateArrayBySeparatingStrings but returns an error instead of panicking if CFStringCreateArrayBySeparatingStrings is unavailable at run time.

func TryCFStringCreateArrayWithFindResults

func TryCFStringCreateArrayWithFindResults(alloc CFAllocatorRef, theString CFStringRef, stringToFind CFStringRef, rangeToSearch CFRange, compareOptions CFStringCompareFlags) (CFArrayRef, error)

TryCFStringCreateArrayWithFindResults is like CFStringCreateArrayWithFindResults but returns an error instead of panicking if CFStringCreateArrayWithFindResults is unavailable at run time.

func TryCFTimeZoneCopyKnownNames

func TryCFTimeZoneCopyKnownNames() (CFArrayRef, error)

TryCFTimeZoneCopyKnownNames is like CFTimeZoneCopyKnownNames but returns an error instead of panicking if CFTimeZoneCopyKnownNames is unavailable at run time.

type CFArrayReleaseCallBack

type CFArrayReleaseCallBack = func(allocator CFAllocatorRef, value unsafe.Pointer)

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

type CFArrayRetainCallBack = func(allocator CFAllocatorRef, value unsafe.Pointer) unsafe.Pointer

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

CFAttributedString is a bare alias for 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.

It panics if CFAttributedStringCreate is unavailable at run time; use TryCFAttributedStringCreate to get an error instead.

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.

It panics if CFAttributedStringCreateCopy is unavailable at run time; use TryCFAttributedStringCreateCopy to get an error instead.

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.

It panics if CFAttributedStringCreateWithSubstring is unavailable at run time; use TryCFAttributedStringCreateWithSubstring to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringCreateWithSubstring(_:_:_:)

func TryCFAttributedStringCreate

func TryCFAttributedStringCreate(alloc CFAllocatorRef, str CFStringRef, attributes CFDictionaryRef) (CFAttributedStringRef, error)

TryCFAttributedStringCreate is like CFAttributedStringCreate but returns an error instead of panicking if CFAttributedStringCreate is unavailable at run time.

func TryCFAttributedStringCreateCopy

func TryCFAttributedStringCreateCopy(alloc CFAllocatorRef, aStr CFAttributedStringRef) (CFAttributedStringRef, error)

TryCFAttributedStringCreateCopy is like CFAttributedStringCreateCopy but returns an error instead of panicking if CFAttributedStringCreateCopy is unavailable at run time.

func TryCFAttributedStringCreateWithSubstring

func TryCFAttributedStringCreateWithSubstring(alloc CFAllocatorRef, aStr CFAttributedStringRef, range_ CFRange) (CFAttributedStringRef, error)

TryCFAttributedStringCreateWithSubstring is like CFAttributedStringCreateWithSubstring but returns an error instead of panicking if CFAttributedStringCreateWithSubstring is unavailable at run time.

type CFBagApplierFunction

type CFBagApplierFunction = func(value unsafe.Pointer, context unsafe.Pointer)

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 CFIndex // 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.
	// C: CFBagRetainCallBack (const void *(*)(const struct __CFAllocator *, const void *))
	Retain uintptr // The callback used to retain each value as they are added to the collection. If [NULL], values are not retained. See [CFBagRetainCallBack](<https://developer.apple.com/documentation/CoreFoundation/CFBagRetainCallBack>) for a descriptions of this function’s parameters.
	// C: CFBagReleaseCallBack (void (*)(const struct __CFAllocator *, const void *))
	Release uintptr // The callback used to release values as they are removed from the collection. If [NULL], values are not released. See [CFBagReleaseCallBack](<https://developer.apple.com/documentation/CoreFoundation/CFBagReleaseCallBack>) for a description of this callback.
	// C: CFBagCopyDescriptionCallBack (const struct __CFString *(*)(const void *))
	CopyDescription uintptr // 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](<https://developer.apple.com/documentation/CoreFoundation/CFBagCopyDescriptionCallBack>) for a description of this callback.
	// C: CFBagEqualCallBack (unsigned char (*)(const void *, const void *))
	Equal uintptr // 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](<https://developer.apple.com/documentation/CoreFoundation/CFBagEqualCallBack>) for a description of this callback.
	// C: CFBagHashCallBack (unsigned long (*)(const void *))
	Hash uintptr // 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](<https://developer.apple.com/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

type CFBagCopyDescriptionCallBack = func(value unsafe.Pointer) CFStringRef

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

type CFBagEqualCallBack = func(value1 unsafe.Pointer, value2 unsafe.Pointer) uint8

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

type CFBagHashCallBack = func(value unsafe.Pointer) uint

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 CFIndex, callBacks *CFBagCallBacks) CFBagRef

CFBagCreate creates an immutable bag containing specified values.

It panics if CFBagCreate is unavailable at run time; use TryCFBagCreate to get an error instead.

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.

It panics if CFBagCreateCopy is unavailable at run time; use TryCFBagCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBagCreateCopy(_:_:)

func TryCFBagCreate

func TryCFBagCreate(allocator CFAllocatorRef, values unsafe.Pointer, numValues CFIndex, callBacks *CFBagCallBacks) (CFBagRef, error)

TryCFBagCreate is like CFBagCreate but returns an error instead of panicking if CFBagCreate is unavailable at run time.

func TryCFBagCreateCopy

func TryCFBagCreateCopy(allocator CFAllocatorRef, theBag CFBagRef) (CFBagRef, error)

TryCFBagCreateCopy is like CFBagCreateCopy but returns an error instead of panicking if CFBagCreateCopy is unavailable at run time.

type CFBagReleaseCallBack

type CFBagReleaseCallBack = func(allocator CFAllocatorRef, value unsafe.Pointer)

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

type CFBagRetainCallBack = func(allocator CFAllocatorRef, value unsafe.Pointer) unsafe.Pointer

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

type CFBinaryHeapApplierFunction = func(val unsafe.Pointer, context unsafe.Pointer)

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 CFIndex // The version number of the structure type being passed in as a parameter to the [CFBinaryHeap] creation functions. This structure is version `0`.
	// C: const void *(*)(const struct __CFAllocator *, const void *)
	Retain uintptr // Callback function used to retain a value being added to a binary heap.
	// C: void (*)(const struct __CFAllocator *, const void *)
	Release uintptr // Callback function used to release a value before it is removed from a binary heap.
	// C: const struct __CFString *(*)(const void *)
	CopyDescription uintptr // Callback function used to get a description of a value in a binary heap.
	// C: enum CFComparisonResult (*)(const void *, const void *, void *)
	Compare uintptr // The callback used to compare values in the binary heap in some operations. This field cannot be [NULL].

}

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 CFIndex
	Info    unsafe.Pointer
	// C: const void *(*)(const void *)
	Retain uintptr
	// C: void (*)(const void *)
	Release uintptr
	// C: const struct __CFString *(*)(const void *)
	CopyDescription uintptr
}

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 CFIndex, callBacks *CFBinaryHeapCallBacks, compareContext *CFBinaryHeapCompareContext) CFBinaryHeapRef

CFBinaryHeapCreate creates a new mutable or fixed-mutable binary heap.

It panics if CFBinaryHeapCreate is unavailable at run time; use TryCFBinaryHeapCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapCreate(_:_:_:_:)

func CFBinaryHeapCreateCopy

func CFBinaryHeapCreateCopy(allocator CFAllocatorRef, capacity CFIndex, heap CFBinaryHeapRef) CFBinaryHeapRef

CFBinaryHeapCreateCopy creates a new mutable or fixed-mutable binary heap with the values from a pre-existing binary heap.

It panics if CFBinaryHeapCreateCopy is unavailable at run time; use TryCFBinaryHeapCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapCreateCopy(_:_:_:)

func TryCFBinaryHeapCreate

func TryCFBinaryHeapCreate(allocator CFAllocatorRef, capacity CFIndex, callBacks *CFBinaryHeapCallBacks, compareContext *CFBinaryHeapCompareContext) (CFBinaryHeapRef, error)

TryCFBinaryHeapCreate is like CFBinaryHeapCreate but returns an error instead of panicking if CFBinaryHeapCreate is unavailable at run time.

func TryCFBinaryHeapCreateCopy

func TryCFBinaryHeapCreateCopy(allocator CFAllocatorRef, capacity CFIndex, heap CFBinaryHeapRef) (CFBinaryHeapRef, error)

TryCFBinaryHeapCreateCopy is like CFBinaryHeapCreateCopy but returns an error instead of panicking if CFBinaryHeapCreateCopy is unavailable at run time.

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 CFIndex) CFBit

CFBitVectorGetBitAtIndex returns the bit value at a given index in a bit vector.

It panics if CFBitVectorGetBitAtIndex is unavailable at run time; use TryCFBitVectorGetBitAtIndex to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetBitAtIndex(_:_:)

func TryCFBitVectorGetBitAtIndex

func TryCFBitVectorGetBitAtIndex(bv CFBitVectorRef, idx CFIndex) (CFBit, error)

TryCFBitVectorGetBitAtIndex is like CFBitVectorGetBitAtIndex but returns an error instead of panicking if CFBitVectorGetBitAtIndex is unavailable at run time.

type CFBitVectorRef

type CFBitVectorRef uintptr

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVector

func CFBitVectorCreate

func CFBitVectorCreate(allocator CFAllocatorRef, bytes []byte, numBits CFIndex) CFBitVectorRef

CFBitVectorCreate creates an immutable bit vector from a block of memory.

It panics if CFBitVectorCreate is unavailable at run time; use TryCFBitVectorCreate to get an error instead.

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.

It panics if CFBitVectorCreateCopy is unavailable at run time; use TryCFBitVectorCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorCreateCopy(_:_:)

func TryCFBitVectorCreate

func TryCFBitVectorCreate(allocator CFAllocatorRef, bytes []byte, numBits CFIndex) (CFBitVectorRef, error)

TryCFBitVectorCreate is like CFBitVectorCreate but returns an error instead of panicking if CFBitVectorCreate is unavailable at run time.

func TryCFBitVectorCreateCopy

func TryCFBitVectorCreateCopy(allocator CFAllocatorRef, bv CFBitVectorRef) (CFBitVectorRef, error)

TryCFBitVectorCreateCopy is like CFBitVectorCreateCopy but returns an error instead of panicking if CFBitVectorCreateCopy is unavailable at run time.

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

CFBundle is a bare alias for 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.

It panics if CFBundleCreate is unavailable at run time; use TryCFBundleCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCreate(_:_:)

func CFBundleGetBundleWithIdentifier

func CFBundleGetBundleWithIdentifier(bundleID CFStringRef) CFBundleRef

CFBundleGetBundleWithIdentifier locate a bundle given its program-defined identifier.

It panics if CFBundleGetBundleWithIdentifier is unavailable at run time; use TryCFBundleGetBundleWithIdentifier to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetBundleWithIdentifier(_:)

func CFBundleGetMainBundle

func CFBundleGetMainBundle() CFBundleRef

CFBundleGetMainBundle returns an application’s main bundle.

It panics if CFBundleGetMainBundle is unavailable at run time; use TryCFBundleGetMainBundle to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetMainBundle()

func CFPlugInGetBundle

func CFPlugInGetBundle(plugIn CFPlugInRef) CFBundleRef

CFPlugInGetBundle returns a plug-in’s bundle.

It panics if CFPlugInGetBundle is unavailable at run time; use TryCFPlugInGetBundle to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInGetBundle(_:)

func TryCFBundleCreate

func TryCFBundleCreate(allocator CFAllocatorRef, bundleURL CFURLRef) (CFBundleRef, error)

TryCFBundleCreate is like CFBundleCreate but returns an error instead of panicking if CFBundleCreate is unavailable at run time.

func TryCFBundleGetBundleWithIdentifier

func TryCFBundleGetBundleWithIdentifier(bundleID CFStringRef) (CFBundleRef, error)

TryCFBundleGetBundleWithIdentifier is like CFBundleGetBundleWithIdentifier but returns an error instead of panicking if CFBundleGetBundleWithIdentifier is unavailable at run time.

func TryCFBundleGetMainBundle

func TryCFBundleGetMainBundle() (CFBundleRef, error)

TryCFBundleGetMainBundle is like CFBundleGetMainBundle but returns an error instead of panicking if CFBundleGetMainBundle is unavailable at run time.

func TryCFPlugInGetBundle

func TryCFPlugInGetBundle(plugIn CFPlugInRef) (CFBundleRef, error)

TryCFPlugInGetBundle is like CFPlugInGetBundle but returns an error instead of panicking if CFPlugInGetBundle is unavailable at run time.

type CFBundleRefNum

type CFBundleRefNum = int32

CFBundleRefNum is type that identifies a distinct reference number for a resource map.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleRefNum

func CFBundleOpenBundleResourceMap deprecated

func CFBundleOpenBundleResourceMap(bundle CFBundleRef) CFBundleRefNum

CFBundleOpenBundleResourceMap opens the non-localized and localized resource files (if any) for a bundle in a single resource map.

It panics if CFBundleOpenBundleResourceMap is unavailable at run time; use TryCFBundleOpenBundleResourceMap to get an error instead.

Deprecated: Deprecated since macOS 10.15. The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleOpenBundleResourceMap(_:)

func TryCFBundleOpenBundleResourceMap

func TryCFBundleOpenBundleResourceMap(bundle CFBundleRef) (CFBundleRefNum, error)

TryCFBundleOpenBundleResourceMap is like CFBundleOpenBundleResourceMap but returns an error instead of panicking if CFBundleOpenBundleResourceMap is unavailable at run time.

type CFByteOrder

type CFByteOrder int
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.

It panics if CFCalendarGetIdentifier is unavailable at run time; use TryCFCalendarGetIdentifier to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetIdentifier(_:)

func TryCFCalendarGetIdentifier

func TryCFCalendarGetIdentifier(calendar CFCalendarRef) (CFCalendarIdentifier, error)

TryCFCalendarGetIdentifier is like CFCalendarGetIdentifier but returns an error instead of panicking if CFCalendarGetIdentifier is unavailable at run time.

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.

It panics if CFCalendarCopyCurrent is unavailable at run time; use TryCFCalendarCopyCurrent to get an error instead.

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.

It panics if CFCalendarCreateWithIdentifier is unavailable at run time; use TryCFCalendarCreateWithIdentifier to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarCreateWithIdentifier(_:_:)

func TryCFCalendarCopyCurrent

func TryCFCalendarCopyCurrent() (CFCalendarRef, error)

TryCFCalendarCopyCurrent is like CFCalendarCopyCurrent but returns an error instead of panicking if CFCalendarCopyCurrent is unavailable at run time.

func TryCFCalendarCreateWithIdentifier

func TryCFCalendarCreateWithIdentifier(allocator CFAllocatorRef, identifier CFCalendarIdentifier) (CFCalendarRef, error)

TryCFCalendarCreateWithIdentifier is like CFCalendarCreateWithIdentifier but returns an error instead of panicking if CFCalendarCreateWithIdentifier is unavailable at run time.

type CFCalendarUnit

type CFCalendarUnit uint

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

CFCharacterSet is a bare alias for 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 (`U000A ~ U000D`, [U0085], [U2028], and [U2029]).
	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*, `U000A ~ U000D`, and [U0085]).
	KCFCharacterSetWhitespaceAndNewline CFCharacterSetPredefinedSet = 3
)

func (CFCharacterSetPredefinedSet) 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.

It panics if CFCharacterSetCreateCopy is unavailable at run time; use TryCFCharacterSetCreateCopy to get an error instead.

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.

It panics if CFCharacterSetCreateInvertedSet is unavailable at run time; use TryCFCharacterSetCreateInvertedSet to get an error instead.

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.

It panics if CFCharacterSetCreateWithBitmapRepresentation is unavailable at run time; use TryCFCharacterSetCreateWithBitmapRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetCreateWithBitmapRepresentation(_:_:)

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.

It panics if CFCharacterSetCreateWithCharactersInRange is unavailable at run time; use TryCFCharacterSetCreateWithCharactersInRange to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetCreateWithCharactersInRange(_:_:)

func CFCharacterSetCreateWithCharactersInString

func CFCharacterSetCreateWithCharactersInString(alloc CFAllocatorRef, theString CFStringRef) CFCharacterSetRef

CFCharacterSetCreateWithCharactersInString creates a new character set with the values in the given string.

It panics if CFCharacterSetCreateWithCharactersInString is unavailable at run time; use TryCFCharacterSetCreateWithCharactersInString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetCreateWithCharactersInString(_:_:)

func CFCharacterSetGetPredefined

func CFCharacterSetGetPredefined(theSetIdentifier CFCharacterSetPredefinedSet) CFCharacterSetRef

CFCharacterSetGetPredefined returns a predefined character set.

It panics if CFCharacterSetGetPredefined is unavailable at run time; use TryCFCharacterSetGetPredefined to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetGetPredefined(_:)

func TryCFCharacterSetCreateCopy

func TryCFCharacterSetCreateCopy(alloc CFAllocatorRef, theSet CFCharacterSetRef) (CFCharacterSetRef, error)

TryCFCharacterSetCreateCopy is like CFCharacterSetCreateCopy but returns an error instead of panicking if CFCharacterSetCreateCopy is unavailable at run time.

func TryCFCharacterSetCreateInvertedSet

func TryCFCharacterSetCreateInvertedSet(alloc CFAllocatorRef, theSet CFCharacterSetRef) (CFCharacterSetRef, error)

TryCFCharacterSetCreateInvertedSet is like CFCharacterSetCreateInvertedSet but returns an error instead of panicking if CFCharacterSetCreateInvertedSet is unavailable at run time.

func TryCFCharacterSetCreateWithBitmapRepresentation

func TryCFCharacterSetCreateWithBitmapRepresentation(alloc CFAllocatorRef, theData CFDataRef) (CFCharacterSetRef, error)

TryCFCharacterSetCreateWithBitmapRepresentation is like CFCharacterSetCreateWithBitmapRepresentation but returns an error instead of panicking if CFCharacterSetCreateWithBitmapRepresentation is unavailable at run time.

func TryCFCharacterSetCreateWithCharactersInRange

func TryCFCharacterSetCreateWithCharactersInRange(alloc CFAllocatorRef, theRange CFRange) (CFCharacterSetRef, error)

TryCFCharacterSetCreateWithCharactersInRange is like CFCharacterSetCreateWithCharactersInRange but returns an error instead of panicking if CFCharacterSetCreateWithCharactersInRange is unavailable at run time.

func TryCFCharacterSetCreateWithCharactersInString

func TryCFCharacterSetCreateWithCharactersInString(alloc CFAllocatorRef, theString CFStringRef) (CFCharacterSetRef, error)

TryCFCharacterSetCreateWithCharactersInString is like CFCharacterSetCreateWithCharactersInString but returns an error instead of panicking if CFCharacterSetCreateWithCharactersInString is unavailable at run time.

func TryCFCharacterSetGetPredefined

func TryCFCharacterSetGetPredefined(theSetIdentifier CFCharacterSetPredefinedSet) (CFCharacterSetRef, error)

TryCFCharacterSetGetPredefined is like CFCharacterSetGetPredefined but returns an error instead of panicking if CFCharacterSetGetPredefined is unavailable at run time.

type CFComparatorFunction

type CFComparatorFunction = CFComparisonResult

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.

It panics if CFDateCompare is unavailable at run time; use TryCFDateCompare to get an error instead.

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.

It panics if CFNumberCompare is unavailable at run time; use TryCFNumberCompare to get an error instead.

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.

It panics if CFStringCompare is unavailable at run time; use TryCFStringCompare to get an error instead.

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.

It panics if CFStringCompareWithOptions is unavailable at run time; use TryCFStringCompareWithOptions to get an error instead.

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.

It panics if CFStringCompareWithOptionsAndLocale is unavailable at run time; use TryCFStringCompareWithOptionsAndLocale to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCompareWithOptionsAndLocale(_:_:_:_:_:)

func TryCFDateCompare

func TryCFDateCompare(theDate CFDateRef, otherDate CFDateRef, context unsafe.Pointer) (CFComparisonResult, error)

TryCFDateCompare is like CFDateCompare but returns an error instead of panicking if CFDateCompare is unavailable at run time.

func TryCFNumberCompare

func TryCFNumberCompare(number CFNumberRef, otherNumber CFNumberRef, context unsafe.Pointer) (CFComparisonResult, error)

TryCFNumberCompare is like CFNumberCompare but returns an error instead of panicking if CFNumberCompare is unavailable at run time.

func TryCFStringCompare

func TryCFStringCompare(theString1 CFStringRef, theString2 CFStringRef, compareOptions CFStringCompareFlags) (CFComparisonResult, error)

TryCFStringCompare is like CFStringCompare but returns an error instead of panicking if CFStringCompare is unavailable at run time.

func TryCFStringCompareWithOptions

func TryCFStringCompareWithOptions(theString1 CFStringRef, theString2 CFStringRef, rangeToCompare CFRange, compareOptions CFStringCompareFlags) (CFComparisonResult, error)

TryCFStringCompareWithOptions is like CFStringCompareWithOptions but returns an error instead of panicking if CFStringCompareWithOptions is unavailable at run time.

func TryCFStringCompareWithOptionsAndLocale

func TryCFStringCompareWithOptionsAndLocale(theString1 CFStringRef, theString2 CFStringRef, rangeToCompare CFRange, compareOptions CFStringCompareFlags, locale CFLocaleRef) (CFComparisonResult, error)

TryCFStringCompareWithOptionsAndLocale is like CFStringCompareWithOptionsAndLocale but returns an error instead of panicking if CFStringCompareWithOptionsAndLocale is unavailable at run time.

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.

It panics if CFCharacterSetCreateBitmapRepresentation is unavailable at run time; use TryCFCharacterSetCreateBitmapRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetCreateBitmapRepresentation(_:_:)

func CFDataCreate

func CFDataCreate(allocator CFAllocatorRef, bytes []byte, length CFIndex) CFDataRef

CFDataCreate creates an immutable CFData object using data copied from a specified byte buffer.

It panics if CFDataCreate is unavailable at run time; use TryCFDataCreate to get an error instead.

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.

It panics if CFDataCreateCopy is unavailable at run time; use TryCFDataCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDataCreateCopy(_:_:)

func CFDataCreateWithBytesNoCopy

func CFDataCreateWithBytesNoCopy(allocator CFAllocatorRef, bytes []byte, length CFIndex, bytesDeallocator CFAllocatorRef) CFDataRef

CFDataCreateWithBytesNoCopy creates an immutable CFData object from an external (client-owned) byte buffer.

It panics if CFDataCreateWithBytesNoCopy is unavailable at run time; use TryCFDataCreateWithBytesNoCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDataCreateWithBytesNoCopy(_:_:_:_:)

func CFPropertyListCreateData

func CFPropertyListCreateData(allocator CFAllocatorRef, propertyList CFPropertyListRef, format CFPropertyListFormat, options CFOptionFlags, err *CFErrorRef) CFDataRef

CFPropertyListCreateData returns a CFData object containing a serialized representation of a given property list in a specified format.

It panics if CFPropertyListCreateData is unavailable at run time; use TryCFPropertyListCreateData to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListCreateData(_:_:_:_:_:)

func CFPropertyListCreateXMLData deprecated

func CFPropertyListCreateXMLData(allocator CFAllocatorRef, propertyList CFPropertyListRef) CFDataRef

CFPropertyListCreateXMLData creates an XML representation of the specified property list.

It panics if CFPropertyListCreateXMLData is unavailable at run time; use TryCFPropertyListCreateXMLData to get an error instead.

Deprecated: Deprecated since macOS 10.10. Use CFPropertyListCreateData instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListCreateXMLData(_:_:)

func CFSocketCopyAddress

func CFSocketCopyAddress(s CFSocketRef) CFDataRef

CFSocketCopyAddress returns the local address of a CFSocket object.

It panics if CFSocketCopyAddress is unavailable at run time; use TryCFSocketCopyAddress to get an error instead.

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.

It panics if CFSocketCopyPeerAddress is unavailable at run time; use TryCFSocketCopyPeerAddress to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCopyPeerAddress(_:)

func CFStringCreateExternalRepresentation

func CFStringCreateExternalRepresentation(alloc CFAllocatorRef, theString CFStringRef, encoding CFStringEncoding, lossByte uint8) CFDataRef

CFStringCreateExternalRepresentation creates an “external representation” of a CFString object, that is, a CFData object.

It panics if CFStringCreateExternalRepresentation is unavailable at run time; use TryCFStringCreateExternalRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateExternalRepresentation(_:_:_:_:)

func CFTimeZoneGetData

func CFTimeZoneGetData(tz CFTimeZoneRef) CFDataRef

CFTimeZoneGetData returns the data that stores the information used by a time zone.

It panics if CFTimeZoneGetData is unavailable at run time; use TryCFTimeZoneGetData to get an error instead.

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.

It panics if CFURLCreateBookmarkData is unavailable at run time; use TryCFURLCreateBookmarkData to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateBookmarkData(_:_:_:_:_:_:)

func CFURLCreateBookmarkDataFromAliasRecord deprecated

func CFURLCreateBookmarkDataFromAliasRecord(allocatorRef CFAllocatorRef, aliasRecordDataRef CFDataRef) CFDataRef

CFURLCreateBookmarkDataFromAliasRecord initializes and returns bookmark data derived from an alias record.

It panics if CFURLCreateBookmarkDataFromAliasRecord is unavailable at run time; use TryCFURLCreateBookmarkDataFromAliasRecord to get an error instead.

Deprecated: Deprecated since macOS 11.0. The Carbon Alias Manager is deprecated. This function should only be used to convert Carbon AliasRecords to bookmark data.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateBookmarkDataFromAliasRecord(_:_:)

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.

It panics if CFURLCreateBookmarkDataFromFile is unavailable at run time; use TryCFURLCreateBookmarkDataFromFile to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateBookmarkDataFromFile(_:_:_:)

func CFURLCreateData

func CFURLCreateData(allocator CFAllocatorRef, url CFURLRef, encoding CFStringEncoding, escapeWhitespace bool) CFDataRef

CFURLCreateData creates a [CFData] object containing the content of a given URL.

It panics if CFURLCreateData is unavailable at run time; use TryCFURLCreateData to get an error instead.

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.

It panics if CFXMLTreeCreateXMLData is unavailable at run time; use TryCFXMLTreeCreateXMLData to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLTreeCreateXMLData

func TryCFCharacterSetCreateBitmapRepresentation

func TryCFCharacterSetCreateBitmapRepresentation(alloc CFAllocatorRef, theSet CFCharacterSetRef) (CFDataRef, error)

TryCFCharacterSetCreateBitmapRepresentation is like CFCharacterSetCreateBitmapRepresentation but returns an error instead of panicking if CFCharacterSetCreateBitmapRepresentation is unavailable at run time.

func TryCFDataCreate

func TryCFDataCreate(allocator CFAllocatorRef, bytes []byte, length CFIndex) (CFDataRef, error)

TryCFDataCreate is like CFDataCreate but returns an error instead of panicking if CFDataCreate is unavailable at run time.

func TryCFDataCreateCopy

func TryCFDataCreateCopy(allocator CFAllocatorRef, theData CFDataRef) (CFDataRef, error)

TryCFDataCreateCopy is like CFDataCreateCopy but returns an error instead of panicking if CFDataCreateCopy is unavailable at run time.

func TryCFDataCreateWithBytesNoCopy

func TryCFDataCreateWithBytesNoCopy(allocator CFAllocatorRef, bytes []byte, length CFIndex, bytesDeallocator CFAllocatorRef) (CFDataRef, error)

TryCFDataCreateWithBytesNoCopy is like CFDataCreateWithBytesNoCopy but returns an error instead of panicking if CFDataCreateWithBytesNoCopy is unavailable at run time.

func TryCFPropertyListCreateData

func TryCFPropertyListCreateData(allocator CFAllocatorRef, propertyList CFPropertyListRef, format CFPropertyListFormat, options CFOptionFlags, err *CFErrorRef) (CFDataRef, error)

TryCFPropertyListCreateData is like CFPropertyListCreateData but returns an error instead of panicking if CFPropertyListCreateData is unavailable at run time.

func TryCFPropertyListCreateXMLData

func TryCFPropertyListCreateXMLData(allocator CFAllocatorRef, propertyList CFPropertyListRef) (CFDataRef, error)

TryCFPropertyListCreateXMLData is like CFPropertyListCreateXMLData but returns an error instead of panicking if CFPropertyListCreateXMLData is unavailable at run time.

func TryCFSocketCopyAddress

func TryCFSocketCopyAddress(s CFSocketRef) (CFDataRef, error)

TryCFSocketCopyAddress is like CFSocketCopyAddress but returns an error instead of panicking if CFSocketCopyAddress is unavailable at run time.

func TryCFSocketCopyPeerAddress

func TryCFSocketCopyPeerAddress(s CFSocketRef) (CFDataRef, error)

TryCFSocketCopyPeerAddress is like CFSocketCopyPeerAddress but returns an error instead of panicking if CFSocketCopyPeerAddress is unavailable at run time.

func TryCFStringCreateExternalRepresentation

func TryCFStringCreateExternalRepresentation(alloc CFAllocatorRef, theString CFStringRef, encoding CFStringEncoding, lossByte uint8) (CFDataRef, error)

TryCFStringCreateExternalRepresentation is like CFStringCreateExternalRepresentation but returns an error instead of panicking if CFStringCreateExternalRepresentation is unavailable at run time.

func TryCFTimeZoneGetData

func TryCFTimeZoneGetData(tz CFTimeZoneRef) (CFDataRef, error)

TryCFTimeZoneGetData is like CFTimeZoneGetData but returns an error instead of panicking if CFTimeZoneGetData is unavailable at run time.

func TryCFURLCreateBookmarkData

func TryCFURLCreateBookmarkData(allocator CFAllocatorRef, url CFURLRef, options CFURLBookmarkCreationOptions, resourcePropertiesToInclude CFArrayRef, relativeToURL CFURLRef, err *CFErrorRef) (CFDataRef, error)

TryCFURLCreateBookmarkData is like CFURLCreateBookmarkData but returns an error instead of panicking if CFURLCreateBookmarkData is unavailable at run time.

func TryCFURLCreateBookmarkDataFromAliasRecord

func TryCFURLCreateBookmarkDataFromAliasRecord(allocatorRef CFAllocatorRef, aliasRecordDataRef CFDataRef) (CFDataRef, error)

TryCFURLCreateBookmarkDataFromAliasRecord is like CFURLCreateBookmarkDataFromAliasRecord but returns an error instead of panicking if CFURLCreateBookmarkDataFromAliasRecord is unavailable at run time.

func TryCFURLCreateBookmarkDataFromFile

func TryCFURLCreateBookmarkDataFromFile(allocator CFAllocatorRef, fileURL CFURLRef, errorRef *CFErrorRef) (CFDataRef, error)

TryCFURLCreateBookmarkDataFromFile is like CFURLCreateBookmarkDataFromFile but returns an error instead of panicking if CFURLCreateBookmarkDataFromFile is unavailable at run time.

func TryCFURLCreateData

func TryCFURLCreateData(allocator CFAllocatorRef, url CFURLRef, encoding CFStringEncoding, escapeWhitespace bool) (CFDataRef, error)

TryCFURLCreateData is like CFURLCreateData but returns an error instead of panicking if CFURLCreateData is unavailable at run time.

func TryCFXMLTreeCreateXMLData

func TryCFXMLTreeCreateXMLData(allocator CFAllocatorRef, xmlTree CFXMLTreeRef) (CFDataRef, error)

TryCFXMLTreeCreateXMLData is like CFXMLTreeCreateXMLData but returns an error instead of panicking if CFXMLTreeCreateXMLData is unavailable at run time.

type CFDataSearchFlags

type CFDataSearchFlags uint

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.

It panics if CFDateFormatterCreate is unavailable at run time; use TryCFDateFormatterCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterCreate(_:_:_:_:)

func CFDateFormatterCreateISO8601Formatter

func CFDateFormatterCreateISO8601Formatter(allocator CFAllocatorRef, formatOptions CFISO8601DateFormatOptions) CFDateFormatterRef

CFDateFormatterCreateISO8601Formatter.

It panics if CFDateFormatterCreateISO8601Formatter is unavailable at run time; use TryCFDateFormatterCreateISO8601Formatter to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterCreateISO8601Formatter(_:_:)

func TryCFDateFormatterCreate

func TryCFDateFormatterCreate(allocator CFAllocatorRef, locale CFLocaleRef, dateStyle CFDateFormatterStyle, timeStyle CFDateFormatterStyle) (CFDateFormatterRef, error)

TryCFDateFormatterCreate is like CFDateFormatterCreate but returns an error instead of panicking if CFDateFormatterCreate is unavailable at run time.

func TryCFDateFormatterCreateISO8601Formatter

func TryCFDateFormatterCreateISO8601Formatter(allocator CFAllocatorRef, formatOptions CFISO8601DateFormatOptions) (CFDateFormatterRef, error)

TryCFDateFormatterCreateISO8601Formatter is like CFDateFormatterCreateISO8601Formatter but returns an error instead of panicking if CFDateFormatterCreateISO8601Formatter is unavailable at run time.

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.

It panics if CFDateFormatterGetDateStyle is unavailable at run time; use TryCFDateFormatterGetDateStyle to get an error instead.

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.

It panics if CFDateFormatterGetTimeStyle is unavailable at run time; use TryCFDateFormatterGetTimeStyle to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterGetTimeStyle(_:)

func TryCFDateFormatterGetDateStyle

func TryCFDateFormatterGetDateStyle(formatter CFDateFormatterRef) (CFDateFormatterStyle, error)

TryCFDateFormatterGetDateStyle is like CFDateFormatterGetDateStyle but returns an error instead of panicking if CFDateFormatterGetDateStyle is unavailable at run time.

func TryCFDateFormatterGetTimeStyle

func TryCFDateFormatterGetTimeStyle(formatter CFDateFormatterRef) (CFDateFormatterStyle, error)

TryCFDateFormatterGetTimeStyle is like CFDateFormatterGetTimeStyle but returns an error instead of panicking if CFDateFormatterGetTimeStyle is unavailable at run time.

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.

It panics if CFDateCreate is unavailable at run time; use TryCFDateCreate to get an error instead.

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.

It panics if CFDateFormatterCreateDateFromString is unavailable at run time; use TryCFDateFormatterCreateDateFromString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterCreateDateFromString(_:_:_:_:)

func TryCFDateCreate

func TryCFDateCreate(allocator CFAllocatorRef, at CFAbsoluteTime) (CFDateRef, error)

TryCFDateCreate is like CFDateCreate but returns an error instead of panicking if CFDateCreate is unavailable at run time.

func TryCFDateFormatterCreateDateFromString

func TryCFDateFormatterCreateDateFromString(allocator CFAllocatorRef, formatter CFDateFormatterRef, string_ CFStringRef, rangep *CFRange) (CFDateRef, error)

TryCFDateFormatterCreateDateFromString is like CFDateFormatterCreateDateFromString but returns an error instead of panicking if CFDateFormatterCreateDateFromString is unavailable at run time.

type CFDictionaryApplierFunction

type CFDictionaryApplierFunction = func(key unsafe.Pointer, value unsafe.Pointer, context unsafe.Pointer)

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

type CFDictionaryCopyDescriptionCallBack = func(value unsafe.Pointer) CFStringRef

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

type CFDictionaryEqualCallBack = func(value1 unsafe.Pointer, value2 unsafe.Pointer) uint8

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

type CFDictionaryHashCallBack = func(value unsafe.Pointer) uint

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 CFIndex // 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.
	// C: CFDictionaryRetainCallBack (const void *(*)(const struct __CFAllocator *, const void *))
	Retain uintptr // 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](<https://developer.apple.com/documentation/CoreFoundation/CFDictionaryRetainCallBack>) for a descriptions of this function’s parameters.
	// C: CFDictionaryReleaseCallBack (void (*)(const struct __CFAllocator *, const void *))
	Release uintptr // The callback used to release keys as they are removed from the dictionary. If [NULL], keys are not released. See [CFDictionaryReleaseCallBack](<https://developer.apple.com/documentation/CoreFoundation/CFDictionaryReleaseCallBack>) for a description of this callback.
	// C: CFDictionaryCopyDescriptionCallBack (const struct __CFString *(*)(const void *))
	CopyDescription uintptr // 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](<https://developer.apple.com/documentation/CoreFoundation/CFDictionaryCopyDescriptionCallBack>) for a description of this callback.
	// C: CFDictionaryEqualCallBack (unsigned char (*)(const void *, const void *))
	Equal uintptr // 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](<https://developer.apple.com/documentation/CoreFoundation/CFDictionaryEqualCallBack>) for a description of this callback.
	// C: CFDictionaryHashCallBack (unsigned long (*)(const void *))
	Hash uintptr // 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](<https://developer.apple.com/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 CFIndex, effectiveRange *CFRange) CFDictionaryRef

CFAttributedStringGetAttributes returns the attributes of an attributed string at a specified location.

It panics if CFAttributedStringGetAttributes is unavailable at run time; use TryCFAttributedStringGetAttributes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetAttributes(_:_:_:)

func CFAttributedStringGetAttributesAndLongestEffectiveRange

func CFAttributedStringGetAttributesAndLongestEffectiveRange(aStr CFAttributedStringRef, loc CFIndex, inRange CFRange, longestEffectiveRange *CFRange) CFDictionaryRef

CFAttributedStringGetAttributesAndLongestEffectiveRange returns the attributes of an attributed string at a specified location.

It panics if CFAttributedStringGetAttributesAndLongestEffectiveRange is unavailable at run time; use TryCFAttributedStringGetAttributesAndLongestEffectiveRange to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetAttributesAndLongestEffectiveRange(_:_:_:_:)

func CFBundleCopyInfoDictionaryForURL

func CFBundleCopyInfoDictionaryForURL(url CFURLRef) CFDictionaryRef

CFBundleCopyInfoDictionaryForURL returns the information dictionary for a given URL location.

It panics if CFBundleCopyInfoDictionaryForURL is unavailable at run time; use TryCFBundleCopyInfoDictionaryForURL to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyInfoDictionaryForURL(_:)

func CFBundleCopyInfoDictionaryInDirectory

func CFBundleCopyInfoDictionaryInDirectory(bundleURL CFURLRef) CFDictionaryRef

CFBundleCopyInfoDictionaryInDirectory returns a bundle’s information dictionary.

It panics if CFBundleCopyInfoDictionaryInDirectory is unavailable at run time; use TryCFBundleCopyInfoDictionaryInDirectory to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyInfoDictionaryInDirectory(_:)

func CFBundleGetInfoDictionary

func CFBundleGetInfoDictionary(bundle CFBundleRef) CFDictionaryRef

CFBundleGetInfoDictionary returns a bundle’s information dictionary.

It panics if CFBundleGetInfoDictionary is unavailable at run time; use TryCFBundleGetInfoDictionary to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetInfoDictionary(_:)

func CFBundleGetLocalInfoDictionary

func CFBundleGetLocalInfoDictionary(bundle CFBundleRef) CFDictionaryRef

CFBundleGetLocalInfoDictionary returns a bundle’s localized information dictionary.

It panics if CFBundleGetLocalInfoDictionary is unavailable at run time; use TryCFBundleGetLocalInfoDictionary to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetLocalInfoDictionary(_:)

func CFDictionaryCreate

func CFDictionaryCreate(allocator CFAllocatorRef, keys unsafe.Pointer, values unsafe.Pointer, numValues CFIndex, keyCallBacks *CFDictionaryKeyCallBacks, valueCallBacks *CFDictionaryValueCallBacks) CFDictionaryRef

CFDictionaryCreate creates an immutable dictionary containing the specified key-value pairs.

It panics if CFDictionaryCreate is unavailable at run time; use TryCFDictionaryCreate to get an error instead.

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.

It panics if CFDictionaryCreateCopy is unavailable at run time; use TryCFDictionaryCreateCopy to get an error instead.

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.

It panics if CFErrorCopyUserInfo is unavailable at run time; use TryCFErrorCopyUserInfo to get an error instead.

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.

It panics if CFLocaleCreateComponentsFromLocaleIdentifier is unavailable at run time; use TryCFLocaleCreateComponentsFromLocaleIdentifier to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCreateComponentsFromLocaleIdentifier(_:_:)

func CFPreferencesCopyMultiple

func CFPreferencesCopyMultiple(keysToFetch CFArrayRef, applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) CFDictionaryRef

CFPreferencesCopyMultiple returns a dictionary containing preference values for multiple keys.

It panics if CFPreferencesCopyMultiple is unavailable at run time; use TryCFPreferencesCopyMultiple to get an error instead.

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.

It panics if CFTimeZoneCopyAbbreviationDictionary is unavailable at run time; use TryCFTimeZoneCopyAbbreviationDictionary to get an error instead.

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.

It panics if CFURLCopyResourcePropertiesForKeys is unavailable at run time; use TryCFURLCopyResourcePropertiesForKeys to get an error instead.

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.

It panics if CFURLCreateResourcePropertiesForKeysFromBookmarkData is unavailable at run time; use TryCFURLCreateResourcePropertiesForKeysFromBookmarkData to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateResourcePropertiesForKeysFromBookmarkData(_:_:_:)

func CFUserNotificationGetResponseDictionary

func CFUserNotificationGetResponseDictionary(userNotification CFUserNotificationRef) CFDictionaryRef

CFUserNotificationGetResponseDictionary returns the dictionary containing all the text field values from a dismissed notification dialog.

It panics if CFUserNotificationGetResponseDictionary is unavailable at run time; use TryCFUserNotificationGetResponseDictionary to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationGetResponseDictionary(_:)

func TryCFAttributedStringGetAttributes

func TryCFAttributedStringGetAttributes(aStr CFAttributedStringRef, loc CFIndex, effectiveRange *CFRange) (CFDictionaryRef, error)

TryCFAttributedStringGetAttributes is like CFAttributedStringGetAttributes but returns an error instead of panicking if CFAttributedStringGetAttributes is unavailable at run time.

func TryCFAttributedStringGetAttributesAndLongestEffectiveRange

func TryCFAttributedStringGetAttributesAndLongestEffectiveRange(aStr CFAttributedStringRef, loc CFIndex, inRange CFRange, longestEffectiveRange *CFRange) (CFDictionaryRef, error)

TryCFAttributedStringGetAttributesAndLongestEffectiveRange is like CFAttributedStringGetAttributesAndLongestEffectiveRange but returns an error instead of panicking if CFAttributedStringGetAttributesAndLongestEffectiveRange is unavailable at run time.

func TryCFBundleCopyInfoDictionaryForURL

func TryCFBundleCopyInfoDictionaryForURL(url CFURLRef) (CFDictionaryRef, error)

TryCFBundleCopyInfoDictionaryForURL is like CFBundleCopyInfoDictionaryForURL but returns an error instead of panicking if CFBundleCopyInfoDictionaryForURL is unavailable at run time.

func TryCFBundleCopyInfoDictionaryInDirectory

func TryCFBundleCopyInfoDictionaryInDirectory(bundleURL CFURLRef) (CFDictionaryRef, error)

TryCFBundleCopyInfoDictionaryInDirectory is like CFBundleCopyInfoDictionaryInDirectory but returns an error instead of panicking if CFBundleCopyInfoDictionaryInDirectory is unavailable at run time.

func TryCFBundleGetInfoDictionary

func TryCFBundleGetInfoDictionary(bundle CFBundleRef) (CFDictionaryRef, error)

TryCFBundleGetInfoDictionary is like CFBundleGetInfoDictionary but returns an error instead of panicking if CFBundleGetInfoDictionary is unavailable at run time.

func TryCFBundleGetLocalInfoDictionary

func TryCFBundleGetLocalInfoDictionary(bundle CFBundleRef) (CFDictionaryRef, error)

TryCFBundleGetLocalInfoDictionary is like CFBundleGetLocalInfoDictionary but returns an error instead of panicking if CFBundleGetLocalInfoDictionary is unavailable at run time.

func TryCFDictionaryCreate

func TryCFDictionaryCreate(allocator CFAllocatorRef, keys unsafe.Pointer, values unsafe.Pointer, numValues CFIndex, keyCallBacks *CFDictionaryKeyCallBacks, valueCallBacks *CFDictionaryValueCallBacks) (CFDictionaryRef, error)

TryCFDictionaryCreate is like CFDictionaryCreate but returns an error instead of panicking if CFDictionaryCreate is unavailable at run time.

func TryCFDictionaryCreateCopy

func TryCFDictionaryCreateCopy(allocator CFAllocatorRef, theDict CFDictionaryRef) (CFDictionaryRef, error)

TryCFDictionaryCreateCopy is like CFDictionaryCreateCopy but returns an error instead of panicking if CFDictionaryCreateCopy is unavailable at run time.

func TryCFErrorCopyUserInfo

func TryCFErrorCopyUserInfo(err CFErrorRef) (CFDictionaryRef, error)

TryCFErrorCopyUserInfo is like CFErrorCopyUserInfo but returns an error instead of panicking if CFErrorCopyUserInfo is unavailable at run time.

func TryCFLocaleCreateComponentsFromLocaleIdentifier

func TryCFLocaleCreateComponentsFromLocaleIdentifier(allocator CFAllocatorRef, localeID CFLocaleIdentifier) (CFDictionaryRef, error)

TryCFLocaleCreateComponentsFromLocaleIdentifier is like CFLocaleCreateComponentsFromLocaleIdentifier but returns an error instead of panicking if CFLocaleCreateComponentsFromLocaleIdentifier is unavailable at run time.

func TryCFPreferencesCopyMultiple

func TryCFPreferencesCopyMultiple(keysToFetch CFArrayRef, applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) (CFDictionaryRef, error)

TryCFPreferencesCopyMultiple is like CFPreferencesCopyMultiple but returns an error instead of panicking if CFPreferencesCopyMultiple is unavailable at run time.

func TryCFTimeZoneCopyAbbreviationDictionary

func TryCFTimeZoneCopyAbbreviationDictionary() (CFDictionaryRef, error)

TryCFTimeZoneCopyAbbreviationDictionary is like CFTimeZoneCopyAbbreviationDictionary but returns an error instead of panicking if CFTimeZoneCopyAbbreviationDictionary is unavailable at run time.

func TryCFURLCopyResourcePropertiesForKeys

func TryCFURLCopyResourcePropertiesForKeys(url CFURLRef, keys CFArrayRef, err *CFErrorRef) (CFDictionaryRef, error)

TryCFURLCopyResourcePropertiesForKeys is like CFURLCopyResourcePropertiesForKeys but returns an error instead of panicking if CFURLCopyResourcePropertiesForKeys is unavailable at run time.

func TryCFURLCreateResourcePropertiesForKeysFromBookmarkData

func TryCFURLCreateResourcePropertiesForKeysFromBookmarkData(allocator CFAllocatorRef, resourcePropertiesToReturn CFArrayRef, bookmark CFDataRef) (CFDictionaryRef, error)

TryCFURLCreateResourcePropertiesForKeysFromBookmarkData is like CFURLCreateResourcePropertiesForKeysFromBookmarkData but returns an error instead of panicking if CFURLCreateResourcePropertiesForKeysFromBookmarkData is unavailable at run time.

func TryCFUserNotificationGetResponseDictionary

func TryCFUserNotificationGetResponseDictionary(userNotification CFUserNotificationRef) (CFDictionaryRef, error)

TryCFUserNotificationGetResponseDictionary is like CFUserNotificationGetResponseDictionary but returns an error instead of panicking if CFUserNotificationGetResponseDictionary is unavailable at run time.

type CFDictionaryReleaseCallBack

type CFDictionaryReleaseCallBack = func(allocator CFAllocatorRef, value unsafe.Pointer)

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

type CFDictionaryRetainCallBack = func(allocator CFAllocatorRef, value unsafe.Pointer) unsafe.Pointer

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 CFIndex // 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.
	// C: CFDictionaryRetainCallBack (const void *(*)(const struct __CFAllocator *, const void *))
	Retain uintptr // 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](<https://developer.apple.com/documentation/CoreFoundation/CFDictionaryRetainCallBack>) for a descriptions of this function’s parameters.
	// C: CFDictionaryReleaseCallBack (void (*)(const struct __CFAllocator *, const void *))
	Release uintptr // The callback used to release values as they are removed from the dictionary. If [NULL], values are not released. See [CFDictionaryReleaseCallBack](<https://developer.apple.com/documentation/CoreFoundation/CFDictionaryReleaseCallBack>) for a description of this callback.
	// C: CFDictionaryCopyDescriptionCallBack (const struct __CFString *(*)(const void *))
	CopyDescription uintptr // 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](<https://developer.apple.com/documentation/CoreFoundation/CFDictionaryCopyDescriptionCallBack>) for a description of this callback.
	// C: CFDictionaryEqualCallBack (unsigned char (*)(const void *, const void *))
	Equal uintptr // 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](<https://developer.apple.com/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

type CFErrorDomain = unsafe.Pointer

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.

It panics if CFErrorGetDomain is unavailable at run time; use TryCFErrorGetDomain to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFErrorGetDomain(_:)

func TryCFErrorGetDomain

func TryCFErrorGetDomain(err CFErrorRef) (CFErrorDomain, error)

TryCFErrorGetDomain is like CFErrorGetDomain but returns an error instead of panicking if CFErrorGetDomain is unavailable at run time.

type CFErrorRef

type CFErrorRef uintptr

See: https://developer.apple.com/documentation/CoreFoundation/CFError

func CFErrorCreate

func CFErrorCreate(allocator CFAllocatorRef, domain CFErrorDomain, code CFIndex, userInfo CFDictionaryRef) CFErrorRef

CFErrorCreate creates a new CFError object.

It panics if CFErrorCreate is unavailable at run time; use TryCFErrorCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFErrorCreate(_:_:_:_:)

func CFErrorCreateWithUserInfoKeysAndValues

func CFErrorCreateWithUserInfoKeysAndValues(allocator CFAllocatorRef, domain CFErrorDomain, code CFIndex, userInfoKeys unsafe.Pointer, userInfoValues unsafe.Pointer, numUserInfoValues CFIndex) CFErrorRef

CFErrorCreateWithUserInfoKeysAndValues creates a new CFError object using given keys and values to create the user info dictionary.

It panics if CFErrorCreateWithUserInfoKeysAndValues is unavailable at run time; use TryCFErrorCreateWithUserInfoKeysAndValues to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFErrorCreateWithUserInfoKeysAndValues(_:_:_:_:_:_:)

func CFReadStreamCopyError

func CFReadStreamCopyError(stream CFReadStreamRef) CFErrorRef

CFReadStreamCopyError returns the error associated with a stream.

It panics if CFReadStreamCopyError is unavailable at run time; use TryCFReadStreamCopyError to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamCopyError(_:)

func CFWriteStreamCopyError

func CFWriteStreamCopyError(stream CFWriteStreamRef) CFErrorRef

CFWriteStreamCopyError returns the error associated with a stream.

It panics if CFWriteStreamCopyError is unavailable at run time; use TryCFWriteStreamCopyError to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamCopyError(_:)

func TryCFErrorCreate

func TryCFErrorCreate(allocator CFAllocatorRef, domain CFErrorDomain, code CFIndex, userInfo CFDictionaryRef) (CFErrorRef, error)

TryCFErrorCreate is like CFErrorCreate but returns an error instead of panicking if CFErrorCreate is unavailable at run time.

func TryCFErrorCreateWithUserInfoKeysAndValues

func TryCFErrorCreateWithUserInfoKeysAndValues(allocator CFAllocatorRef, domain CFErrorDomain, code CFIndex, userInfoKeys unsafe.Pointer, userInfoValues unsafe.Pointer, numUserInfoValues CFIndex) (CFErrorRef, error)

TryCFErrorCreateWithUserInfoKeysAndValues is like CFErrorCreateWithUserInfoKeysAndValues but returns an error instead of panicking if CFErrorCreateWithUserInfoKeysAndValues is unavailable at run time.

func TryCFReadStreamCopyError

func TryCFReadStreamCopyError(stream CFReadStreamRef) (CFErrorRef, error)

TryCFReadStreamCopyError is like CFReadStreamCopyError but returns an error instead of panicking if CFReadStreamCopyError is unavailable at run time.

func TryCFWriteStreamCopyError

func TryCFWriteStreamCopyError(stream CFWriteStreamRef) (CFErrorRef, error)

TryCFWriteStreamCopyError is like CFWriteStreamCopyError but returns an error instead of panicking if CFWriteStreamCopyError is unavailable at run time.

type CFFileDescriptorCallBack

type CFFileDescriptorCallBack = func(CFFileDescriptorRef, uint, unsafe.Pointer)

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 CFIndex // 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
	// C: void *(*)(void *)
	Retain uintptr // The retain callback used by the CFFileDescriptor.
	// C: void (*)(void *)
	Release uintptr // The release callback used by the CFFileDescriptor.
	// C: const struct __CFString *(*)(void *)
	CopyDescription uintptr // The callback used to create a descriptive string representation of 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 = int32

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.

It panics if CFFileDescriptorGetNativeDescriptor is unavailable at run time; use TryCFFileDescriptorGetNativeDescriptor to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorGetNativeDescriptor(_:)

func TryCFFileDescriptorGetNativeDescriptor

func TryCFFileDescriptorGetNativeDescriptor(f CFFileDescriptorRef) (CFFileDescriptorNativeDescriptor, error)

TryCFFileDescriptorGetNativeDescriptor is like CFFileDescriptorGetNativeDescriptor but returns an error instead of panicking if CFFileDescriptorGetNativeDescriptor is unavailable at run time.

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.

It panics if CFFileDescriptorCreate is unavailable at run time; use TryCFFileDescriptorCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorCreate(_:_:_:_:_:)

func TryCFFileDescriptorCreate

func TryCFFileDescriptorCreate(allocator CFAllocatorRef, fd CFFileDescriptorNativeDescriptor, closeOnInvalidate bool, callout CFFileDescriptorCallBack, context *CFFileDescriptorContext) (CFFileDescriptorRef, error)

TryCFFileDescriptorCreate is like CFFileDescriptorCreate but returns an error instead of panicking if CFFileDescriptorCreate is unavailable at run time.

type CFFileSecurityClearOptions

type CFFileSecurityClearOptions uint

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

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.

It panics if CFFileSecurityCreate is unavailable at run time; use TryCFFileSecurityCreate to get an error instead.

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.

It panics if CFFileSecurityCreateCopy is unavailable at run time; use TryCFFileSecurityCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityCreateCopy(_:_:)

func TryCFFileSecurityCreate

func TryCFFileSecurityCreate(allocator CFAllocatorRef) (CFFileSecurityRef, error)

TryCFFileSecurityCreate is like CFFileSecurityCreate but returns an error instead of panicking if CFFileSecurityCreate is unavailable at run time.

func TryCFFileSecurityCreateCopy

func TryCFFileSecurityCreateCopy(allocator CFAllocatorRef, fileSec CFFileSecurityRef) (CFFileSecurityRef, error)

TryCFFileSecurityCreateCopy is like CFFileSecurityCreateCopy but returns an error instead of panicking if CFFileSecurityCreateCopy is unavailable at run time.

type CFGregorianDate

type CFGregorianDate struct {
	Year   int32
	Month  int8
	Day    int8
	Hour   int8
	Minute int8
	Second float64
}

CFGregorianDate - Structure used to represent a point in time using the Gregorian calendar.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFGregorianDate

func CFAbsoluteTimeGetGregorianDate deprecated

func CFAbsoluteTimeGetGregorianDate(at CFAbsoluteTime, tz CFTimeZoneRef) CFGregorianDate

CFAbsoluteTimeGetGregorianDate converts an absolute time value into a Gregorian date.

It panics if CFAbsoluteTimeGetGregorianDate is unavailable at run time; use TryCFAbsoluteTimeGetGregorianDate to get an error instead.

Deprecated: Deprecated since macOS 10.10. Use CFCalendar or NSCalendar API instead

See: https://developer.apple.com/documentation/CoreFoundation/CFAbsoluteTimeGetGregorianDate(_:_:)

func TryCFAbsoluteTimeGetGregorianDate

func TryCFAbsoluteTimeGetGregorianDate(at CFAbsoluteTime, tz CFTimeZoneRef) (CFGregorianDate, error)

TryCFAbsoluteTimeGetGregorianDate is like CFAbsoluteTimeGetGregorianDate but returns an error instead of panicking if CFAbsoluteTimeGetGregorianDate is unavailable at run time.

type CFGregorianUnitFlags

type CFGregorianUnitFlags uint

See: https://developer.apple.com/documentation/CoreFoundation/CFGregorianUnitFlags

const (
	// Deprecated.
	KCFGregorianAllUnits CFGregorianUnitFlags = 0xffffff
	// 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 {
	Years   int32
	Months  int32
	Days    int32
	Hours   int32
	Minutes int32
	Seconds float64
}

CFGregorianUnits - Structure used to represent a time interval in Gregorian units.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFGregorianUnits

func CFAbsoluteTimeGetDifferenceAsGregorianUnits deprecated

func CFAbsoluteTimeGetDifferenceAsGregorianUnits(at1 CFAbsoluteTime, at2 CFAbsoluteTime, tz CFTimeZoneRef, unitFlags CFOptionFlags) CFGregorianUnits

CFAbsoluteTimeGetDifferenceAsGregorianUnits computes the time difference between two specified absolute times and returns the result as an interval in Gregorian units.

It panics if CFAbsoluteTimeGetDifferenceAsGregorianUnits is unavailable at run time; use TryCFAbsoluteTimeGetDifferenceAsGregorianUnits to get an error instead.

Deprecated: Deprecated since macOS 10.10. Use CFCalendar or NSCalendar API instead

See: https://developer.apple.com/documentation/CoreFoundation/CFAbsoluteTimeGetDifferenceAsGregorianUnits(_:_:_:_:)

func TryCFAbsoluteTimeGetDifferenceAsGregorianUnits

func TryCFAbsoluteTimeGetDifferenceAsGregorianUnits(at1 CFAbsoluteTime, at2 CFAbsoluteTime, tz CFTimeZoneRef, unitFlags CFOptionFlags) (CFGregorianUnits, error)

TryCFAbsoluteTimeGetDifferenceAsGregorianUnits is like CFAbsoluteTimeGetDifferenceAsGregorianUnits but returns an error instead of panicking if CFAbsoluteTimeGetDifferenceAsGregorianUnits is unavailable at run time.

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

func CFHash

func CFHash(cf CFTypeRef) CFHashCode

CFHash returns a code that can be used to identify an object in a hashing structure.

It panics if CFHash is unavailable at run time; use TryCFHash to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFHash(_:)

func TryCFHash

func TryCFHash(cf CFTypeRef) (CFHashCode, error)

TryCFHash is like CFHash but returns an error instead of panicking if CFHash is unavailable at run time.

type CFISO8601DateFormatOptions

type CFISO8601DateFormatOptions uint

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 = 275
	KCFISO8601DateFormatWithFullTime                 CFISO8601DateFormatOptions = 1632
	KCFISO8601DateFormatWithInternetDateTime         CFISO8601DateFormatOptions = 1907
	KCFISO8601DateFormatWithMonth                    CFISO8601DateFormatOptions = 2
	KCFISO8601DateFormatWithSpaceBetweenDateAndTime  CFISO8601DateFormatOptions = 128
	KCFISO8601DateFormatWithTime                     CFISO8601DateFormatOptions = 32
	KCFISO8601DateFormatWithTimeZone                 CFISO8601DateFormatOptions = 64
	KCFISO8601DateFormatWithWeekOfYear               CFISO8601DateFormatOptions = 4
	KCFISO8601DateFormatWithYear                     CFISO8601DateFormatOptions = 1
)

func (CFISO8601DateFormatOptions) String

type CFIndex

type CFIndex = int

CFIndex is priority values used for kAXPriorityKey.

See: https://developer.apple.com/documentation/CoreFoundation/CFIndex

const (
	// KCFPropertyListReadCorruptError: Signifies an error parsing a property list.
	KCFPropertyListReadCorruptError CFIndex = 3840
	// KCFPropertyListReadStreamError: Signifies a stream error reading a property list.
	KCFPropertyListReadStreamError CFIndex = 3842
	// KCFPropertyListReadUnknownVersionError: Signifies the version number in the property list is unknown.
	KCFPropertyListReadUnknownVersionError CFIndex = 3841
	// KCFPropertyListWriteStreamError: Signifies a stream error writing a property list.
	KCFPropertyListWriteStreamError CFIndex = 3851
)
const KCFNotFound CFIndex = -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

func CFAllocatorGetPreferredSizeForSize

func CFAllocatorGetPreferredSizeForSize(allocator CFAllocatorRef, size CFIndex, hint CFOptionFlags) CFIndex

CFAllocatorGetPreferredSizeForSize obtains the number of bytes likely to be allocated upon a specific request.

It panics if CFAllocatorGetPreferredSizeForSize is unavailable at run time; use TryCFAllocatorGetPreferredSizeForSize to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorGetPreferredSizeForSize(_:_:_:)

func CFArrayBSearchValues

func CFArrayBSearchValues(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer, comparator CFComparatorFunction, context unsafe.Pointer) CFIndex

CFArrayBSearchValues searches an array for a value using a binary search algorithm.

It panics if CFArrayBSearchValues is unavailable at run time; use TryCFArrayBSearchValues to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayBSearchValues(_:_:_:_:_:)

func CFArrayGetCount

func CFArrayGetCount(theArray CFArrayRef) CFIndex

CFArrayGetCount returns the number of values currently in an array.

It panics if CFArrayGetCount is unavailable at run time; use TryCFArrayGetCount to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetCount(_:)

func CFArrayGetCountOfValue

func CFArrayGetCountOfValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) CFIndex

CFArrayGetCountOfValue counts the number of times a given value occurs in an array.

It panics if CFArrayGetCountOfValue is unavailable at run time; use TryCFArrayGetCountOfValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetCountOfValue(_:_:_:)

func CFArrayGetFirstIndexOfValue

func CFArrayGetFirstIndexOfValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) CFIndex

CFArrayGetFirstIndexOfValue searches an array forward for a value.

It panics if CFArrayGetFirstIndexOfValue is unavailable at run time; use TryCFArrayGetFirstIndexOfValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetFirstIndexOfValue(_:_:_:)

func CFArrayGetLastIndexOfValue

func CFArrayGetLastIndexOfValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) CFIndex

CFArrayGetLastIndexOfValue searches an array backward for a value.

It panics if CFArrayGetLastIndexOfValue is unavailable at run time; use TryCFArrayGetLastIndexOfValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetLastIndexOfValue(_:_:_:)

func CFAttributedStringGetLength

func CFAttributedStringGetLength(aStr CFAttributedStringRef) CFIndex

CFAttributedStringGetLength returns the length of the attributed string in characters.

It panics if CFAttributedStringGetLength is unavailable at run time; use TryCFAttributedStringGetLength to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetLength(_:)

func CFBagGetCount

func CFBagGetCount(theBag CFBagRef) CFIndex

CFBagGetCount returns the number of values currently in a bag.

It panics if CFBagGetCount is unavailable at run time; use TryCFBagGetCount to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBagGetCount(_:)

func CFBagGetCountOfValue

func CFBagGetCountOfValue(theBag CFBagRef, value unsafe.Pointer) CFIndex

CFBagGetCountOfValue returns the number of times a value occurs in a bag.

It panics if CFBagGetCountOfValue is unavailable at run time; use TryCFBagGetCountOfValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBagGetCountOfValue(_:_:)

func CFBinaryHeapGetCount

func CFBinaryHeapGetCount(heap CFBinaryHeapRef) CFIndex

CFBinaryHeapGetCount returns the number of values currently in a binary heap.

It panics if CFBinaryHeapGetCount is unavailable at run time; use TryCFBinaryHeapGetCount to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapGetCount(_:)

func CFBinaryHeapGetCountOfValue

func CFBinaryHeapGetCountOfValue(heap CFBinaryHeapRef, value unsafe.Pointer) CFIndex

CFBinaryHeapGetCountOfValue counts the number of times a given value occurs in a binary heap.

It panics if CFBinaryHeapGetCountOfValue is unavailable at run time; use TryCFBinaryHeapGetCountOfValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapGetCountOfValue(_:_:)

func CFBitVectorGetCount

func CFBitVectorGetCount(bv CFBitVectorRef) CFIndex

CFBitVectorGetCount returns the number of bit values in a bit vector.

It panics if CFBitVectorGetCount is unavailable at run time; use TryCFBitVectorGetCount to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetCount(_:)

func CFBitVectorGetCountOfBit

func CFBitVectorGetCountOfBit(bv CFBitVectorRef, range_ CFRange, value CFBit) CFIndex

CFBitVectorGetCountOfBit counts the number of times a certain bit value occurs within a range of bits in a bit vector.

It panics if CFBitVectorGetCountOfBit is unavailable at run time; use TryCFBitVectorGetCountOfBit to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetCountOfBit(_:_:_:)

func CFBitVectorGetFirstIndexOfBit

func CFBitVectorGetFirstIndexOfBit(bv CFBitVectorRef, range_ CFRange, value CFBit) CFIndex

CFBitVectorGetFirstIndexOfBit locates the first occurrence of a certain bit value within a range of bits in a bit vector.

It panics if CFBitVectorGetFirstIndexOfBit is unavailable at run time; use TryCFBitVectorGetFirstIndexOfBit to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetFirstIndexOfBit(_:_:_:)

func CFBitVectorGetLastIndexOfBit

func CFBitVectorGetLastIndexOfBit(bv CFBitVectorRef, range_ CFRange, value CFBit) CFIndex

CFBitVectorGetLastIndexOfBit locates the last occurrence of a certain bit value within a range of bits in a bit vector.

It panics if CFBitVectorGetLastIndexOfBit is unavailable at run time; use TryCFBitVectorGetLastIndexOfBit to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetLastIndexOfBit(_:_:_:)

func CFCalendarGetFirstWeekday

func CFCalendarGetFirstWeekday(calendar CFCalendarRef) CFIndex

CFCalendarGetFirstWeekday returns the index of first weekday for a specified calendar.

It panics if CFCalendarGetFirstWeekday is unavailable at run time; use TryCFCalendarGetFirstWeekday to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetFirstWeekday(_:)

func CFCalendarGetMinimumDaysInFirstWeek

func CFCalendarGetMinimumDaysInFirstWeek(calendar CFCalendarRef) CFIndex

CFCalendarGetMinimumDaysInFirstWeek returns the minimum number of days in the first week of a specified calendar.

It panics if CFCalendarGetMinimumDaysInFirstWeek is unavailable at run time; use TryCFCalendarGetMinimumDaysInFirstWeek to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetMinimumDaysInFirstWeek(_:)

func CFCalendarGetOrdinalityOfUnit

func CFCalendarGetOrdinalityOfUnit(calendar CFCalendarRef, smallerUnit CFCalendarUnit, biggerUnit CFCalendarUnit, at CFAbsoluteTime) CFIndex

CFCalendarGetOrdinalityOfUnit returns the ordinal number of a calendrical unit within a larger unit at a specified absolute time.

It panics if CFCalendarGetOrdinalityOfUnit is unavailable at run time; use TryCFCalendarGetOrdinalityOfUnit to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetOrdinalityOfUnit(_:_:_:_:)

func CFDataGetLength

func CFDataGetLength(theData CFDataRef) CFIndex

CFDataGetLength returns the number of bytes contained by a CFData object.

It panics if CFDataGetLength is unavailable at run time; use TryCFDataGetLength to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDataGetLength(_:)

func CFDictionaryGetCount

func CFDictionaryGetCount(theDict CFDictionaryRef) CFIndex

CFDictionaryGetCount returns the number of key-value pairs in a dictionary.

It panics if CFDictionaryGetCount is unavailable at run time; use TryCFDictionaryGetCount to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryGetCount(_:)

func CFDictionaryGetCountOfKey

func CFDictionaryGetCountOfKey(theDict CFDictionaryRef, key unsafe.Pointer) CFIndex

CFDictionaryGetCountOfKey returns the number of times a key occurs in a dictionary.

It panics if CFDictionaryGetCountOfKey is unavailable at run time; use TryCFDictionaryGetCountOfKey to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryGetCountOfKey(_:_:)

func CFDictionaryGetCountOfValue

func CFDictionaryGetCountOfValue(theDict CFDictionaryRef, value unsafe.Pointer) CFIndex

CFDictionaryGetCountOfValue counts the number of times a given value occurs in the dictionary.

It panics if CFDictionaryGetCountOfValue is unavailable at run time; use TryCFDictionaryGetCountOfValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryGetCountOfValue(_:_:)

func CFErrorGetCode

func CFErrorGetCode(err CFErrorRef) CFIndex

CFErrorGetCode returns the error code for a given CFError.

It panics if CFErrorGetCode is unavailable at run time; use TryCFErrorGetCode to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFErrorGetCode(_:)

func CFGetRetainCount

func CFGetRetainCount(cf CFTypeRef) CFIndex

CFGetRetainCount returns the reference count of a Core Foundation object.

It panics if CFGetRetainCount is unavailable at run time; use TryCFGetRetainCount to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFGetRetainCount(_:)

func CFNumberGetByteSize

func CFNumberGetByteSize(number CFNumberRef) CFIndex

CFNumberGetByteSize returns the number of bytes used by a CFNumber object to store its value.

It panics if CFNumberGetByteSize is unavailable at run time; use TryCFNumberGetByteSize to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberGetByteSize(_:)

func CFPreferencesGetAppIntegerValue

func CFPreferencesGetAppIntegerValue(key CFStringRef, applicationID CFStringRef, keyExistsAndHasValidFormat *bool) CFIndex

CFPreferencesGetAppIntegerValue convenience function that directly obtains an integer preference value for the specified key.

It panics if CFPreferencesGetAppIntegerValue is unavailable at run time; use TryCFPreferencesGetAppIntegerValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesGetAppIntegerValue(_:_:_:)

func CFPropertyListWrite

func CFPropertyListWrite(propertyList CFPropertyListRef, stream CFWriteStreamRef, format CFPropertyListFormat, options CFOptionFlags, err *CFErrorRef) CFIndex

CFPropertyListWrite write the bytes of a serialized property list out to a stream.

It panics if CFPropertyListWrite is unavailable at run time; use TryCFPropertyListWrite to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListWrite(_:_:_:_:_:)

func CFPropertyListWriteToStream deprecated

func CFPropertyListWriteToStream(propertyList CFPropertyListRef, stream CFWriteStreamRef, format CFPropertyListFormat, errorString *CFStringRef) CFIndex

CFPropertyListWriteToStream writes the bytes of a property list serialization out to a stream.

It panics if CFPropertyListWriteToStream is unavailable at run time; use TryCFPropertyListWriteToStream to get an error instead.

Deprecated: Deprecated since macOS 10.10. Use CFPropertyListWrite instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListWriteToStream(_:_:_:_:)

func CFReadStreamRead

func CFReadStreamRead(stream CFReadStreamRef, buffer []byte, bufferLength CFIndex) CFIndex

CFReadStreamRead reads data from a readable stream.

It panics if CFReadStreamRead is unavailable at run time; use TryCFReadStreamRead to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamRead(_:_:_:)

func CFRunLoopObserverGetOrder

func CFRunLoopObserverGetOrder(observer CFRunLoopObserverRef) CFIndex

CFRunLoopObserverGetOrder returns the ordering parameter for a CFRunLoopObserver object.

It panics if CFRunLoopObserverGetOrder is unavailable at run time; use TryCFRunLoopObserverGetOrder to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverGetOrder(_:)

func CFRunLoopSourceGetOrder

func CFRunLoopSourceGetOrder(source CFRunLoopSourceRef) CFIndex

CFRunLoopSourceGetOrder returns the ordering parameter for a CFRunLoopSource object.

It panics if CFRunLoopSourceGetOrder is unavailable at run time; use TryCFRunLoopSourceGetOrder to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceGetOrder(_:)

func CFRunLoopTimerGetOrder

func CFRunLoopTimerGetOrder(timer CFRunLoopTimerRef) CFIndex

CFRunLoopTimerGetOrder returns the ordering parameter for a CFRunLoopTimer object.

It panics if CFRunLoopTimerGetOrder is unavailable at run time; use TryCFRunLoopTimerGetOrder to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerGetOrder(_:)

func CFSetGetCount

func CFSetGetCount(theSet CFSetRef) CFIndex

CFSetGetCount returns the number of values currently in a set.

It panics if CFSetGetCount is unavailable at run time; use TryCFSetGetCount to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSetGetCount(_:)

func CFSetGetCountOfValue

func CFSetGetCountOfValue(theSet CFSetRef, value unsafe.Pointer) CFIndex

CFSetGetCountOfValue returns the number of values in a set that match a given value.

It panics if CFSetGetCountOfValue is unavailable at run time; use TryCFSetGetCountOfValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSetGetCountOfValue(_:_:)

func CFStringFindAndReplace

func CFStringFindAndReplace(theString CFMutableStringRef, stringToFind CFStringRef, replacementString CFStringRef, rangeToSearch CFRange, compareOptions CFStringCompareFlags) CFIndex

CFStringFindAndReplace replaces all occurrences of a substring within a given range.

It panics if CFStringFindAndReplace is unavailable at run time; use TryCFStringFindAndReplace to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringFindAndReplace(_:_:_:_:_:)

func CFStringGetBytes

func CFStringGetBytes(theString CFStringRef, range_ CFRange, encoding CFStringEncoding, lossByte uint8, isExternalRepresentation bool, buffer []byte, maxBufLen CFIndex, usedBufLen *CFIndex) CFIndex

CFStringGetBytes fetches a range of the characters from a string into a byte buffer after converting the characters to a specified encoding.

It panics if CFStringGetBytes is unavailable at run time; use TryCFStringGetBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetBytes(_:_:_:_:_:_:_:_:)

func CFStringGetHyphenationLocationBeforeIndex

func CFStringGetHyphenationLocationBeforeIndex(string_ CFStringRef, location CFIndex, limitRange CFRange, options CFOptionFlags, locale CFLocaleRef, character *uint32) CFIndex

CFStringGetHyphenationLocationBeforeIndex retrieve the first potential hyphenation location found before the specified location.

It panics if CFStringGetHyphenationLocationBeforeIndex is unavailable at run time; use TryCFStringGetHyphenationLocationBeforeIndex to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetHyphenationLocationBeforeIndex(_:_:_:_:_:_:)

func CFStringGetLength

func CFStringGetLength(theString CFStringRef) CFIndex

CFStringGetLength returns the number (in terms of UTF-16 code pairs) of Unicode characters in a string.

It panics if CFStringGetLength is unavailable at run time; use TryCFStringGetLength to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetLength(_:)

func CFStringGetMaximumSizeForEncoding

func CFStringGetMaximumSizeForEncoding(length CFIndex, encoding CFStringEncoding) CFIndex

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.

It panics if CFStringGetMaximumSizeForEncoding is unavailable at run time; use TryCFStringGetMaximumSizeForEncoding to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetMaximumSizeForEncoding(_:_:)

func CFStringGetMaximumSizeOfFileSystemRepresentation

func CFStringGetMaximumSizeOfFileSystemRepresentation(string_ CFStringRef) CFIndex

CFStringGetMaximumSizeOfFileSystemRepresentation determines the upper bound on the number of bytes required to hold the file system representation of the string.

It panics if CFStringGetMaximumSizeOfFileSystemRepresentation is unavailable at run time; use TryCFStringGetMaximumSizeOfFileSystemRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetMaximumSizeOfFileSystemRepresentation(_:)

func CFStringTokenizerGetCurrentSubTokens

func CFStringTokenizerGetCurrentSubTokens(tokenizer CFStringTokenizerRef, ranges *CFRange, maxRangeLength CFIndex, derivedSubTokens CFMutableArrayRef) CFIndex

CFStringTokenizerGetCurrentSubTokens retrieves the subtokens or derived subtokens contained in the compound token.

It panics if CFStringTokenizerGetCurrentSubTokens is unavailable at run time; use TryCFStringTokenizerGetCurrentSubTokens to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerGetCurrentSubTokens(_:_:_:_:)

func CFTreeGetChildCount

func CFTreeGetChildCount(tree CFTreeRef) CFIndex

CFTreeGetChildCount returns the number of children in a tree.

It panics if CFTreeGetChildCount is unavailable at run time; use TryCFTreeGetChildCount to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetChildCount(_:)

func CFURLEnumeratorGetDescendentLevel

func CFURLEnumeratorGetDescendentLevel(enumerator CFURLEnumeratorRef) CFIndex

CFURLEnumeratorGetDescendentLevel returns the number of levels a recursive directory enumerator has descended.

It panics if CFURLEnumeratorGetDescendentLevel is unavailable at run time; use TryCFURLEnumeratorGetDescendentLevel to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorGetDescendentLevel(_:)

func CFURLGetBytes

func CFURLGetBytes(url CFURLRef, buffer []byte, bufferLength CFIndex) CFIndex

CFURLGetBytes returns by reference the byte representation of a URL object.

It panics if CFURLGetBytes is unavailable at run time; use TryCFURLGetBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLGetBytes(_:_:_:)

func CFWriteStreamWrite

func CFWriteStreamWrite(stream CFWriteStreamRef, buffer []byte, bufferLength CFIndex) CFIndex

CFWriteStreamWrite writes data to a writable stream.

It panics if CFWriteStreamWrite is unavailable at run time; use TryCFWriteStreamWrite to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamWrite(_:_:_:)

func CFXMLNodeGetVersion deprecated

func CFXMLNodeGetVersion(node unsafe.Pointer) CFIndex

CFXMLNodeGetVersion returns the version number for a CFXMLNode object.

It panics if CFXMLNodeGetVersion is unavailable at run time; use TryCFXMLNodeGetVersion to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLNodeGetVersion

func CFXMLParserGetLineNumber deprecated

func CFXMLParserGetLineNumber(parser CFXMLParserRef) CFIndex

CFXMLParserGetLineNumber returns the line number of the current parse location.

It panics if CFXMLParserGetLineNumber is unavailable at run time; use TryCFXMLParserGetLineNumber to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetLineNumber

func CFXMLParserGetLocation deprecated

func CFXMLParserGetLocation(parser CFXMLParserRef) CFIndex

CFXMLParserGetLocation returns the character index of the current parse location.

It panics if CFXMLParserGetLocation is unavailable at run time; use TryCFXMLParserGetLocation to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetLocation

func TryCFAllocatorGetPreferredSizeForSize

func TryCFAllocatorGetPreferredSizeForSize(allocator CFAllocatorRef, size CFIndex, hint CFOptionFlags) (CFIndex, error)

TryCFAllocatorGetPreferredSizeForSize is like CFAllocatorGetPreferredSizeForSize but returns an error instead of panicking if CFAllocatorGetPreferredSizeForSize is unavailable at run time.

func TryCFArrayBSearchValues

func TryCFArrayBSearchValues(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer, comparator CFComparatorFunction, context unsafe.Pointer) (CFIndex, error)

TryCFArrayBSearchValues is like CFArrayBSearchValues but returns an error instead of panicking if CFArrayBSearchValues is unavailable at run time.

func TryCFArrayGetCount

func TryCFArrayGetCount(theArray CFArrayRef) (CFIndex, error)

TryCFArrayGetCount is like CFArrayGetCount but returns an error instead of panicking if CFArrayGetCount is unavailable at run time.

func TryCFArrayGetCountOfValue

func TryCFArrayGetCountOfValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) (CFIndex, error)

TryCFArrayGetCountOfValue is like CFArrayGetCountOfValue but returns an error instead of panicking if CFArrayGetCountOfValue is unavailable at run time.

func TryCFArrayGetFirstIndexOfValue

func TryCFArrayGetFirstIndexOfValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) (CFIndex, error)

TryCFArrayGetFirstIndexOfValue is like CFArrayGetFirstIndexOfValue but returns an error instead of panicking if CFArrayGetFirstIndexOfValue is unavailable at run time.

func TryCFArrayGetLastIndexOfValue

func TryCFArrayGetLastIndexOfValue(theArray CFArrayRef, range_ CFRange, value unsafe.Pointer) (CFIndex, error)

TryCFArrayGetLastIndexOfValue is like CFArrayGetLastIndexOfValue but returns an error instead of panicking if CFArrayGetLastIndexOfValue is unavailable at run time.

func TryCFAttributedStringGetLength

func TryCFAttributedStringGetLength(aStr CFAttributedStringRef) (CFIndex, error)

TryCFAttributedStringGetLength is like CFAttributedStringGetLength but returns an error instead of panicking if CFAttributedStringGetLength is unavailable at run time.

func TryCFBagGetCount

func TryCFBagGetCount(theBag CFBagRef) (CFIndex, error)

TryCFBagGetCount is like CFBagGetCount but returns an error instead of panicking if CFBagGetCount is unavailable at run time.

func TryCFBagGetCountOfValue

func TryCFBagGetCountOfValue(theBag CFBagRef, value unsafe.Pointer) (CFIndex, error)

TryCFBagGetCountOfValue is like CFBagGetCountOfValue but returns an error instead of panicking if CFBagGetCountOfValue is unavailable at run time.

func TryCFBinaryHeapGetCount

func TryCFBinaryHeapGetCount(heap CFBinaryHeapRef) (CFIndex, error)

TryCFBinaryHeapGetCount is like CFBinaryHeapGetCount but returns an error instead of panicking if CFBinaryHeapGetCount is unavailable at run time.

func TryCFBinaryHeapGetCountOfValue

func TryCFBinaryHeapGetCountOfValue(heap CFBinaryHeapRef, value unsafe.Pointer) (CFIndex, error)

TryCFBinaryHeapGetCountOfValue is like CFBinaryHeapGetCountOfValue but returns an error instead of panicking if CFBinaryHeapGetCountOfValue is unavailable at run time.

func TryCFBitVectorGetCount

func TryCFBitVectorGetCount(bv CFBitVectorRef) (CFIndex, error)

TryCFBitVectorGetCount is like CFBitVectorGetCount but returns an error instead of panicking if CFBitVectorGetCount is unavailable at run time.

func TryCFBitVectorGetCountOfBit

func TryCFBitVectorGetCountOfBit(bv CFBitVectorRef, range_ CFRange, value CFBit) (CFIndex, error)

TryCFBitVectorGetCountOfBit is like CFBitVectorGetCountOfBit but returns an error instead of panicking if CFBitVectorGetCountOfBit is unavailable at run time.

func TryCFBitVectorGetFirstIndexOfBit

func TryCFBitVectorGetFirstIndexOfBit(bv CFBitVectorRef, range_ CFRange, value CFBit) (CFIndex, error)

TryCFBitVectorGetFirstIndexOfBit is like CFBitVectorGetFirstIndexOfBit but returns an error instead of panicking if CFBitVectorGetFirstIndexOfBit is unavailable at run time.

func TryCFBitVectorGetLastIndexOfBit

func TryCFBitVectorGetLastIndexOfBit(bv CFBitVectorRef, range_ CFRange, value CFBit) (CFIndex, error)

TryCFBitVectorGetLastIndexOfBit is like CFBitVectorGetLastIndexOfBit but returns an error instead of panicking if CFBitVectorGetLastIndexOfBit is unavailable at run time.

func TryCFCalendarGetFirstWeekday

func TryCFCalendarGetFirstWeekday(calendar CFCalendarRef) (CFIndex, error)

TryCFCalendarGetFirstWeekday is like CFCalendarGetFirstWeekday but returns an error instead of panicking if CFCalendarGetFirstWeekday is unavailable at run time.

func TryCFCalendarGetMinimumDaysInFirstWeek

func TryCFCalendarGetMinimumDaysInFirstWeek(calendar CFCalendarRef) (CFIndex, error)

TryCFCalendarGetMinimumDaysInFirstWeek is like CFCalendarGetMinimumDaysInFirstWeek but returns an error instead of panicking if CFCalendarGetMinimumDaysInFirstWeek is unavailable at run time.

func TryCFCalendarGetOrdinalityOfUnit

func TryCFCalendarGetOrdinalityOfUnit(calendar CFCalendarRef, smallerUnit CFCalendarUnit, biggerUnit CFCalendarUnit, at CFAbsoluteTime) (CFIndex, error)

TryCFCalendarGetOrdinalityOfUnit is like CFCalendarGetOrdinalityOfUnit but returns an error instead of panicking if CFCalendarGetOrdinalityOfUnit is unavailable at run time.

func TryCFDataGetLength

func TryCFDataGetLength(theData CFDataRef) (CFIndex, error)

TryCFDataGetLength is like CFDataGetLength but returns an error instead of panicking if CFDataGetLength is unavailable at run time.

func TryCFDictionaryGetCount

func TryCFDictionaryGetCount(theDict CFDictionaryRef) (CFIndex, error)

TryCFDictionaryGetCount is like CFDictionaryGetCount but returns an error instead of panicking if CFDictionaryGetCount is unavailable at run time.

func TryCFDictionaryGetCountOfKey

func TryCFDictionaryGetCountOfKey(theDict CFDictionaryRef, key unsafe.Pointer) (CFIndex, error)

TryCFDictionaryGetCountOfKey is like CFDictionaryGetCountOfKey but returns an error instead of panicking if CFDictionaryGetCountOfKey is unavailable at run time.

func TryCFDictionaryGetCountOfValue

func TryCFDictionaryGetCountOfValue(theDict CFDictionaryRef, value unsafe.Pointer) (CFIndex, error)

TryCFDictionaryGetCountOfValue is like CFDictionaryGetCountOfValue but returns an error instead of panicking if CFDictionaryGetCountOfValue is unavailable at run time.

func TryCFErrorGetCode

func TryCFErrorGetCode(err CFErrorRef) (CFIndex, error)

TryCFErrorGetCode is like CFErrorGetCode but returns an error instead of panicking if CFErrorGetCode is unavailable at run time.

func TryCFGetRetainCount

func TryCFGetRetainCount(cf CFTypeRef) (CFIndex, error)

TryCFGetRetainCount is like CFGetRetainCount but returns an error instead of panicking if CFGetRetainCount is unavailable at run time.

func TryCFNumberGetByteSize

func TryCFNumberGetByteSize(number CFNumberRef) (CFIndex, error)

TryCFNumberGetByteSize is like CFNumberGetByteSize but returns an error instead of panicking if CFNumberGetByteSize is unavailable at run time.

func TryCFPreferencesGetAppIntegerValue

func TryCFPreferencesGetAppIntegerValue(key CFStringRef, applicationID CFStringRef, keyExistsAndHasValidFormat *bool) (CFIndex, error)

TryCFPreferencesGetAppIntegerValue is like CFPreferencesGetAppIntegerValue but returns an error instead of panicking if CFPreferencesGetAppIntegerValue is unavailable at run time.

func TryCFPropertyListWrite

func TryCFPropertyListWrite(propertyList CFPropertyListRef, stream CFWriteStreamRef, format CFPropertyListFormat, options CFOptionFlags, err *CFErrorRef) (CFIndex, error)

TryCFPropertyListWrite is like CFPropertyListWrite but returns an error instead of panicking if CFPropertyListWrite is unavailable at run time.

func TryCFPropertyListWriteToStream

func TryCFPropertyListWriteToStream(propertyList CFPropertyListRef, stream CFWriteStreamRef, format CFPropertyListFormat, errorString *CFStringRef) (CFIndex, error)

TryCFPropertyListWriteToStream is like CFPropertyListWriteToStream but returns an error instead of panicking if CFPropertyListWriteToStream is unavailable at run time.

func TryCFReadStreamRead

func TryCFReadStreamRead(stream CFReadStreamRef, buffer []byte, bufferLength CFIndex) (CFIndex, error)

TryCFReadStreamRead is like CFReadStreamRead but returns an error instead of panicking if CFReadStreamRead is unavailable at run time.

func TryCFRunLoopObserverGetOrder

func TryCFRunLoopObserverGetOrder(observer CFRunLoopObserverRef) (CFIndex, error)

TryCFRunLoopObserverGetOrder is like CFRunLoopObserverGetOrder but returns an error instead of panicking if CFRunLoopObserverGetOrder is unavailable at run time.

func TryCFRunLoopSourceGetOrder

func TryCFRunLoopSourceGetOrder(source CFRunLoopSourceRef) (CFIndex, error)

TryCFRunLoopSourceGetOrder is like CFRunLoopSourceGetOrder but returns an error instead of panicking if CFRunLoopSourceGetOrder is unavailable at run time.

func TryCFRunLoopTimerGetOrder

func TryCFRunLoopTimerGetOrder(timer CFRunLoopTimerRef) (CFIndex, error)

TryCFRunLoopTimerGetOrder is like CFRunLoopTimerGetOrder but returns an error instead of panicking if CFRunLoopTimerGetOrder is unavailable at run time.

func TryCFSetGetCount

func TryCFSetGetCount(theSet CFSetRef) (CFIndex, error)

TryCFSetGetCount is like CFSetGetCount but returns an error instead of panicking if CFSetGetCount is unavailable at run time.

func TryCFSetGetCountOfValue

func TryCFSetGetCountOfValue(theSet CFSetRef, value unsafe.Pointer) (CFIndex, error)

TryCFSetGetCountOfValue is like CFSetGetCountOfValue but returns an error instead of panicking if CFSetGetCountOfValue is unavailable at run time.

func TryCFStringFindAndReplace

func TryCFStringFindAndReplace(theString CFMutableStringRef, stringToFind CFStringRef, replacementString CFStringRef, rangeToSearch CFRange, compareOptions CFStringCompareFlags) (CFIndex, error)

TryCFStringFindAndReplace is like CFStringFindAndReplace but returns an error instead of panicking if CFStringFindAndReplace is unavailable at run time.

func TryCFStringGetBytes

func TryCFStringGetBytes(theString CFStringRef, range_ CFRange, encoding CFStringEncoding, lossByte uint8, isExternalRepresentation bool, buffer []byte, maxBufLen CFIndex, usedBufLen *CFIndex) (CFIndex, error)

TryCFStringGetBytes is like CFStringGetBytes but returns an error instead of panicking if CFStringGetBytes is unavailable at run time.

func TryCFStringGetHyphenationLocationBeforeIndex

func TryCFStringGetHyphenationLocationBeforeIndex(string_ CFStringRef, location CFIndex, limitRange CFRange, options CFOptionFlags, locale CFLocaleRef, character *uint32) (CFIndex, error)

TryCFStringGetHyphenationLocationBeforeIndex is like CFStringGetHyphenationLocationBeforeIndex but returns an error instead of panicking if CFStringGetHyphenationLocationBeforeIndex is unavailable at run time.

func TryCFStringGetLength

func TryCFStringGetLength(theString CFStringRef) (CFIndex, error)

TryCFStringGetLength is like CFStringGetLength but returns an error instead of panicking if CFStringGetLength is unavailable at run time.

func TryCFStringGetMaximumSizeForEncoding

func TryCFStringGetMaximumSizeForEncoding(length CFIndex, encoding CFStringEncoding) (CFIndex, error)

TryCFStringGetMaximumSizeForEncoding is like CFStringGetMaximumSizeForEncoding but returns an error instead of panicking if CFStringGetMaximumSizeForEncoding is unavailable at run time.

func TryCFStringGetMaximumSizeOfFileSystemRepresentation

func TryCFStringGetMaximumSizeOfFileSystemRepresentation(string_ CFStringRef) (CFIndex, error)

TryCFStringGetMaximumSizeOfFileSystemRepresentation is like CFStringGetMaximumSizeOfFileSystemRepresentation but returns an error instead of panicking if CFStringGetMaximumSizeOfFileSystemRepresentation is unavailable at run time.

func TryCFStringTokenizerGetCurrentSubTokens

func TryCFStringTokenizerGetCurrentSubTokens(tokenizer CFStringTokenizerRef, ranges *CFRange, maxRangeLength CFIndex, derivedSubTokens CFMutableArrayRef) (CFIndex, error)

TryCFStringTokenizerGetCurrentSubTokens is like CFStringTokenizerGetCurrentSubTokens but returns an error instead of panicking if CFStringTokenizerGetCurrentSubTokens is unavailable at run time.

func TryCFTreeGetChildCount

func TryCFTreeGetChildCount(tree CFTreeRef) (CFIndex, error)

TryCFTreeGetChildCount is like CFTreeGetChildCount but returns an error instead of panicking if CFTreeGetChildCount is unavailable at run time.

func TryCFURLEnumeratorGetDescendentLevel

func TryCFURLEnumeratorGetDescendentLevel(enumerator CFURLEnumeratorRef) (CFIndex, error)

TryCFURLEnumeratorGetDescendentLevel is like CFURLEnumeratorGetDescendentLevel but returns an error instead of panicking if CFURLEnumeratorGetDescendentLevel is unavailable at run time.

func TryCFURLGetBytes

func TryCFURLGetBytes(url CFURLRef, buffer []byte, bufferLength CFIndex) (CFIndex, error)

TryCFURLGetBytes is like CFURLGetBytes but returns an error instead of panicking if CFURLGetBytes is unavailable at run time.

func TryCFWriteStreamWrite

func TryCFWriteStreamWrite(stream CFWriteStreamRef, buffer []byte, bufferLength CFIndex) (CFIndex, error)

TryCFWriteStreamWrite is like CFWriteStreamWrite but returns an error instead of panicking if CFWriteStreamWrite is unavailable at run time.

func TryCFXMLNodeGetVersion

func TryCFXMLNodeGetVersion(node unsafe.Pointer) (CFIndex, error)

TryCFXMLNodeGetVersion is like CFXMLNodeGetVersion but returns an error instead of panicking if CFXMLNodeGetVersion is unavailable at run time.

func TryCFXMLParserGetLineNumber

func TryCFXMLParserGetLineNumber(parser CFXMLParserRef) (CFIndex, error)

TryCFXMLParserGetLineNumber is like CFXMLParserGetLineNumber but returns an error instead of panicking if CFXMLParserGetLineNumber is unavailable at run time.

func TryCFXMLParserGetLocation

func TryCFXMLParserGetLocation(parser CFXMLParserRef) (CFIndex, error)

TryCFXMLParserGetLocation is like CFXMLParserGetLocation but returns an error instead of panicking if CFXMLParserGetLocation is unavailable at run time.

type CFLocale

type CFLocale = CFLocaleRef

CFLocale is a bare alias for 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

It panics if CFLocaleCreateCanonicalLanguageIdentifierFromString is unavailable at run time; use TryCFLocaleCreateCanonicalLanguageIdentifierFromString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCreateCanonicalLanguageIdentifierFromString(_:_:)

func CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes

func CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes(allocator CFAllocatorRef, lcode int16, rcode int16) CFLocaleIdentifier

CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes returns a canonical locale identifier from given language and region codes.

It panics if CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes is unavailable at run time; use TryCFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes(_:_:_:)

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.

It panics if CFLocaleCreateCanonicalLocaleIdentifierFromString is unavailable at run time; use TryCFLocaleCreateCanonicalLocaleIdentifierFromString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCreateCanonicalLocaleIdentifierFromString(_:_:)

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.

It panics if CFLocaleCreateLocaleIdentifierFromComponents is unavailable at run time; use TryCFLocaleCreateLocaleIdentifierFromComponents to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCreateLocaleIdentifierFromComponents(_:_:)

func CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode

func CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode(allocator CFAllocatorRef, lcid uint32) CFLocaleIdentifier

CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode returns a locale identifier from a Windows locale code.

It panics if CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode is unavailable at run time; use TryCFLocaleCreateLocaleIdentifierFromWindowsLocaleCode to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode(_:_:)

func CFLocaleGetIdentifier

func CFLocaleGetIdentifier(locale CFLocaleRef) CFLocaleIdentifier

CFLocaleGetIdentifier returns the given locale’s identifier.

It panics if CFLocaleGetIdentifier is unavailable at run time; use TryCFLocaleGetIdentifier to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleGetIdentifier(_:)

func TryCFLocaleCreateCanonicalLanguageIdentifierFromString

func TryCFLocaleCreateCanonicalLanguageIdentifierFromString(allocator CFAllocatorRef, localeIdentifier CFStringRef) (CFLocaleIdentifier, error)

TryCFLocaleCreateCanonicalLanguageIdentifierFromString is like CFLocaleCreateCanonicalLanguageIdentifierFromString but returns an error instead of panicking if CFLocaleCreateCanonicalLanguageIdentifierFromString is unavailable at run time.

func TryCFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes

func TryCFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes(allocator CFAllocatorRef, lcode int16, rcode int16) (CFLocaleIdentifier, error)

TryCFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes is like CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes but returns an error instead of panicking if CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes is unavailable at run time.

func TryCFLocaleCreateCanonicalLocaleIdentifierFromString

func TryCFLocaleCreateCanonicalLocaleIdentifierFromString(allocator CFAllocatorRef, localeIdentifier CFStringRef) (CFLocaleIdentifier, error)

TryCFLocaleCreateCanonicalLocaleIdentifierFromString is like CFLocaleCreateCanonicalLocaleIdentifierFromString but returns an error instead of panicking if CFLocaleCreateCanonicalLocaleIdentifierFromString is unavailable at run time.

func TryCFLocaleCreateLocaleIdentifierFromComponents

func TryCFLocaleCreateLocaleIdentifierFromComponents(allocator CFAllocatorRef, dictionary CFDictionaryRef) (CFLocaleIdentifier, error)

TryCFLocaleCreateLocaleIdentifierFromComponents is like CFLocaleCreateLocaleIdentifierFromComponents but returns an error instead of panicking if CFLocaleCreateLocaleIdentifierFromComponents is unavailable at run time.

func TryCFLocaleCreateLocaleIdentifierFromWindowsLocaleCode

func TryCFLocaleCreateLocaleIdentifierFromWindowsLocaleCode(allocator CFAllocatorRef, lcid uint32) (CFLocaleIdentifier, error)

TryCFLocaleCreateLocaleIdentifierFromWindowsLocaleCode is like CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode but returns an error instead of panicking if CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode is unavailable at run time.

func TryCFLocaleGetIdentifier

func TryCFLocaleGetIdentifier(locale CFLocaleRef) (CFLocaleIdentifier, error)

TryCFLocaleGetIdentifier is like CFLocaleGetIdentifier but returns an error instead of panicking if CFLocaleGetIdentifier is unavailable at run time.

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

const (
	// KCFLocaleLanguageDirectionBottomToTop: # Discussion
	KCFLocaleLanguageDirectionBottomToTop CFLocaleLanguageDirection = 4
	// KCFLocaleLanguageDirectionLeftToRight: # Discussion
	KCFLocaleLanguageDirectionLeftToRight CFLocaleLanguageDirection = 1
	// KCFLocaleLanguageDirectionRightToLeft: # Discussion
	KCFLocaleLanguageDirectionRightToLeft CFLocaleLanguageDirection = 2
	// KCFLocaleLanguageDirectionTopToBottom: # Discussion
	KCFLocaleLanguageDirectionTopToBottom CFLocaleLanguageDirection = 3
	// KCFLocaleLanguageDirectionUnknown: # Discussion
	KCFLocaleLanguageDirectionUnknown CFLocaleLanguageDirection = 0
)

func CFLocaleGetLanguageCharacterDirection

func CFLocaleGetLanguageCharacterDirection(isoLangCode CFStringRef) CFLocaleLanguageDirection

CFLocaleGetLanguageCharacterDirection returns the character direction for the specified ISO language code.

It panics if CFLocaleGetLanguageCharacterDirection is unavailable at run time; use TryCFLocaleGetLanguageCharacterDirection to get an error instead.

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.

It panics if CFLocaleGetLanguageLineDirection is unavailable at run time; use TryCFLocaleGetLanguageLineDirection to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleGetLanguageLineDirection(_:)

func TryCFLocaleGetLanguageCharacterDirection

func TryCFLocaleGetLanguageCharacterDirection(isoLangCode CFStringRef) (CFLocaleLanguageDirection, error)

TryCFLocaleGetLanguageCharacterDirection is like CFLocaleGetLanguageCharacterDirection but returns an error instead of panicking if CFLocaleGetLanguageCharacterDirection is unavailable at run time.

func TryCFLocaleGetLanguageLineDirection

func TryCFLocaleGetLanguageLineDirection(isoLangCode CFStringRef) (CFLocaleLanguageDirection, error)

TryCFLocaleGetLanguageLineDirection is like CFLocaleGetLanguageLineDirection but returns an error instead of panicking if CFLocaleGetLanguageLineDirection is unavailable at run time.

func (CFLocaleLanguageDirection) String added in v0.5.1

func (e CFLocaleLanguageDirection) String() string

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.

It panics if CFCalendarCopyLocale is unavailable at run time; use TryCFCalendarCopyLocale to get an error instead.

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.

It panics if CFDateFormatterGetLocale is unavailable at run time; use TryCFDateFormatterGetLocale to get an error instead.

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.

It panics if CFLocaleCopyCurrent is unavailable at run time; use TryCFLocaleCopyCurrent to get an error instead.

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.

It panics if CFLocaleCreate is unavailable at run time; use TryCFLocaleCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCreate(_:_:)

func CFLocaleCreateCopy

func CFLocaleCreateCopy(allocator CFAllocatorRef, locale CFLocaleRef) CFLocaleRef

CFLocaleCreateCopy returns a copy of a locale.

It panics if CFLocaleCreateCopy is unavailable at run time; use TryCFLocaleCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCreateCopy(_:_:)

func CFLocaleGetSystem

func CFLocaleGetSystem() CFLocaleRef

CFLocaleGetSystem returns the root, canonical locale.

It panics if CFLocaleGetSystem is unavailable at run time; use TryCFLocaleGetSystem to get an error instead.

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.

It panics if CFNumberFormatterGetLocale is unavailable at run time; use TryCFNumberFormatterGetLocale to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterGetLocale(_:)

func TryCFCalendarCopyLocale

func TryCFCalendarCopyLocale(calendar CFCalendarRef) (CFLocaleRef, error)

TryCFCalendarCopyLocale is like CFCalendarCopyLocale but returns an error instead of panicking if CFCalendarCopyLocale is unavailable at run time.

func TryCFDateFormatterGetLocale

func TryCFDateFormatterGetLocale(formatter CFDateFormatterRef) (CFLocaleRef, error)

TryCFDateFormatterGetLocale is like CFDateFormatterGetLocale but returns an error instead of panicking if CFDateFormatterGetLocale is unavailable at run time.

func TryCFLocaleCopyCurrent

func TryCFLocaleCopyCurrent() (CFLocaleRef, error)

TryCFLocaleCopyCurrent is like CFLocaleCopyCurrent but returns an error instead of panicking if CFLocaleCopyCurrent is unavailable at run time.

func TryCFLocaleCreate

func TryCFLocaleCreate(allocator CFAllocatorRef, localeIdentifier CFLocaleIdentifier) (CFLocaleRef, error)

TryCFLocaleCreate is like CFLocaleCreate but returns an error instead of panicking if CFLocaleCreate is unavailable at run time.

func TryCFLocaleCreateCopy

func TryCFLocaleCreateCopy(allocator CFAllocatorRef, locale CFLocaleRef) (CFLocaleRef, error)

TryCFLocaleCreateCopy is like CFLocaleCreateCopy but returns an error instead of panicking if CFLocaleCreateCopy is unavailable at run time.

func TryCFLocaleGetSystem

func TryCFLocaleGetSystem() (CFLocaleRef, error)

TryCFLocaleGetSystem is like CFLocaleGetSystem but returns an error instead of panicking if CFLocaleGetSystem is unavailable at run time.

func TryCFNumberFormatterGetLocale

func TryCFNumberFormatterGetLocale(formatter CFNumberFormatterRef) (CFLocaleRef, error)

TryCFNumberFormatterGetLocale is like CFNumberFormatterGetLocale but returns an error instead of panicking if CFNumberFormatterGetLocale is unavailable at run time.

type CFMachPort

type CFMachPort = CFMachPortRef

CFMachPort is a bare alias for CFMachPortRef.

type CFMachPortCallBack

type CFMachPortCallBack = func(port CFMachPortRef, msg unsafe.Pointer, size int, info unsafe.Pointer)

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 CFIndex        // 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.
	// C: const void *(*)(const void *)
	Retain uintptr // A retain callback for your program-defined `info` pointer. Can be [NULL].
	// C: void (*)(const void *)
	Release uintptr // A release callback for your program-defined `info` pointer. Can be [NULL].
	// C: const struct __CFString *(*)(const void *)
	CopyDescription uintptr // A copy description 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

type CFMachPortInvalidationCallBack = func(port CFMachPortRef, info unsafe.Pointer)

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.

It panics if CFMachPortGetInvalidationCallBack is unavailable at run time; use TryCFMachPortGetInvalidationCallBack to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortGetInvalidationCallBack(_:)

func TryCFMachPortGetInvalidationCallBack

func TryCFMachPortGetInvalidationCallBack(port CFMachPortRef) (CFMachPortInvalidationCallBack, error)

TryCFMachPortGetInvalidationCallBack is like CFMachPortGetInvalidationCallBack but returns an error instead of panicking if CFMachPortGetInvalidationCallBack is unavailable at run time.

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.

It panics if CFMachPortCreate is unavailable at run time; use TryCFMachPortCreate to get an error instead.

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.

It panics if CFMachPortCreateWithPort is unavailable at run time; use TryCFMachPortCreateWithPort to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortCreateWithPort(_:_:_:_:_:)

func TryCFMachPortCreate

func TryCFMachPortCreate(allocator CFAllocatorRef, callout CFMachPortCallBack, context *CFMachPortContext, shouldFreeInfo *bool) (CFMachPortRef, error)

TryCFMachPortCreate is like CFMachPortCreate but returns an error instead of panicking if CFMachPortCreate is unavailable at run time.

func TryCFMachPortCreateWithPort

func TryCFMachPortCreateWithPort(allocator CFAllocatorRef, portNum uint32, callout CFMachPortCallBack, context *CFMachPortContext, shouldFreeInfo *bool) (CFMachPortRef, error)

TryCFMachPortCreateWithPort is like CFMachPortCreateWithPort but returns an error instead of panicking if CFMachPortCreateWithPort is unavailable at run time.

type CFMessagePortCallBack

type CFMessagePortCallBack = func(local CFMessagePortRef, msgid int32, data CFDataRef, info unsafe.Pointer) CFDataRef

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 CFIndex        // 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.
	// C: const void *(*)(const void *)
	Retain uintptr // A retain callback for your program-defined `info` pointer. Can be [NULL].
	// C: void (*)(const void *)
	Release uintptr // A release callback for your program-defined `info` pointer. Can be [NULL].
	// C: const struct __CFString *(*)(const void *)
	CopyDescription uintptr // A copy description 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

type CFMessagePortInvalidationCallBack = func(ms CFMessagePortRef, info unsafe.Pointer)

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.

It panics if CFMessagePortGetInvalidationCallBack is unavailable at run time; use TryCFMessagePortGetInvalidationCallBack to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortGetInvalidationCallBack(_:)

func TryCFMessagePortGetInvalidationCallBack

func TryCFMessagePortGetInvalidationCallBack(ms CFMessagePortRef) (CFMessagePortInvalidationCallBack, error)

TryCFMessagePortGetInvalidationCallBack is like CFMessagePortGetInvalidationCallBack but returns an error instead of panicking if CFMessagePortGetInvalidationCallBack is unavailable at run time.

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.

It panics if CFMessagePortCreateLocal is unavailable at run time; use TryCFMessagePortCreateLocal to get an error instead.

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.

It panics if CFMessagePortCreateRemote is unavailable at run time; use TryCFMessagePortCreateRemote to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortCreateRemote(_:_:)

func TryCFMessagePortCreateLocal

func TryCFMessagePortCreateLocal(allocator CFAllocatorRef, name CFStringRef, callout CFMessagePortCallBack, context *CFMessagePortContext, shouldFreeInfo *bool) (CFMessagePortRef, error)

TryCFMessagePortCreateLocal is like CFMessagePortCreateLocal but returns an error instead of panicking if CFMessagePortCreateLocal is unavailable at run time.

func TryCFMessagePortCreateRemote

func TryCFMessagePortCreateRemote(allocator CFAllocatorRef, name CFStringRef) (CFMessagePortRef, error)

TryCFMessagePortCreateRemote is like CFMessagePortCreateRemote but returns an error instead of panicking if CFMessagePortCreateRemote is unavailable at run time.

type CFMutableArrayRef

type CFMutableArrayRef uintptr

See: https://developer.apple.com/documentation/CoreFoundation/CFMutableArray

func CFArrayCreateMutable

func CFArrayCreateMutable(allocator CFAllocatorRef, capacity CFIndex, callBacks *CFArrayCallBacks) CFMutableArrayRef

CFArrayCreateMutable creates a new empty mutable array.

It panics if CFArrayCreateMutable is unavailable at run time; use TryCFArrayCreateMutable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayCreateMutable(_:_:_:)

func CFArrayCreateMutableCopy

func CFArrayCreateMutableCopy(allocator CFAllocatorRef, capacity CFIndex, theArray CFArrayRef) CFMutableArrayRef

CFArrayCreateMutableCopy creates a new mutable array with the values from another array.

It panics if CFArrayCreateMutableCopy is unavailable at run time; use TryCFArrayCreateMutableCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayCreateMutableCopy(_:_:_:)

func TryCFArrayCreateMutable

func TryCFArrayCreateMutable(allocator CFAllocatorRef, capacity CFIndex, callBacks *CFArrayCallBacks) (CFMutableArrayRef, error)

TryCFArrayCreateMutable is like CFArrayCreateMutable but returns an error instead of panicking if CFArrayCreateMutable is unavailable at run time.

func TryCFArrayCreateMutableCopy

func TryCFArrayCreateMutableCopy(allocator CFAllocatorRef, capacity CFIndex, theArray CFArrayRef) (CFMutableArrayRef, error)

TryCFArrayCreateMutableCopy is like CFArrayCreateMutableCopy but returns an error instead of panicking if CFArrayCreateMutableCopy is unavailable at run time.

type CFMutableAttributedStringRef

type CFMutableAttributedStringRef uintptr

See: https://developer.apple.com/documentation/CoreFoundation/CFMutableAttributedString

func CFAttributedStringCreateMutable

func CFAttributedStringCreateMutable(alloc CFAllocatorRef, maxLength CFIndex) CFMutableAttributedStringRef

CFAttributedStringCreateMutable creates a mutable attributed string.

It panics if CFAttributedStringCreateMutable is unavailable at run time; use TryCFAttributedStringCreateMutable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringCreateMutable(_:_:)

func CFAttributedStringCreateMutableCopy

func CFAttributedStringCreateMutableCopy(alloc CFAllocatorRef, maxLength CFIndex, aStr CFAttributedStringRef) CFMutableAttributedStringRef

CFAttributedStringCreateMutableCopy creates a mutable copy of an attributed string.

It panics if CFAttributedStringCreateMutableCopy is unavailable at run time; use TryCFAttributedStringCreateMutableCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringCreateMutableCopy(_:_:_:)

func TryCFAttributedStringCreateMutable

func TryCFAttributedStringCreateMutable(alloc CFAllocatorRef, maxLength CFIndex) (CFMutableAttributedStringRef, error)

TryCFAttributedStringCreateMutable is like CFAttributedStringCreateMutable but returns an error instead of panicking if CFAttributedStringCreateMutable is unavailable at run time.

func TryCFAttributedStringCreateMutableCopy

func TryCFAttributedStringCreateMutableCopy(alloc CFAllocatorRef, maxLength CFIndex, aStr CFAttributedStringRef) (CFMutableAttributedStringRef, error)

TryCFAttributedStringCreateMutableCopy is like CFAttributedStringCreateMutableCopy but returns an error instead of panicking if CFAttributedStringCreateMutableCopy is unavailable at run time.

type CFMutableBagRef

type CFMutableBagRef uintptr

See: https://developer.apple.com/documentation/CoreFoundation/CFMutableBag

func CFBagCreateMutable

func CFBagCreateMutable(allocator CFAllocatorRef, capacity CFIndex, callBacks *CFBagCallBacks) CFMutableBagRef

CFBagCreateMutable creates a new empty mutable bag.

It panics if CFBagCreateMutable is unavailable at run time; use TryCFBagCreateMutable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBagCreateMutable(_:_:_:)

func CFBagCreateMutableCopy

func CFBagCreateMutableCopy(allocator CFAllocatorRef, capacity CFIndex, theBag CFBagRef) CFMutableBagRef

CFBagCreateMutableCopy creates a new mutable bag with the values from another bag.

It panics if CFBagCreateMutableCopy is unavailable at run time; use TryCFBagCreateMutableCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBagCreateMutableCopy(_:_:_:)

func TryCFBagCreateMutable

func TryCFBagCreateMutable(allocator CFAllocatorRef, capacity CFIndex, callBacks *CFBagCallBacks) (CFMutableBagRef, error)

TryCFBagCreateMutable is like CFBagCreateMutable but returns an error instead of panicking if CFBagCreateMutable is unavailable at run time.

func TryCFBagCreateMutableCopy

func TryCFBagCreateMutableCopy(allocator CFAllocatorRef, capacity CFIndex, theBag CFBagRef) (CFMutableBagRef, error)

TryCFBagCreateMutableCopy is like CFBagCreateMutableCopy but returns an error instead of panicking if CFBagCreateMutableCopy is unavailable at run time.

type CFMutableBitVectorRef

type CFMutableBitVectorRef uintptr

See: https://developer.apple.com/documentation/CoreFoundation/CFMutableBitVector

func CFBitVectorCreateMutable

func CFBitVectorCreateMutable(allocator CFAllocatorRef, capacity CFIndex) CFMutableBitVectorRef

CFBitVectorCreateMutable creates a mutable bit vector.

It panics if CFBitVectorCreateMutable is unavailable at run time; use TryCFBitVectorCreateMutable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorCreateMutable(_:_:)

func CFBitVectorCreateMutableCopy

func CFBitVectorCreateMutableCopy(allocator CFAllocatorRef, capacity CFIndex, bv CFBitVectorRef) CFMutableBitVectorRef

CFBitVectorCreateMutableCopy creates a new mutable bit vector from a pre-existing bit vector.

It panics if CFBitVectorCreateMutableCopy is unavailable at run time; use TryCFBitVectorCreateMutableCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorCreateMutableCopy(_:_:_:)

func TryCFBitVectorCreateMutable

func TryCFBitVectorCreateMutable(allocator CFAllocatorRef, capacity CFIndex) (CFMutableBitVectorRef, error)

TryCFBitVectorCreateMutable is like CFBitVectorCreateMutable but returns an error instead of panicking if CFBitVectorCreateMutable is unavailable at run time.

func TryCFBitVectorCreateMutableCopy

func TryCFBitVectorCreateMutableCopy(allocator CFAllocatorRef, capacity CFIndex, bv CFBitVectorRef) (CFMutableBitVectorRef, error)

TryCFBitVectorCreateMutableCopy is like CFBitVectorCreateMutableCopy but returns an error instead of panicking if CFBitVectorCreateMutableCopy is unavailable at run time.

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.

It panics if CFCharacterSetCreateMutable is unavailable at run time; use TryCFCharacterSetCreateMutable to get an error instead.

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.

It panics if CFCharacterSetCreateMutableCopy is unavailable at run time; use TryCFCharacterSetCreateMutableCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetCreateMutableCopy(_:_:)

func TryCFCharacterSetCreateMutable

func TryCFCharacterSetCreateMutable(alloc CFAllocatorRef) (CFMutableCharacterSetRef, error)

TryCFCharacterSetCreateMutable is like CFCharacterSetCreateMutable but returns an error instead of panicking if CFCharacterSetCreateMutable is unavailable at run time.

func TryCFCharacterSetCreateMutableCopy

func TryCFCharacterSetCreateMutableCopy(alloc CFAllocatorRef, theSet CFCharacterSetRef) (CFMutableCharacterSetRef, error)

TryCFCharacterSetCreateMutableCopy is like CFCharacterSetCreateMutableCopy but returns an error instead of panicking if CFCharacterSetCreateMutableCopy is unavailable at run time.

type CFMutableDataRef

type CFMutableDataRef uintptr

See: https://developer.apple.com/documentation/CoreFoundation/CFMutableData

func CFDataCreateMutable

func CFDataCreateMutable(allocator CFAllocatorRef, capacity CFIndex) CFMutableDataRef

CFDataCreateMutable creates an empty CFMutableData object.

It panics if CFDataCreateMutable is unavailable at run time; use TryCFDataCreateMutable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDataCreateMutable(_:_:)

func CFDataCreateMutableCopy

func CFDataCreateMutableCopy(allocator CFAllocatorRef, capacity CFIndex, theData CFDataRef) CFMutableDataRef

CFDataCreateMutableCopy creates a CFMutableData object by copying another CFData object.

It panics if CFDataCreateMutableCopy is unavailable at run time; use TryCFDataCreateMutableCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDataCreateMutableCopy(_:_:_:)

func TryCFDataCreateMutable

func TryCFDataCreateMutable(allocator CFAllocatorRef, capacity CFIndex) (CFMutableDataRef, error)

TryCFDataCreateMutable is like CFDataCreateMutable but returns an error instead of panicking if CFDataCreateMutable is unavailable at run time.

func TryCFDataCreateMutableCopy

func TryCFDataCreateMutableCopy(allocator CFAllocatorRef, capacity CFIndex, theData CFDataRef) (CFMutableDataRef, error)

TryCFDataCreateMutableCopy is like CFDataCreateMutableCopy but returns an error instead of panicking if CFDataCreateMutableCopy is unavailable at run time.

type CFMutableDictionary

type CFMutableDictionary = CFMutableDictionaryRef

CFMutableDictionary is a bare alias for CFMutableDictionaryRef.

type CFMutableDictionaryRef

type CFMutableDictionaryRef uintptr

See: https://developer.apple.com/documentation/CoreFoundation/CFMutableDictionary

func CFDictionaryCreateMutable

func CFDictionaryCreateMutable(allocator CFAllocatorRef, capacity CFIndex, keyCallBacks *CFDictionaryKeyCallBacks, valueCallBacks *CFDictionaryValueCallBacks) CFMutableDictionaryRef

CFDictionaryCreateMutable creates a new mutable dictionary.

It panics if CFDictionaryCreateMutable is unavailable at run time; use TryCFDictionaryCreateMutable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryCreateMutable(_:_:_:_:)

func CFDictionaryCreateMutableCopy

func CFDictionaryCreateMutableCopy(allocator CFAllocatorRef, capacity CFIndex, theDict CFDictionaryRef) CFMutableDictionaryRef

CFDictionaryCreateMutableCopy creates a new mutable dictionary with the key-value pairs from another dictionary.

It panics if CFDictionaryCreateMutableCopy is unavailable at run time; use TryCFDictionaryCreateMutableCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryCreateMutableCopy(_:_:_:)

func TryCFDictionaryCreateMutable

func TryCFDictionaryCreateMutable(allocator CFAllocatorRef, capacity CFIndex, keyCallBacks *CFDictionaryKeyCallBacks, valueCallBacks *CFDictionaryValueCallBacks) (CFMutableDictionaryRef, error)

TryCFDictionaryCreateMutable is like CFDictionaryCreateMutable but returns an error instead of panicking if CFDictionaryCreateMutable is unavailable at run time.

func TryCFDictionaryCreateMutableCopy

func TryCFDictionaryCreateMutableCopy(allocator CFAllocatorRef, capacity CFIndex, theDict CFDictionaryRef) (CFMutableDictionaryRef, error)

TryCFDictionaryCreateMutableCopy is like CFDictionaryCreateMutableCopy but returns an error instead of panicking if CFDictionaryCreateMutableCopy is unavailable at run time.

type CFMutableSetRef

type CFMutableSetRef uintptr

See: https://developer.apple.com/documentation/CoreFoundation/CFMutableSet

func CFSetCreateMutable

func CFSetCreateMutable(allocator CFAllocatorRef, capacity CFIndex, callBacks *CFSetCallBacks) CFMutableSetRef

CFSetCreateMutable creates an empty CFMutableSet object.

It panics if CFSetCreateMutable is unavailable at run time; use TryCFSetCreateMutable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSetCreateMutable(_:_:_:)

func CFSetCreateMutableCopy

func CFSetCreateMutableCopy(allocator CFAllocatorRef, capacity CFIndex, theSet CFSetRef) CFMutableSetRef

CFSetCreateMutableCopy creates a new mutable set with the values from another set.

It panics if CFSetCreateMutableCopy is unavailable at run time; use TryCFSetCreateMutableCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSetCreateMutableCopy(_:_:_:)

func TryCFSetCreateMutable

func TryCFSetCreateMutable(allocator CFAllocatorRef, capacity CFIndex, callBacks *CFSetCallBacks) (CFMutableSetRef, error)

TryCFSetCreateMutable is like CFSetCreateMutable but returns an error instead of panicking if CFSetCreateMutable is unavailable at run time.

func TryCFSetCreateMutableCopy

func TryCFSetCreateMutableCopy(allocator CFAllocatorRef, capacity CFIndex, theSet CFSetRef) (CFMutableSetRef, error)

TryCFSetCreateMutableCopy is like CFSetCreateMutableCopy but returns an error instead of panicking if CFSetCreateMutableCopy is unavailable at run time.

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.

It panics if CFAttributedStringGetMutableString is unavailable at run time; use TryCFAttributedStringGetMutableString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetMutableString(_:)

func CFStringCreateMutable

func CFStringCreateMutable(alloc CFAllocatorRef, maxLength CFIndex) CFMutableStringRef

CFStringCreateMutable creates an empty CFMutableString object.

It panics if CFStringCreateMutable is unavailable at run time; use TryCFStringCreateMutable to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateMutable(_:_:)

func CFStringCreateMutableCopy

func CFStringCreateMutableCopy(alloc CFAllocatorRef, maxLength CFIndex, theString CFStringRef) CFMutableStringRef

CFStringCreateMutableCopy creates a mutable copy of a string.

It panics if CFStringCreateMutableCopy is unavailable at run time; use TryCFStringCreateMutableCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateMutableCopy(_:_:_:)

func CFStringCreateMutableWithExternalCharactersNoCopy

func CFStringCreateMutableWithExternalCharactersNoCopy(alloc CFAllocatorRef, chars *uint16, numChars CFIndex, capacity CFIndex, externalCharactersAllocator CFAllocatorRef) CFMutableStringRef

CFStringCreateMutableWithExternalCharactersNoCopy creates a CFMutableString object whose Unicode character buffer is controlled externally.

It panics if CFStringCreateMutableWithExternalCharactersNoCopy is unavailable at run time; use TryCFStringCreateMutableWithExternalCharactersNoCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateMutableWithExternalCharactersNoCopy(_:_:_:_:_:)

func TryCFAttributedStringGetMutableString

func TryCFAttributedStringGetMutableString(aStr CFMutableAttributedStringRef) (CFMutableStringRef, error)

TryCFAttributedStringGetMutableString is like CFAttributedStringGetMutableString but returns an error instead of panicking if CFAttributedStringGetMutableString is unavailable at run time.

func TryCFStringCreateMutable

func TryCFStringCreateMutable(alloc CFAllocatorRef, maxLength CFIndex) (CFMutableStringRef, error)

TryCFStringCreateMutable is like CFStringCreateMutable but returns an error instead of panicking if CFStringCreateMutable is unavailable at run time.

func TryCFStringCreateMutableCopy

func TryCFStringCreateMutableCopy(alloc CFAllocatorRef, maxLength CFIndex, theString CFStringRef) (CFMutableStringRef, error)

TryCFStringCreateMutableCopy is like CFStringCreateMutableCopy but returns an error instead of panicking if CFStringCreateMutableCopy is unavailable at run time.

func TryCFStringCreateMutableWithExternalCharactersNoCopy

func TryCFStringCreateMutableWithExternalCharactersNoCopy(alloc CFAllocatorRef, chars *uint16, numChars CFIndex, capacity CFIndex, externalCharactersAllocator CFAllocatorRef) (CFMutableStringRef, error)

TryCFStringCreateMutableWithExternalCharactersNoCopy is like CFStringCreateMutableWithExternalCharactersNoCopy but returns an error instead of panicking if CFStringCreateMutableWithExternalCharactersNoCopy is unavailable at run time.

type CFNotificationCallback

type CFNotificationCallback = func(center CFNotificationCenterRef, observer unsafe.Pointer, name CFStringRef, object unsafe.Pointer, userInfo CFDictionaryRef)

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.

It panics if CFNotificationCenterGetDarwinNotifyCenter is unavailable at run time; use TryCFNotificationCenterGetDarwinNotifyCenter to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterGetDarwinNotifyCenter()

func CFNotificationCenterGetDistributedCenter

func CFNotificationCenterGetDistributedCenter() CFNotificationCenterRef

CFNotificationCenterGetDistributedCenter returns the application’s distributed notification center.

It panics if CFNotificationCenterGetDistributedCenter is unavailable at run time; use TryCFNotificationCenterGetDistributedCenter to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterGetDistributedCenter()

func CFNotificationCenterGetLocalCenter

func CFNotificationCenterGetLocalCenter() CFNotificationCenterRef

CFNotificationCenterGetLocalCenter returns the application’s local notification center.

It panics if CFNotificationCenterGetLocalCenter is unavailable at run time; use TryCFNotificationCenterGetLocalCenter to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterGetLocalCenter()

func TryCFNotificationCenterGetDarwinNotifyCenter

func TryCFNotificationCenterGetDarwinNotifyCenter() (CFNotificationCenterRef, error)

TryCFNotificationCenterGetDarwinNotifyCenter is like CFNotificationCenterGetDarwinNotifyCenter but returns an error instead of panicking if CFNotificationCenterGetDarwinNotifyCenter is unavailable at run time.

func TryCFNotificationCenterGetDistributedCenter

func TryCFNotificationCenterGetDistributedCenter() (CFNotificationCenterRef, error)

TryCFNotificationCenterGetDistributedCenter is like CFNotificationCenterGetDistributedCenter but returns an error instead of panicking if CFNotificationCenterGetDistributedCenter is unavailable at run time.

func TryCFNotificationCenterGetLocalCenter

func TryCFNotificationCenterGetLocalCenter() (CFNotificationCenterRef, error)

TryCFNotificationCenterGetLocalCenter is like CFNotificationCenterGetLocalCenter but returns an error instead of panicking if CFNotificationCenterGetLocalCenter is unavailable at run time.

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

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 uint

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterOptionFlags

const (
	// KCFNumberFormatterParseIntegersOnly: Specifies that only integers should be parsed.
	KCFNumberFormatterParseIntegersOnly CFNumberFormatterOptionFlags = 1
)

func (CFNumberFormatterOptionFlags) 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

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.

It panics if CFNumberFormatterCreate is unavailable at run time; use TryCFNumberFormatterCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterCreate(_:_:_:)

func TryCFNumberFormatterCreate

func TryCFNumberFormatterCreate(allocator CFAllocatorRef, locale CFLocaleRef, style CFNumberFormatterStyle) (CFNumberFormatterRef, error)

TryCFNumberFormatterCreate is like CFNumberFormatterCreate but returns an error instead of panicking if CFNumberFormatterCreate is unavailable at run time.

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

type CFNumberFormatterStyle

type CFNumberFormatterStyle int

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterStyle

const (
	KCFNumberFormatterCurrencyAccountingStyle CFNumberFormatterStyle = 10
	KCFNumberFormatterCurrencyISOCodeStyle    CFNumberFormatterStyle = 8
	KCFNumberFormatterCurrencyPluralStyle     CFNumberFormatterStyle = 9
	// 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
	KCFNumberFormatterOrdinalStyle CFNumberFormatterStyle = 6
	// 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.

It panics if CFNumberFormatterGetStyle is unavailable at run time; use TryCFNumberFormatterGetStyle to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterGetStyle(_:)

func TryCFNumberFormatterGetStyle

func TryCFNumberFormatterGetStyle(formatter CFNumberFormatterRef) (CFNumberFormatterStyle, error)

TryCFNumberFormatterGetStyle is like CFNumberFormatterGetStyle but returns an error instead of panicking if CFNumberFormatterGetStyle is unavailable at run time.

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.

It panics if CFNumberCreate is unavailable at run time; use TryCFNumberCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberCreate(_:_:_:)

func CFNumberFormatterCreateNumberFromString

func CFNumberFormatterCreateNumberFromString(allocator CFAllocatorRef, formatter CFNumberFormatterRef, string_ CFStringRef, rangep *CFRange, options CFOptionFlags) CFNumberRef

CFNumberFormatterCreateNumberFromString returns a number object representing a given string.

It panics if CFNumberFormatterCreateNumberFromString is unavailable at run time; use TryCFNumberFormatterCreateNumberFromString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterCreateNumberFromString(_:_:_:_:_:)

func TryCFNumberCreate

func TryCFNumberCreate(allocator CFAllocatorRef, theType CFNumberType, valuePtr unsafe.Pointer) (CFNumberRef, error)

TryCFNumberCreate is like CFNumberCreate but returns an error instead of panicking if CFNumberCreate is unavailable at run time.

func TryCFNumberFormatterCreateNumberFromString

func TryCFNumberFormatterCreateNumberFromString(allocator CFAllocatorRef, formatter CFNumberFormatterRef, string_ CFStringRef, rangep *CFRange, options CFOptionFlags) (CFNumberRef, error)

TryCFNumberFormatterCreateNumberFromString is like CFNumberFormatterCreateNumberFromString but returns an error instead of panicking if CFNumberFormatterCreateNumberFromString is unavailable at run time.

type CFNumberType

type CFNumberType int

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberType

const (
	// KCFNumberCFIndexType: CFIndex value.
	KCFNumberCFIndexType CFNumberType = 14
	// KCFNumberCGFloatType: [CGFloat] value.
	KCFNumberCGFloatType CFNumberType = 16
	// KCFNumberCharType: Basic C `char` type.
	KCFNumberCharType CFNumberType = 7
	// KCFNumberDoubleType: Basic C `double` type.
	KCFNumberDoubleType CFNumberType = 13
	// KCFNumberFloat32Type: Thirty-two-bit real.
	KCFNumberFloat32Type CFNumberType = 5
	// KCFNumberFloat64Type: Sixty-four-bit real.
	KCFNumberFloat64Type CFNumberType = 6
	// KCFNumberFloatType: Basic C `float` type.
	KCFNumberFloatType CFNumberType = 12
	// KCFNumberIntType: Basic C `int` type.
	KCFNumberIntType CFNumberType = 9
	// KCFNumberLongLongType: Basic C `long long` type.
	KCFNumberLongLongType CFNumberType = 11
	// KCFNumberLongType: Basic C `long` type.
	KCFNumberLongType CFNumberType = 10
	// KCFNumberMaxType: Same as CFNumberType.cgFloatType.
	KCFNumberMaxType CFNumberType = 16
	// KCFNumberNSIntegerType: [NSInteger] 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 `short` type.
	KCFNumberShortType CFNumberType = 8
)

func CFNumberGetType

func CFNumberGetType(number CFNumberRef) CFNumberType

CFNumberGetType returns the type used by a CFNumber object to store its value.

It panics if CFNumberGetType is unavailable at run time; use TryCFNumberGetType to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberGetType(_:)

func TryCFNumberGetType

func TryCFNumberGetType(number CFNumberRef) (CFNumberType, error)

TryCFNumberGetType is like CFNumberGetType but returns an error instead of panicking if CFNumberGetType is unavailable at run time.

func (CFNumberType) String

func (e CFNumberType) String() string

type CFOptionFlags

type CFOptionFlags = uint

CFOptionFlags is a bitfield used for passing special allocation and other requests into Core Foundation functions.

See: https://developer.apple.com/documentation/CoreFoundation/CFOptionFlags

const (
	// KCFCalendarComponentsWrap: Specifies that the components specified for calendar components should be incremented and wrap around to zero/one on overflow, but should not cause higher units to be incremented.
	KCFCalendarComponentsWrap CFOptionFlags = 1
	// KCFFileDescriptorReadCallBack: Identifies the read callback.
	KCFFileDescriptorReadCallBack CFOptionFlags = 1
	// KCFFileDescriptorWriteCallBack: Identifies the write callback.
	KCFFileDescriptorWriteCallBack CFOptionFlags = 2
	// KCFNotificationDeliverImmediately: Delivers the notification immediately.
	KCFNotificationDeliverImmediately CFOptionFlags = 1
	// KCFNotificationPostToAllSessions: Delivers the notification to all sessions.
	KCFNotificationPostToAllSessions CFOptionFlags = 2
	// KCFSocketAutomaticallyReenableAcceptCallBack: # Discussion
	KCFSocketAutomaticallyReenableAcceptCallBack CFOptionFlags = 2
	// KCFSocketAutomaticallyReenableDataCallBack: # Discussion
	KCFSocketAutomaticallyReenableDataCallBack CFOptionFlags = 3
	// KCFSocketAutomaticallyReenableReadCallBack: # Discussion
	KCFSocketAutomaticallyReenableReadCallBack CFOptionFlags = 1
	// KCFSocketAutomaticallyReenableWriteCallBack: # Discussion
	KCFSocketAutomaticallyReenableWriteCallBack CFOptionFlags = 8
	// KCFSocketCloseOnInvalidate: When enabled using CFSocketSetSocketFlags(_:_:), the native socket associated with a CFSocket object is closed when the CFSocket object is invalidated.
	KCFSocketCloseOnInvalidate CFOptionFlags = 128
	// KCFSocketLeaveErrors: # Discussion
	KCFSocketLeaveErrors CFOptionFlags = 64
	// KCFStringTokenizerAttributeLanguage: Tells the tokenizer to prepare the language (specified as an RFC 3066bis string) when it tokenizes the string.
	KCFStringTokenizerAttributeLanguage CFOptionFlags = 131072
	// KCFStringTokenizerAttributeLatinTranscription: Used with `kCFStringTokenizerUnitWord`, tells the tokenizer to prepare the Latin transcription when it tokenizes the string.
	KCFStringTokenizerAttributeLatinTranscription CFOptionFlags = 65536
	// KCFStringTokenizerUnitLineBreak: Specifies that a string should be tokenized by line break.
	KCFStringTokenizerUnitLineBreak CFOptionFlags = 3
	// KCFStringTokenizerUnitParagraph: Specifies that a string should be tokenized by paragraph.
	KCFStringTokenizerUnitParagraph CFOptionFlags = 2
	// KCFStringTokenizerUnitSentence: Specifies that a string should be tokenized by sentence.
	KCFStringTokenizerUnitSentence CFOptionFlags = 1
	// KCFStringTokenizerUnitWord: Specifies that a string should be tokenized by word.
	KCFStringTokenizerUnitWord CFOptionFlags = 0
	// KCFStringTokenizerUnitWordBoundary: Specifies that a string should be tokenized by locale-sensitive word boundary.
	KCFStringTokenizerUnitWordBoundary CFOptionFlags = 4
	// KCFUserNotificationAlternateResponse: The alternate button was pressed.
	KCFUserNotificationAlternateResponse CFOptionFlags = 1
	// KCFUserNotificationCancelResponse: No button was pressed and the notification timed out.
	KCFUserNotificationCancelResponse CFOptionFlags = 3
	// KCFUserNotificationCautionAlertLevel: The notification is somewhat serious.
	KCFUserNotificationCautionAlertLevel CFOptionFlags = 2
	// KCFUserNotificationDefaultResponse: The default button was pressed.
	KCFUserNotificationDefaultResponse CFOptionFlags = 0
	// KCFUserNotificationNoDefaultButtonFlag: Displays the dialog without the default, alternate, or other buttons.
	KCFUserNotificationNoDefaultButtonFlag CFOptionFlags = 32
	// KCFUserNotificationNoteAlertLevel: The notification is not very serious.
	KCFUserNotificationNoteAlertLevel CFOptionFlags = 1
	// KCFUserNotificationOtherResponse: The third button was pressed.
	KCFUserNotificationOtherResponse CFOptionFlags = 2
	// KCFUserNotificationPlainAlertLevel: The notification is not serious.
	KCFUserNotificationPlainAlertLevel CFOptionFlags = 3
	// KCFUserNotificationStopAlertLevel: The notification is very serious.
	KCFUserNotificationStopAlertLevel CFOptionFlags = 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 CFOptionFlags = 64
)

func CFRunLoopObserverGetActivities

func CFRunLoopObserverGetActivities(observer CFRunLoopObserverRef) CFOptionFlags

CFRunLoopObserverGetActivities returns the run loop stages during which an observer runs.

It panics if CFRunLoopObserverGetActivities is unavailable at run time; use TryCFRunLoopObserverGetActivities to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverGetActivities(_:)

func CFSocketGetSocketFlags

func CFSocketGetSocketFlags(s CFSocketRef) CFOptionFlags

CFSocketGetSocketFlags returns flags that control certain behaviors of a CFSocket object.

It panics if CFSocketGetSocketFlags is unavailable at run time; use TryCFSocketGetSocketFlags to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketGetSocketFlags(_:)

func TryCFRunLoopObserverGetActivities

func TryCFRunLoopObserverGetActivities(observer CFRunLoopObserverRef) (CFOptionFlags, error)

TryCFRunLoopObserverGetActivities is like CFRunLoopObserverGetActivities but returns an error instead of panicking if CFRunLoopObserverGetActivities is unavailable at run time.

func TryCFSocketGetSocketFlags

func TryCFSocketGetSocketFlags(s CFSocketRef) (CFOptionFlags, error)

TryCFSocketGetSocketFlags is like CFSocketGetSocketFlags but returns an error instead of panicking if CFSocketGetSocketFlags is unavailable at run time.

type CFPlugInDynamicRegisterFunction

type CFPlugInDynamicRegisterFunction = func(plugIn CFBundleRef)

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

type CFPlugInFactoryFunction = func(allocator CFAllocatorRef, typeUUID CFUUIDRef) unsafe.Pointer

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

type CFPlugInInstanceDeallocateInstanceDataFunction = func(unsafe.Pointer)

CFPlugInInstanceDeallocateInstanceDataFunction is not recommended.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstanceDeallocateInstanceDataFunction

type CFPlugInInstanceGetInterfaceFunction

type CFPlugInInstanceGetInterfaceFunction = func(CFPlugInInstanceRef, CFStringRef, unsafe.Pointer) uint8

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 CFIndex, deallocateInstanceFunction CFPlugInInstanceDeallocateInstanceDataFunction, factoryName CFStringRef, getInterfaceFunction CFPlugInInstanceGetInterfaceFunction) CFPlugInInstanceRef

CFPlugInInstanceCreateWithInstanceDataSize not recommended.

It panics if CFPlugInInstanceCreateWithInstanceDataSize is unavailable at run time; use TryCFPlugInInstanceCreateWithInstanceDataSize to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstanceCreateWithInstanceDataSize(_:_:_:_:_:)

func TryCFPlugInInstanceCreateWithInstanceDataSize

func TryCFPlugInInstanceCreateWithInstanceDataSize(allocator CFAllocatorRef, instanceDataSize CFIndex, deallocateInstanceFunction CFPlugInInstanceDeallocateInstanceDataFunction, factoryName CFStringRef, getInterfaceFunction CFPlugInInstanceGetInterfaceFunction) (CFPlugInInstanceRef, error)

TryCFPlugInInstanceCreateWithInstanceDataSize is like CFPlugInInstanceCreateWithInstanceDataSize but returns an error instead of panicking if CFPlugInInstanceCreateWithInstanceDataSize is unavailable at run time.

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.

It panics if CFBundleGetPlugIn is unavailable at run time; use TryCFBundleGetPlugIn to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetPlugIn(_:)

func CFPlugInCreate

func CFPlugInCreate(allocator CFAllocatorRef, plugInURL CFURLRef) CFPlugInRef

CFPlugInCreate creates a CFPlugIn given its URL.

It panics if CFPlugInCreate is unavailable at run time; use TryCFPlugInCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInCreate(_:_:)

func TryCFBundleGetPlugIn

func TryCFBundleGetPlugIn(bundle CFBundleRef) (CFPlugInRef, error)

TryCFBundleGetPlugIn is like CFBundleGetPlugIn but returns an error instead of panicking if CFBundleGetPlugIn is unavailable at run time.

func TryCFPlugInCreate

func TryCFPlugInCreate(allocator CFAllocatorRef, plugInURL CFURLRef) (CFPlugInRef, error)

TryCFPlugInCreate is like CFPlugInCreate but returns an error instead of panicking if CFPlugInCreate is unavailable at run time.

type CFPlugInUnloadFunction

type CFPlugInUnloadFunction = func(plugIn CFBundleRef)

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 uint

See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListMutabilityOptions

const (
	// KCFPropertyListImmutable: Specifies that the property list should be immutable.
	KCFPropertyListImmutable CFPropertyListMutabilityOptions = 0
	// 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

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.

It panics if CFPreferencesCopyAppValue is unavailable at run time; use TryCFPreferencesCopyAppValue to get an error instead.

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.

It panics if CFPreferencesCopyValue is unavailable at run time; use TryCFPreferencesCopyValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPreferencesCopyValue(_:_:_:_:)

func CFPropertyListCreateDeepCopy

func CFPropertyListCreateDeepCopy(allocator CFAllocatorRef, propertyList CFPropertyListRef, mutabilityOption CFOptionFlags) CFPropertyListRef

CFPropertyListCreateDeepCopy recursively creates a copy of a given property list.

It panics if CFPropertyListCreateDeepCopy is unavailable at run time; use TryCFPropertyListCreateDeepCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListCreateDeepCopy(_:_:_:)

func CFPropertyListCreateFromStream deprecated

func CFPropertyListCreateFromStream(allocator CFAllocatorRef, stream CFReadStreamRef, streamLength CFIndex, mutabilityOption CFOptionFlags, format *CFPropertyListFormat, errorString *CFStringRef) CFPropertyListRef

CFPropertyListCreateFromStream creates a property list using data from a stream.

It panics if CFPropertyListCreateFromStream is unavailable at run time; use TryCFPropertyListCreateFromStream to get an error instead.

Deprecated: Deprecated since macOS 10.10. Use CFPropertyListCreateWithStream instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListCreateFromStream(_:_:_:_:_:_:)

func CFPropertyListCreateFromXMLData deprecated

func CFPropertyListCreateFromXMLData(allocator CFAllocatorRef, xmlData CFDataRef, mutabilityOption CFOptionFlags, errorString *CFStringRef) CFPropertyListRef

CFPropertyListCreateFromXMLData creates a property list using the specified XML or binary property list data.

It panics if CFPropertyListCreateFromXMLData is unavailable at run time; use TryCFPropertyListCreateFromXMLData to get an error instead.

Deprecated: Deprecated since macOS 10.10. Use CFPropertyListCreateWithData instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListCreateFromXMLData(_:_:_:_:)

func CFPropertyListCreateWithData

func CFPropertyListCreateWithData(allocator CFAllocatorRef, data CFDataRef, options CFOptionFlags, format *CFPropertyListFormat, err *CFErrorRef) CFPropertyListRef

CFPropertyListCreateWithData creates a property list from a given CFData object.

It panics if CFPropertyListCreateWithData is unavailable at run time; use TryCFPropertyListCreateWithData to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListCreateWithData(_:_:_:_:_:)

func CFPropertyListCreateWithStream

func CFPropertyListCreateWithStream(allocator CFAllocatorRef, stream CFReadStreamRef, streamLength CFIndex, options CFOptionFlags, format *CFPropertyListFormat, err *CFErrorRef) CFPropertyListRef

CFPropertyListCreateWithStream create and return a property list with a CFReadStream input.

It panics if CFPropertyListCreateWithStream is unavailable at run time; use TryCFPropertyListCreateWithStream to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPropertyListCreateWithStream(_:_:_:_:_:_:)

func TryCFPreferencesCopyAppValue

func TryCFPreferencesCopyAppValue(key CFStringRef, applicationID CFStringRef) (CFPropertyListRef, error)

TryCFPreferencesCopyAppValue is like CFPreferencesCopyAppValue but returns an error instead of panicking if CFPreferencesCopyAppValue is unavailable at run time.

func TryCFPreferencesCopyValue

func TryCFPreferencesCopyValue(key CFStringRef, applicationID CFStringRef, userName CFStringRef, hostName CFStringRef) (CFPropertyListRef, error)

TryCFPreferencesCopyValue is like CFPreferencesCopyValue but returns an error instead of panicking if CFPreferencesCopyValue is unavailable at run time.

func TryCFPropertyListCreateDeepCopy

func TryCFPropertyListCreateDeepCopy(allocator CFAllocatorRef, propertyList CFPropertyListRef, mutabilityOption CFOptionFlags) (CFPropertyListRef, error)

TryCFPropertyListCreateDeepCopy is like CFPropertyListCreateDeepCopy but returns an error instead of panicking if CFPropertyListCreateDeepCopy is unavailable at run time.

func TryCFPropertyListCreateFromStream

func TryCFPropertyListCreateFromStream(allocator CFAllocatorRef, stream CFReadStreamRef, streamLength CFIndex, mutabilityOption CFOptionFlags, format *CFPropertyListFormat, errorString *CFStringRef) (CFPropertyListRef, error)

TryCFPropertyListCreateFromStream is like CFPropertyListCreateFromStream but returns an error instead of panicking if CFPropertyListCreateFromStream is unavailable at run time.

func TryCFPropertyListCreateFromXMLData

func TryCFPropertyListCreateFromXMLData(allocator CFAllocatorRef, xmlData CFDataRef, mutabilityOption CFOptionFlags, errorString *CFStringRef) (CFPropertyListRef, error)

TryCFPropertyListCreateFromXMLData is like CFPropertyListCreateFromXMLData but returns an error instead of panicking if CFPropertyListCreateFromXMLData is unavailable at run time.

func TryCFPropertyListCreateWithData

func TryCFPropertyListCreateWithData(allocator CFAllocatorRef, data CFDataRef, options CFOptionFlags, format *CFPropertyListFormat, err *CFErrorRef) (CFPropertyListRef, error)

TryCFPropertyListCreateWithData is like CFPropertyListCreateWithData but returns an error instead of panicking if CFPropertyListCreateWithData is unavailable at run time.

func TryCFPropertyListCreateWithStream

func TryCFPropertyListCreateWithStream(allocator CFAllocatorRef, stream CFReadStreamRef, streamLength CFIndex, options CFOptionFlags, format *CFPropertyListFormat, err *CFErrorRef) (CFPropertyListRef, error)

TryCFPropertyListCreateWithStream is like CFPropertyListCreateWithStream but returns an error instead of panicking if CFPropertyListCreateWithStream is unavailable at run time.

type CFRange

type CFRange struct {
	Location CFIndex // 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   CFIndex // 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.

It panics if CFCalendarGetMaximumRangeOfUnit is unavailable at run time; use TryCFCalendarGetMaximumRangeOfUnit to get an error instead.

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.

It panics if CFCalendarGetMinimumRangeOfUnit is unavailable at run time; use TryCFCalendarGetMinimumRangeOfUnit to get an error instead.

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.

It panics if CFCalendarGetRangeOfUnit is unavailable at run time; use TryCFCalendarGetRangeOfUnit to get an error instead.

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.

It panics if CFDataFind is unavailable at run time; use TryCFDataFind to get an error instead.

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.

It panics if CFStringFind is unavailable at run time; use TryCFStringFind to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringFind(_:_:_:)

func CFStringGetRangeOfComposedCharactersAtIndex

func CFStringGetRangeOfComposedCharactersAtIndex(theString CFStringRef, theIndex CFIndex) CFRange

CFStringGetRangeOfComposedCharactersAtIndex returns the range of the composed character sequence at a specified index.

It panics if CFStringGetRangeOfComposedCharactersAtIndex is unavailable at run time; use TryCFStringGetRangeOfComposedCharactersAtIndex to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetRangeOfComposedCharactersAtIndex(_:_:)

func CFStringTokenizerGetCurrentTokenRange

func CFStringTokenizerGetCurrentTokenRange(tokenizer CFStringTokenizerRef) CFRange

CFStringTokenizerGetCurrentTokenRange returns the range of the current token.

It panics if CFStringTokenizerGetCurrentTokenRange is unavailable at run time; use TryCFStringTokenizerGetCurrentTokenRange to get an error instead.

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.

It panics if CFURLGetByteRangeForComponent is unavailable at run time; use TryCFURLGetByteRangeForComponent to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLGetByteRangeForComponent(_:_:_:)

func TryCFCalendarGetMaximumRangeOfUnit

func TryCFCalendarGetMaximumRangeOfUnit(calendar CFCalendarRef, unit CFCalendarUnit) (CFRange, error)

TryCFCalendarGetMaximumRangeOfUnit is like CFCalendarGetMaximumRangeOfUnit but returns an error instead of panicking if CFCalendarGetMaximumRangeOfUnit is unavailable at run time.

func TryCFCalendarGetMinimumRangeOfUnit

func TryCFCalendarGetMinimumRangeOfUnit(calendar CFCalendarRef, unit CFCalendarUnit) (CFRange, error)

TryCFCalendarGetMinimumRangeOfUnit is like CFCalendarGetMinimumRangeOfUnit but returns an error instead of panicking if CFCalendarGetMinimumRangeOfUnit is unavailable at run time.

func TryCFCalendarGetRangeOfUnit

func TryCFCalendarGetRangeOfUnit(calendar CFCalendarRef, smallerUnit CFCalendarUnit, biggerUnit CFCalendarUnit, at CFAbsoluteTime) (CFRange, error)

TryCFCalendarGetRangeOfUnit is like CFCalendarGetRangeOfUnit but returns an error instead of panicking if CFCalendarGetRangeOfUnit is unavailable at run time.

func TryCFDataFind

func TryCFDataFind(theData CFDataRef, dataToFind CFDataRef, searchRange CFRange, compareOptions CFDataSearchFlags) (CFRange, error)

TryCFDataFind is like CFDataFind but returns an error instead of panicking if CFDataFind is unavailable at run time.

func TryCFStringFind

func TryCFStringFind(theString CFStringRef, stringToFind CFStringRef, compareOptions CFStringCompareFlags) (CFRange, error)

TryCFStringFind is like CFStringFind but returns an error instead of panicking if CFStringFind is unavailable at run time.

func TryCFStringGetRangeOfComposedCharactersAtIndex

func TryCFStringGetRangeOfComposedCharactersAtIndex(theString CFStringRef, theIndex CFIndex) (CFRange, error)

TryCFStringGetRangeOfComposedCharactersAtIndex is like CFStringGetRangeOfComposedCharactersAtIndex but returns an error instead of panicking if CFStringGetRangeOfComposedCharactersAtIndex is unavailable at run time.

func TryCFStringTokenizerGetCurrentTokenRange

func TryCFStringTokenizerGetCurrentTokenRange(tokenizer CFStringTokenizerRef) (CFRange, error)

TryCFStringTokenizerGetCurrentTokenRange is like CFStringTokenizerGetCurrentTokenRange but returns an error instead of panicking if CFStringTokenizerGetCurrentTokenRange is unavailable at run time.

func TryCFURLGetByteRangeForComponent

func TryCFURLGetByteRangeForComponent(url CFURLRef, component CFURLComponentType, rangeIncludingSeparators *CFRange) (CFRange, error)

TryCFURLGetByteRangeForComponent is like CFURLGetByteRangeForComponent but returns an error instead of panicking if CFURLGetByteRangeForComponent is unavailable at run time.

type CFReadStreamClientCallBack

type CFReadStreamClientCallBack = func(stream CFReadStreamRef, eventType CFStreamEventType, clientCallBackInfo 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 []byte, length CFIndex, bytesDeallocator CFAllocatorRef) CFReadStreamRef

CFReadStreamCreateWithBytesNoCopy creates a readable stream for a block of memory.

It panics if CFReadStreamCreateWithBytesNoCopy is unavailable at run time; use TryCFReadStreamCreateWithBytesNoCopy to get an error instead.

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.

It panics if CFReadStreamCreateWithFile is unavailable at run time; use TryCFReadStreamCreateWithFile to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamCreateWithFile(_:_:)

func TryCFReadStreamCreateWithBytesNoCopy

func TryCFReadStreamCreateWithBytesNoCopy(alloc CFAllocatorRef, bytes []byte, length CFIndex, bytesDeallocator CFAllocatorRef) (CFReadStreamRef, error)

TryCFReadStreamCreateWithBytesNoCopy is like CFReadStreamCreateWithBytesNoCopy but returns an error instead of panicking if CFReadStreamCreateWithBytesNoCopy is unavailable at run time.

func TryCFReadStreamCreateWithFile

func TryCFReadStreamCreateWithFile(alloc CFAllocatorRef, fileURL CFURLRef) (CFReadStreamRef, error)

TryCFReadStreamCreateWithFile is like CFReadStreamCreateWithFile but returns an error instead of panicking if CFReadStreamCreateWithFile is unavailable at run time.

type CFRunLoopActivity

type CFRunLoopActivity uint

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 = 0xfffffff
	// 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.

It panics if CFRunLoopCopyCurrentMode is unavailable at run time; use TryCFRunLoopCopyCurrentMode to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopCopyCurrentMode(_:)

func TryCFRunLoopCopyCurrentMode

func TryCFRunLoopCopyCurrentMode(rl CFRunLoopRef) (CFRunLoopMode, error)

TryCFRunLoopCopyCurrentMode is like CFRunLoopCopyCurrentMode but returns an error instead of panicking if CFRunLoopCopyCurrentMode is unavailable at run time.

type CFRunLoopObserverCallBack

type CFRunLoopObserverCallBack = func(observer CFRunLoopObserverRef, activity CFRunLoopActivity, info 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 CFIndex        // 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.
	// C: const void *(*)(const void *)
	Retain uintptr // A retain callback for your program-defined `info` pointer. Can be [NULL].
	// C: void (*)(const void *)
	Release uintptr // A release callback for your program-defined `info` pointer. Can be [NULL].
	// C: const struct __CFString *(*)(const void *)
	CopyDescription uintptr // A copy description 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 CFOptionFlags, repeats bool, order CFIndex, callout CFRunLoopObserverCallBack, context *CFRunLoopObserverContext) CFRunLoopObserverRef

CFRunLoopObserverCreate creates a CFRunLoopObserver object with a function callback.

It panics if CFRunLoopObserverCreate is unavailable at run time; use TryCFRunLoopObserverCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverCreate(_:_:_:_:_:_:)

func CFRunLoopObserverCreateWithHandler

func CFRunLoopObserverCreateWithHandler(allocator CFAllocatorRef, activities CFOptionFlags, repeats bool, order CFIndex) CFRunLoopObserverRef

CFRunLoopObserverCreateWithHandler creates a CFRunLoopObserver object with a block-based handler.

It panics if CFRunLoopObserverCreateWithHandler is unavailable at run time; use TryCFRunLoopObserverCreateWithHandler to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverCreateWithHandler(_:_:_:_:_:)

func TryCFRunLoopObserverCreate

func TryCFRunLoopObserverCreate(allocator CFAllocatorRef, activities CFOptionFlags, repeats bool, order CFIndex, callout CFRunLoopObserverCallBack, context *CFRunLoopObserverContext) (CFRunLoopObserverRef, error)

TryCFRunLoopObserverCreate is like CFRunLoopObserverCreate but returns an error instead of panicking if CFRunLoopObserverCreate is unavailable at run time.

func TryCFRunLoopObserverCreateWithHandler

func TryCFRunLoopObserverCreateWithHandler(allocator CFAllocatorRef, activities CFOptionFlags, repeats bool, order CFIndex) (CFRunLoopObserverRef, error)

TryCFRunLoopObserverCreateWithHandler is like CFRunLoopObserverCreateWithHandler but returns an error instead of panicking if CFRunLoopObserverCreateWithHandler is unavailable at run time.

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.

It panics if CFRunLoopGetCurrent is unavailable at run time; use TryCFRunLoopGetCurrent to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopGetCurrent()

func CFRunLoopGetMain

func CFRunLoopGetMain() CFRunLoopRef

CFRunLoopGetMain returns the main CFRunLoop object.

It panics if CFRunLoopGetMain is unavailable at run time; use TryCFRunLoopGetMain to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopGetMain()

func TryCFRunLoopGetCurrent

func TryCFRunLoopGetCurrent() (CFRunLoopRef, error)

TryCFRunLoopGetCurrent is like CFRunLoopGetCurrent but returns an error instead of panicking if CFRunLoopGetCurrent is unavailable at run time.

func TryCFRunLoopGetMain

func TryCFRunLoopGetMain() (CFRunLoopRef, error)

TryCFRunLoopGetMain is like CFRunLoopGetMain but returns an error instead of panicking if CFRunLoopGetMain is unavailable at run time.

type CFRunLoopRunResult

type CFRunLoopRunResult int32

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: CFRunLoopStop(_:) 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 CFTimeInterval, returnAfterSourceHandled bool) CFRunLoopRunResult

CFRunLoopRunInMode runs the current thread’s CFRunLoop object in a particular mode.

It panics if CFRunLoopRunInMode is unavailable at run time; use TryCFRunLoopRunInMode to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopRunInMode(_:_:_:)

func TryCFRunLoopRunInMode

func TryCFRunLoopRunInMode(mode CFRunLoopMode, seconds CFTimeInterval, returnAfterSourceHandled bool) (CFRunLoopRunResult, error)

TryCFRunLoopRunInMode is like CFRunLoopRunInMode but returns an error instead of panicking if CFRunLoopRunInMode is unavailable at run time.

func (CFRunLoopRunResult) String

func (e CFRunLoopRunResult) String() string

type CFRunLoopSourceContext

type CFRunLoopSourceContext struct {
	Version CFIndex        // 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.
	// C: const void *(*)(const void *)
	Retain uintptr // A retain callback for your program-defined `info` pointer. Can be [NULL].
	// C: void (*)(const void *)
	Release uintptr // A release callback for your program-defined `info` pointer. Can be [NULL].
	// C: const struct __CFString *(*)(const void *)
	CopyDescription uintptr // A copy description callback for your program-defined `info` pointer. Can be [NULL].
	// C: unsigned char (*)(const void *, const void *)
	Equal uintptr // An equality test callback for your program-defined `info` pointer. Can be [NULL].
	// C: unsigned long (*)(const void *)
	Hash uintptr // A hash calculation callback for your program-defined `info` pointer. Can be [NULL].
	// C: void (*)(void *, struct __CFRunLoop *, const struct __CFString *)
	Schedule 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].
	// C: void (*)(void *, struct __CFRunLoop *, const struct __CFString *)
	Cancel uintptr
	// C: void (*)(void *)
	Perform uintptr // A perform callback for the run loop source. This callback is called when the source has fired.

}

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 CFIndex        // 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.
	// C: const void *(*)(const void *)
	Retain uintptr // A retain callback for your program-defined `info` pointer. Can be [NULL].
	// C: void (*)(const void *)
	Release uintptr // A release callback for your program-defined `info` pointer. Can be [NULL].
	// C: const struct __CFString *(*)(const void *)
	CopyDescription uintptr // A copy description callback for your program-defined `info` pointer. Can be [NULL].
	// C: unsigned char (*)(const void *, const void *)
	Equal uintptr // An equality test callback for your program-defined `info` pointer. Can be [NULL].
	// C: unsigned long (*)(const void *)
	Hash uintptr // A hash calculation callback for your program-defined `info` pointer. Can be [NULL].
	// C: unsigned int (*)(void *)
	GetPort uintptr // 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.
	// C: void *(*)(void *, long, const struct __CFAllocator *, void *)
	Perform uintptr // A perform callback for the run loop source. This callback is called when the source has fired.

}

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 CFIndex) CFRunLoopSourceRef

CFFileDescriptorCreateRunLoopSource creates a new runloop source for a given CFFileDescriptor.

It panics if CFFileDescriptorCreateRunLoopSource is unavailable at run time; use TryCFFileDescriptorCreateRunLoopSource to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorCreateRunLoopSource(_:_:_:)

func CFMachPortCreateRunLoopSource

func CFMachPortCreateRunLoopSource(allocator CFAllocatorRef, port CFMachPortRef, order CFIndex) CFRunLoopSourceRef

CFMachPortCreateRunLoopSource creates a CFRunLoopSource object for a CFMachPort object.

It panics if CFMachPortCreateRunLoopSource is unavailable at run time; use TryCFMachPortCreateRunLoopSource to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortCreateRunLoopSource(_:_:_:)

func CFMessagePortCreateRunLoopSource

func CFMessagePortCreateRunLoopSource(allocator CFAllocatorRef, local CFMessagePortRef, order CFIndex) CFRunLoopSourceRef

CFMessagePortCreateRunLoopSource creates a CFRunLoopSource object for a CFMessagePort object.

It panics if CFMessagePortCreateRunLoopSource is unavailable at run time; use TryCFMessagePortCreateRunLoopSource to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortCreateRunLoopSource(_:_:_:)

func CFRunLoopSourceCreate

func CFRunLoopSourceCreate(allocator CFAllocatorRef, order CFIndex, context *CFRunLoopSourceContext) CFRunLoopSourceRef

CFRunLoopSourceCreate creates a CFRunLoopSource object.

It panics if CFRunLoopSourceCreate is unavailable at run time; use TryCFRunLoopSourceCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceCreate(_:_:_:)

func CFSocketCreateRunLoopSource

func CFSocketCreateRunLoopSource(allocator CFAllocatorRef, s CFSocketRef, order CFIndex) CFRunLoopSourceRef

CFSocketCreateRunLoopSource creates a CFRunLoopSource object for a CFSocket object.

It panics if CFSocketCreateRunLoopSource is unavailable at run time; use TryCFSocketCreateRunLoopSource to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCreateRunLoopSource(_:_:_:)

func CFUserNotificationCreateRunLoopSource

func CFUserNotificationCreateRunLoopSource(allocator CFAllocatorRef, userNotification CFUserNotificationRef, callout CFUserNotificationCallBack, order CFIndex) CFRunLoopSourceRef

CFUserNotificationCreateRunLoopSource creates a run loop source for a user notification.

It panics if CFUserNotificationCreateRunLoopSource is unavailable at run time; use TryCFUserNotificationCreateRunLoopSource to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationCreateRunLoopSource(_:_:_:_:)

func TryCFFileDescriptorCreateRunLoopSource

func TryCFFileDescriptorCreateRunLoopSource(allocator CFAllocatorRef, f CFFileDescriptorRef, order CFIndex) (CFRunLoopSourceRef, error)

TryCFFileDescriptorCreateRunLoopSource is like CFFileDescriptorCreateRunLoopSource but returns an error instead of panicking if CFFileDescriptorCreateRunLoopSource is unavailable at run time.

func TryCFMachPortCreateRunLoopSource

func TryCFMachPortCreateRunLoopSource(allocator CFAllocatorRef, port CFMachPortRef, order CFIndex) (CFRunLoopSourceRef, error)

TryCFMachPortCreateRunLoopSource is like CFMachPortCreateRunLoopSource but returns an error instead of panicking if CFMachPortCreateRunLoopSource is unavailable at run time.

func TryCFMessagePortCreateRunLoopSource

func TryCFMessagePortCreateRunLoopSource(allocator CFAllocatorRef, local CFMessagePortRef, order CFIndex) (CFRunLoopSourceRef, error)

TryCFMessagePortCreateRunLoopSource is like CFMessagePortCreateRunLoopSource but returns an error instead of panicking if CFMessagePortCreateRunLoopSource is unavailable at run time.

func TryCFRunLoopSourceCreate

func TryCFRunLoopSourceCreate(allocator CFAllocatorRef, order CFIndex, context *CFRunLoopSourceContext) (CFRunLoopSourceRef, error)

TryCFRunLoopSourceCreate is like CFRunLoopSourceCreate but returns an error instead of panicking if CFRunLoopSourceCreate is unavailable at run time.

func TryCFSocketCreateRunLoopSource

func TryCFSocketCreateRunLoopSource(allocator CFAllocatorRef, s CFSocketRef, order CFIndex) (CFRunLoopSourceRef, error)

TryCFSocketCreateRunLoopSource is like CFSocketCreateRunLoopSource but returns an error instead of panicking if CFSocketCreateRunLoopSource is unavailable at run time.

func TryCFUserNotificationCreateRunLoopSource

func TryCFUserNotificationCreateRunLoopSource(allocator CFAllocatorRef, userNotification CFUserNotificationRef, callout CFUserNotificationCallBack, order CFIndex) (CFRunLoopSourceRef, error)

TryCFUserNotificationCreateRunLoopSource is like CFUserNotificationCreateRunLoopSource but returns an error instead of panicking if CFUserNotificationCreateRunLoopSource is unavailable at run time.

type CFRunLoopTimerCallBack

type CFRunLoopTimerCallBack = func(timer CFRunLoopTimerRef, info unsafe.Pointer)

CFRunLoopTimerCallBack is callback invoked when a CFRunLoopTimer object fires.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerCallBack

type CFRunLoopTimerContext

type CFRunLoopTimerContext struct {
	Version CFIndex        // 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.
	// C: const void *(*)(const void *)
	Retain uintptr // A retain callback for your program-defined `info` pointer. Can be [NULL].
	// C: void (*)(const void *)
	Release uintptr // A release callback for your program-defined `info` pointer. Can be [NULL].
	// C: const struct __CFString *(*)(const void *)
	CopyDescription uintptr // A copy description 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 CFTimeInterval, flags CFOptionFlags, order CFIndex, callout CFRunLoopTimerCallBack, context *CFRunLoopTimerContext) CFRunLoopTimerRef

CFRunLoopTimerCreate creates a new CFRunLoopTimer object with a function callback.

It panics if CFRunLoopTimerCreate is unavailable at run time; use TryCFRunLoopTimerCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerCreate(_:_:_:_:_:_:_:)

func CFRunLoopTimerCreateWithHandler

func CFRunLoopTimerCreateWithHandler(allocator CFAllocatorRef, fireDate CFAbsoluteTime, interval CFTimeInterval, flags CFOptionFlags, order CFIndex) CFRunLoopTimerRef

CFRunLoopTimerCreateWithHandler creates a new CFRunLoopTimer object with a block-based handler.

It panics if CFRunLoopTimerCreateWithHandler is unavailable at run time; use TryCFRunLoopTimerCreateWithHandler to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerCreateWithHandler(_:_:_:_:_:_:)

func TryCFRunLoopTimerCreate

func TryCFRunLoopTimerCreate(allocator CFAllocatorRef, fireDate CFAbsoluteTime, interval CFTimeInterval, flags CFOptionFlags, order CFIndex, callout CFRunLoopTimerCallBack, context *CFRunLoopTimerContext) (CFRunLoopTimerRef, error)

TryCFRunLoopTimerCreate is like CFRunLoopTimerCreate but returns an error instead of panicking if CFRunLoopTimerCreate is unavailable at run time.

func TryCFRunLoopTimerCreateWithHandler

func TryCFRunLoopTimerCreateWithHandler(allocator CFAllocatorRef, fireDate CFAbsoluteTime, interval CFTimeInterval, flags CFOptionFlags, order CFIndex) (CFRunLoopTimerRef, error)

TryCFRunLoopTimerCreateWithHandler is like CFRunLoopTimerCreateWithHandler but returns an error instead of panicking if CFRunLoopTimerCreateWithHandler is unavailable at run time.

type CFSet

type CFSet = CFSetRef

CFSet is a bare alias for CFSetRef.

type CFSetApplierFunction

type CFSetApplierFunction = func(value unsafe.Pointer, context unsafe.Pointer)

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 CFIndex // 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`.
	// C: CFSetRetainCallBack (const void *(*)(const struct __CFAllocator *, const void *))
	Retain uintptr // The callback used to retain each value as they are added to the collection. If [NULL], values are not retained. See [CFSetRetainCallBack](<https://developer.apple.com/documentation/CoreFoundation/CFSetRetainCallBack>) for a descriptions of this function’s parameters.
	// C: CFSetReleaseCallBack (void (*)(const struct __CFAllocator *, const void *))
	Release uintptr // The callback used to release values as they are removed from the collection. If [NULL], values are not released. See [CFSetReleaseCallBack](<https://developer.apple.com/documentation/CoreFoundation/CFSetReleaseCallBack>) for a description of this callback.
	// C: CFSetCopyDescriptionCallBack (const struct __CFString *(*)(const void *))
	CopyDescription uintptr // 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](<https://developer.apple.com/documentation/CoreFoundation/CFSetCopyDescriptionCallBack>) for a description of this callback.
	// C: CFSetEqualCallBack (unsigned char (*)(const void *, const void *))
	Equal uintptr // 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](<https://developer.apple.com/documentation/CoreFoundation/CFSetEqualCallBack>) for a description of this callback.
	// C: CFSetHashCallBack (unsigned long (*)(const void *))
	Hash uintptr // 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](<https://developer.apple.com/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

type CFSetCopyDescriptionCallBack = func(value unsafe.Pointer) CFStringRef

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

type CFSetEqualCallBack = func(value1 unsafe.Pointer, value2 unsafe.Pointer) uint8

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

type CFSetHashCallBack = func(value unsafe.Pointer) uint

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 CFIndex, callBacks *CFSetCallBacks) CFSetRef

CFSetCreate creates an immutable CFSet object containing supplied values.

It panics if CFSetCreate is unavailable at run time; use TryCFSetCreate to get an error instead.

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.

It panics if CFSetCreateCopy is unavailable at run time; use TryCFSetCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSetCreateCopy(_:_:)

func TryCFSetCreate

func TryCFSetCreate(allocator CFAllocatorRef, values unsafe.Pointer, numValues CFIndex, callBacks *CFSetCallBacks) (CFSetRef, error)

TryCFSetCreate is like CFSetCreate but returns an error instead of panicking if CFSetCreate is unavailable at run time.

func TryCFSetCreateCopy

func TryCFSetCreateCopy(allocator CFAllocatorRef, theSet CFSetRef) (CFSetRef, error)

TryCFSetCreateCopy is like CFSetCreateCopy but returns an error instead of panicking if CFSetCreateCopy is unavailable at run time.

type CFSetReleaseCallBack

type CFSetReleaseCallBack = func(allocator CFAllocatorRef, value unsafe.Pointer)

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

type CFSetRetainCallBack = func(allocator CFAllocatorRef, value unsafe.Pointer) unsafe.Pointer

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(s CFSocketRef, callbackType CFSocketCallBackType, address CFDataRef, data unsafe.Pointer, info 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 uint

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
	// KCFSocketNoCallBack: No callback should be made for any activity.
	KCFSocketNoCallBack CFSocketCallBackType = 0
	// 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 CFIndex        // 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.
	// C: const void *(*)(const void *)
	Retain uintptr // A retain callback for your program-defined `info` pointer. Can be [NULL].
	// C: void (*)(const void *)
	Release uintptr // A release callback for your program-defined `info` pointer. Can be [NULL].
	// C: const struct __CFString *(*)(const void *)
	CopyDescription uintptr // A copy description 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 CFTimeInterval) CFSocketError

CFSocketConnectToAddress opens a connection to a remote socket.

It panics if CFSocketConnectToAddress is unavailable at run time; use TryCFSocketConnectToAddress to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketConnectToAddress(_:_:_:)

func CFSocketCopyRegisteredSocketSignature

func CFSocketCopyRegisteredSocketSignature(nameServerSignature *CFSocketSignature, timeout CFTimeInterval, name CFStringRef, signature *CFSocketSignature, nameServerAddress *CFDataRef) CFSocketError

CFSocketCopyRegisteredSocketSignature returns a socket signature registered with a CFSocket name server.

It panics if CFSocketCopyRegisteredSocketSignature is unavailable at run time; use TryCFSocketCopyRegisteredSocketSignature to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCopyRegisteredSocketSignature(_:_:_:_:_:)

func CFSocketCopyRegisteredValue

func CFSocketCopyRegisteredValue(nameServerSignature *CFSocketSignature, timeout CFTimeInterval, name CFStringRef, value *CFPropertyListRef, nameServerAddress *CFDataRef) CFSocketError

CFSocketCopyRegisteredValue returns a value registered with a CFSocket name server.

It panics if CFSocketCopyRegisteredValue is unavailable at run time; use TryCFSocketCopyRegisteredValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCopyRegisteredValue(_:_:_:_:_:)

func CFSocketRegisterSocketSignature

func CFSocketRegisterSocketSignature(nameServerSignature *CFSocketSignature, timeout CFTimeInterval, name CFStringRef, signature *CFSocketSignature) CFSocketError

CFSocketRegisterSocketSignature registers a socket signature with a CFSocket name server.

It panics if CFSocketRegisterSocketSignature is unavailable at run time; use TryCFSocketRegisterSocketSignature to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketRegisterSocketSignature(_:_:_:_:)

func CFSocketRegisterValue

func CFSocketRegisterValue(nameServerSignature *CFSocketSignature, timeout CFTimeInterval, name CFStringRef, value CFPropertyListRef) CFSocketError

CFSocketRegisterValue registers a property-list value with a CFSocket name server.

It panics if CFSocketRegisterValue is unavailable at run time; use TryCFSocketRegisterValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketRegisterValue(_:_:_:_:)

func CFSocketSendData

func CFSocketSendData(s CFSocketRef, address CFDataRef, data CFDataRef, timeout CFTimeInterval) CFSocketError

CFSocketSendData sends data over a CFSocket object.

It panics if CFSocketSendData is unavailable at run time; use TryCFSocketSendData to get an error instead.

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.

It panics if CFSocketSetAddress is unavailable at run time; use TryCFSocketSetAddress to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketSetAddress(_:_:)

func CFSocketUnregister

func CFSocketUnregister(nameServerSignature *CFSocketSignature, timeout CFTimeInterval, name CFStringRef) CFSocketError

CFSocketUnregister unregisters a value or socket signature with a CFSocket name server.

It panics if CFSocketUnregister is unavailable at run time; use TryCFSocketUnregister to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketUnregister(_:_:_:)

func TryCFSocketConnectToAddress

func TryCFSocketConnectToAddress(s CFSocketRef, address CFDataRef, timeout CFTimeInterval) (CFSocketError, error)

TryCFSocketConnectToAddress is like CFSocketConnectToAddress but returns an error instead of panicking if CFSocketConnectToAddress is unavailable at run time.

func TryCFSocketCopyRegisteredSocketSignature

func TryCFSocketCopyRegisteredSocketSignature(nameServerSignature *CFSocketSignature, timeout CFTimeInterval, name CFStringRef, signature *CFSocketSignature, nameServerAddress *CFDataRef) (CFSocketError, error)

TryCFSocketCopyRegisteredSocketSignature is like CFSocketCopyRegisteredSocketSignature but returns an error instead of panicking if CFSocketCopyRegisteredSocketSignature is unavailable at run time.

func TryCFSocketCopyRegisteredValue

func TryCFSocketCopyRegisteredValue(nameServerSignature *CFSocketSignature, timeout CFTimeInterval, name CFStringRef, value *CFPropertyListRef, nameServerAddress *CFDataRef) (CFSocketError, error)

TryCFSocketCopyRegisteredValue is like CFSocketCopyRegisteredValue but returns an error instead of panicking if CFSocketCopyRegisteredValue is unavailable at run time.

func TryCFSocketRegisterSocketSignature

func TryCFSocketRegisterSocketSignature(nameServerSignature *CFSocketSignature, timeout CFTimeInterval, name CFStringRef, signature *CFSocketSignature) (CFSocketError, error)

TryCFSocketRegisterSocketSignature is like CFSocketRegisterSocketSignature but returns an error instead of panicking if CFSocketRegisterSocketSignature is unavailable at run time.

func TryCFSocketRegisterValue

func TryCFSocketRegisterValue(nameServerSignature *CFSocketSignature, timeout CFTimeInterval, name CFStringRef, value CFPropertyListRef) (CFSocketError, error)

TryCFSocketRegisterValue is like CFSocketRegisterValue but returns an error instead of panicking if CFSocketRegisterValue is unavailable at run time.

func TryCFSocketSendData

func TryCFSocketSendData(s CFSocketRef, address CFDataRef, data CFDataRef, timeout CFTimeInterval) (CFSocketError, error)

TryCFSocketSendData is like CFSocketSendData but returns an error instead of panicking if CFSocketSendData is unavailable at run time.

func TryCFSocketSetAddress

func TryCFSocketSetAddress(s CFSocketRef, address CFDataRef) (CFSocketError, error)

TryCFSocketSetAddress is like CFSocketSetAddress but returns an error instead of panicking if CFSocketSetAddress is unavailable at run time.

func TryCFSocketUnregister

func TryCFSocketUnregister(nameServerSignature *CFSocketSignature, timeout CFTimeInterval, name CFStringRef) (CFSocketError, error)

TryCFSocketUnregister is like CFSocketUnregister but returns an error instead of panicking if CFSocketUnregister is unavailable at run time.

func (CFSocketError) String

func (e CFSocketError) String() string

type CFSocketNativeHandle

type CFSocketNativeHandle = int32

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.

It panics if CFSocketGetNative is unavailable at run time; use TryCFSocketGetNative to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketGetNative(_:)

func TryCFSocketGetNative

func TryCFSocketGetNative(s CFSocketRef) (CFSocketNativeHandle, error)

TryCFSocketGetNative is like CFSocketGetNative but returns an error instead of panicking if CFSocketGetNative is unavailable at run time.

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 CFOptionFlags, callout CFSocketCallBack, context *CFSocketContext) CFSocketRef

CFSocketCreate creates a CFSocket object of a specified protocol and type.

It panics if CFSocketCreate is unavailable at run time; use TryCFSocketCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCreate(_:_:_:_:_:_:_:)

func CFSocketCreateConnectedToSocketSignature

func CFSocketCreateConnectedToSocketSignature(allocator CFAllocatorRef, signature *CFSocketSignature, callBackTypes CFOptionFlags, callout CFSocketCallBack, context *CFSocketContext, timeout CFTimeInterval) CFSocketRef

CFSocketCreateConnectedToSocketSignature creates a CFSocket object and opens a connection to a remote socket.

It panics if CFSocketCreateConnectedToSocketSignature is unavailable at run time; use TryCFSocketCreateConnectedToSocketSignature to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCreateConnectedToSocketSignature(_:_:_:_:_:_:)

func CFSocketCreateWithNative

func CFSocketCreateWithNative(allocator CFAllocatorRef, sock CFSocketNativeHandle, callBackTypes CFOptionFlags, callout CFSocketCallBack, context *CFSocketContext) CFSocketRef

CFSocketCreateWithNative creates a CFSocket object for a pre-existing native socket.

It panics if CFSocketCreateWithNative is unavailable at run time; use TryCFSocketCreateWithNative to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCreateWithNative(_:_:_:_:_:)

func CFSocketCreateWithSocketSignature

func CFSocketCreateWithSocketSignature(allocator CFAllocatorRef, signature *CFSocketSignature, callBackTypes CFOptionFlags, callout CFSocketCallBack, context *CFSocketContext) CFSocketRef

CFSocketCreateWithSocketSignature creates a CFSocket object using information from a CFSocketSignature structure.

It panics if CFSocketCreateWithSocketSignature is unavailable at run time; use TryCFSocketCreateWithSocketSignature to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketCreateWithSocketSignature(_:_:_:_:_:)

func TryCFSocketCreate

func TryCFSocketCreate(allocator CFAllocatorRef, protocolFamily int32, socketType int32, protocol_ int32, callBackTypes CFOptionFlags, callout CFSocketCallBack, context *CFSocketContext) (CFSocketRef, error)

TryCFSocketCreate is like CFSocketCreate but returns an error instead of panicking if CFSocketCreate is unavailable at run time.

func TryCFSocketCreateConnectedToSocketSignature

func TryCFSocketCreateConnectedToSocketSignature(allocator CFAllocatorRef, signature *CFSocketSignature, callBackTypes CFOptionFlags, callout CFSocketCallBack, context *CFSocketContext, timeout CFTimeInterval) (CFSocketRef, error)

TryCFSocketCreateConnectedToSocketSignature is like CFSocketCreateConnectedToSocketSignature but returns an error instead of panicking if CFSocketCreateConnectedToSocketSignature is unavailable at run time.

func TryCFSocketCreateWithNative

func TryCFSocketCreateWithNative(allocator CFAllocatorRef, sock CFSocketNativeHandle, callBackTypes CFOptionFlags, callout CFSocketCallBack, context *CFSocketContext) (CFSocketRef, error)

TryCFSocketCreateWithNative is like CFSocketCreateWithNative but returns an error instead of panicking if CFSocketCreateWithNative is unavailable at run time.

func TryCFSocketCreateWithSocketSignature

func TryCFSocketCreateWithSocketSignature(allocator CFAllocatorRef, signature *CFSocketSignature, callBackTypes CFOptionFlags, callout CFSocketCallBack, context *CFSocketContext) (CFSocketRef, error)

TryCFSocketCreateWithSocketSignature is like CFSocketCreateWithSocketSignature but returns an error instead of panicking if CFSocketCreateWithSocketSignature is unavailable at run time.

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 CFIndex        // 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](<https://developer.apple.com/documentation/CoreFoundation/CFReadStreamClientCallBack>).
	// C: void *(*)(void *)
	Retain uintptr // A retain callback for your program-defined `info` pointer. Can be [NULL].
	// C: void (*)(void *)
	Release uintptr // A release callback for your program-defined `info` pointer. Can be [NULL].
	// C: const struct __CFString *(*)(void *)
	CopyDescription uintptr // A copy description 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 CFIndex // The error domain that should be used to interpret the error. See [CFStreamErrorDomain](<https://developer.apple.com/documentation/CoreFoundation/CFStreamErrorDomain>) for possible values.
	Error  int32   // The error code.

}

CFStreamError - The structure returned by [CFReadStreamGetError(_:)](<https://developer.apple.com/documentation/CoreFoundation/CFReadStreamGetError(_:)>) and [CFWriteStreamGetError(_:)](<https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamGetError(_:)>).

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CFStreamError

func CFReadStreamGetError

func CFReadStreamGetError(stream CFReadStreamRef) CFStreamError

CFReadStreamGetError returns the error status of a stream.

It panics if CFReadStreamGetError is unavailable at run time; use TryCFReadStreamGetError to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamGetError(_:)

func CFWriteStreamGetError

func CFWriteStreamGetError(stream CFWriteStreamRef) CFStreamError

CFWriteStreamGetError returns the error status of a stream.

It panics if CFWriteStreamGetError is unavailable at run time; use TryCFWriteStreamGetError to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamGetError(_:)

func TryCFReadStreamGetError

func TryCFReadStreamGetError(stream CFReadStreamRef) (CFStreamError, error)

TryCFReadStreamGetError is like CFReadStreamGetError but returns an error instead of panicking if CFReadStreamGetError is unavailable at run time.

func TryCFWriteStreamGetError

func TryCFWriteStreamGetError(stream CFWriteStreamRef) (CFStreamError, error)

TryCFWriteStreamGetError is like CFWriteStreamGetError but returns an error instead of panicking if CFWriteStreamGetError is unavailable at run time.

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 `MacErrors.H()`.
	KCFStreamErrorDomainMacOSStatus CFStreamErrorDomain = 2
	// KCFStreamErrorDomainPOSIX: The error code is an error code defined in `errno.H()`.
	KCFStreamErrorDomainPOSIX CFStreamErrorDomain = 1
)

func (CFStreamErrorDomain) String

func (e CFStreamErrorDomain) String() string

type CFStreamEventType

type CFStreamEventType uint

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
	// KCFStreamEventNone: No event has occurred.
	KCFStreamEventNone CFStreamEventType = 0
	// 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.

It panics if CFReadStreamGetStatus is unavailable at run time; use TryCFReadStreamGetStatus to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamGetStatus(_:)

func CFWriteStreamGetStatus

func CFWriteStreamGetStatus(stream CFWriteStreamRef) CFStreamStatus

CFWriteStreamGetStatus returns the current state of a stream.

It panics if CFWriteStreamGetStatus is unavailable at run time; use TryCFWriteStreamGetStatus to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamGetStatus(_:)

func TryCFReadStreamGetStatus

func TryCFReadStreamGetStatus(stream CFReadStreamRef) (CFStreamStatus, error)

TryCFReadStreamGetStatus is like CFReadStreamGetStatus but returns an error instead of panicking if CFReadStreamGetStatus is unavailable at run time.

func TryCFWriteStreamGetStatus

func TryCFWriteStreamGetStatus(stream CFWriteStreamRef) (CFStreamStatus, error)

TryCFWriteStreamGetStatus is like CFWriteStreamGetStatus but returns an error instead of panicking if CFWriteStreamGetStatus is unavailable at run time.

func (CFStreamStatus) String

func (e CFStreamStatus) String() string

type CFString added in v0.6.4

type CFString = CFStringRef

CFString is the Apple documentation topic name for CFStringRef.

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 = 0x600
	// KCFStringEncodingISOLatin1: An encoding constant that identifies the ISO Latin 1 encoding (ISO 8859-1)
	KCFStringEncodingISOLatin1 CFStringBuiltInEncodings = 0x201
	// 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 = 0xb01
	// KCFStringEncodingNonLossyASCII: An encoding constant that identifies non-lossy ASCII encoding.
	KCFStringEncodingNonLossyASCII CFStringBuiltInEncodings = 0xbff
	// KCFStringEncodingUTF16: An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF16Format encoding (alias of kCFStringEncodingUnicode).
	KCFStringEncodingUTF16 CFStringBuiltInEncodings = 0x100
	// KCFStringEncodingUTF16BE: An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF16BEFormat encoding.
	KCFStringEncodingUTF16BE CFStringBuiltInEncodings = 0x10000100
	// KCFStringEncodingUTF16LE: An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF16LEFormat encoding.
	KCFStringEncodingUTF16LE CFStringBuiltInEncodings = 0x14000100
	// KCFStringEncodingUTF32: An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF32Format encoding.
	KCFStringEncodingUTF32 CFStringBuiltInEncodings = 0xc000100
	// KCFStringEncodingUTF32BE: An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF32BEFormat encoding.
	KCFStringEncodingUTF32BE CFStringBuiltInEncodings = 0x18000100
	// KCFStringEncodingUTF32LE: An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF32LEFormat encoding.
	KCFStringEncodingUTF32LE CFStringBuiltInEncodings = 0x1c000100
	// KCFStringEncodingUTF8: An encoding constant that identifies the UTF 8 encoding.
	KCFStringEncodingUTF8 CFStringBuiltInEncodings = 0x8000100
	// KCFStringEncodingUnicode: An encoding constant that identifies the Unicode encoding.
	KCFStringEncodingUnicode CFStringBuiltInEncodings = 0x100
	// KCFStringEncodingWindowsLatin1: An encoding constant that identifies the Windows Latin 1 encoding (ANSI codepage 1252).
	KCFStringEncodingWindowsLatin1 CFStringBuiltInEncodings = 0x500
)

func (CFStringBuiltInEncodings) String

func (e CFStringBuiltInEncodings) String() string

type CFStringCompareFlags

type CFStringCompareFlags uint

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

func CFStringConvertIANACharSetNameToEncoding

func CFStringConvertIANACharSetNameToEncoding(theString CFStringRef) CFStringEncoding

CFStringConvertIANACharSetNameToEncoding returns the Core Foundation encoding constant that is the closest mapping to a given IANA registry “charset” name.

It panics if CFStringConvertIANACharSetNameToEncoding is unavailable at run time; use TryCFStringConvertIANACharSetNameToEncoding to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringConvertIANACharSetNameToEncoding(_:)

func CFStringConvertNSStringEncodingToEncoding

func CFStringConvertNSStringEncodingToEncoding(encoding uint) CFStringEncoding

CFStringConvertNSStringEncodingToEncoding returns the Core Foundation encoding constant that is the closest mapping to a given Cocoa encoding.

It panics if CFStringConvertNSStringEncodingToEncoding is unavailable at run time; use TryCFStringConvertNSStringEncodingToEncoding to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringConvertNSStringEncodingToEncoding(_:)

func CFStringConvertWindowsCodepageToEncoding

func CFStringConvertWindowsCodepageToEncoding(codepage uint32) CFStringEncoding

CFStringConvertWindowsCodepageToEncoding returns the Core Foundation encoding constant that is the closest mapping to a given Windows codepage identifier.

It panics if CFStringConvertWindowsCodepageToEncoding is unavailable at run time; use TryCFStringConvertWindowsCodepageToEncoding to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringConvertWindowsCodepageToEncoding(_:)

func CFStringGetFastestEncoding

func CFStringGetFastestEncoding(theString CFStringRef) CFStringEncoding

CFStringGetFastestEncoding returns for a CFString object the character encoding that requires the least conversion time.

It panics if CFStringGetFastestEncoding is unavailable at run time; use TryCFStringGetFastestEncoding to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetFastestEncoding(_:)

func CFStringGetListOfAvailableEncodings

func CFStringGetListOfAvailableEncodings() *CFStringEncoding

CFStringGetListOfAvailableEncodings returns a pointer to a list of string encodings supported by the current system.

It panics if CFStringGetListOfAvailableEncodings is unavailable at run time; use TryCFStringGetListOfAvailableEncodings to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetListOfAvailableEncodings()

func CFStringGetMostCompatibleMacStringEncoding

func CFStringGetMostCompatibleMacStringEncoding(encoding CFStringEncoding) CFStringEncoding

CFStringGetMostCompatibleMacStringEncoding returns the most compatible Mac OS script value for the given input encoding.

It panics if CFStringGetMostCompatibleMacStringEncoding is unavailable at run time; use TryCFStringGetMostCompatibleMacStringEncoding to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetMostCompatibleMacStringEncoding(_:)

func CFStringGetSmallestEncoding

func CFStringGetSmallestEncoding(theString CFStringRef) CFStringEncoding

CFStringGetSmallestEncoding returns the smallest encoding on the current system for the character contents of a string.

It panics if CFStringGetSmallestEncoding is unavailable at run time; use TryCFStringGetSmallestEncoding to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetSmallestEncoding(_:)

func CFStringGetSystemEncoding

func CFStringGetSystemEncoding() CFStringEncoding

CFStringGetSystemEncoding returns the default encoding used by the operating system when it creates strings.

It panics if CFStringGetSystemEncoding is unavailable at run time; use TryCFStringGetSystemEncoding to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetSystemEncoding()

func TryCFStringConvertIANACharSetNameToEncoding

func TryCFStringConvertIANACharSetNameToEncoding(theString CFStringRef) (CFStringEncoding, error)

TryCFStringConvertIANACharSetNameToEncoding is like CFStringConvertIANACharSetNameToEncoding but returns an error instead of panicking if CFStringConvertIANACharSetNameToEncoding is unavailable at run time.

func TryCFStringConvertNSStringEncodingToEncoding

func TryCFStringConvertNSStringEncodingToEncoding(encoding uint) (CFStringEncoding, error)

TryCFStringConvertNSStringEncodingToEncoding is like CFStringConvertNSStringEncodingToEncoding but returns an error instead of panicking if CFStringConvertNSStringEncodingToEncoding is unavailable at run time.

func TryCFStringConvertWindowsCodepageToEncoding

func TryCFStringConvertWindowsCodepageToEncoding(codepage uint32) (CFStringEncoding, error)

TryCFStringConvertWindowsCodepageToEncoding is like CFStringConvertWindowsCodepageToEncoding but returns an error instead of panicking if CFStringConvertWindowsCodepageToEncoding is unavailable at run time.

func TryCFStringGetFastestEncoding

func TryCFStringGetFastestEncoding(theString CFStringRef) (CFStringEncoding, error)

TryCFStringGetFastestEncoding is like CFStringGetFastestEncoding but returns an error instead of panicking if CFStringGetFastestEncoding is unavailable at run time.

func TryCFStringGetListOfAvailableEncodings

func TryCFStringGetListOfAvailableEncodings() (*CFStringEncoding, error)

TryCFStringGetListOfAvailableEncodings is like CFStringGetListOfAvailableEncodings but returns an error instead of panicking if CFStringGetListOfAvailableEncodings is unavailable at run time.

func TryCFStringGetMostCompatibleMacStringEncoding

func TryCFStringGetMostCompatibleMacStringEncoding(encoding CFStringEncoding) (CFStringEncoding, error)

TryCFStringGetMostCompatibleMacStringEncoding is like CFStringGetMostCompatibleMacStringEncoding but returns an error instead of panicking if CFStringGetMostCompatibleMacStringEncoding is unavailable at run time.

func TryCFStringGetSmallestEncoding

func TryCFStringGetSmallestEncoding(theString CFStringRef) (CFStringEncoding, error)

TryCFStringGetSmallestEncoding is like CFStringGetSmallestEncoding but returns an error instead of panicking if CFStringGetSmallestEncoding is unavailable at run time.

func TryCFStringGetSystemEncoding

func TryCFStringGetSystemEncoding() (CFStringEncoding, error)

TryCFStringGetSystemEncoding is like CFStringGetSystemEncoding but returns an error instead of panicking if CFStringGetSystemEncoding is unavailable at run time.

type CFStringEncodings

type CFStringEncodings int

See: https://developer.apple.com/documentation/CoreFoundation/CFStringEncodings

const (
	// KCFStringEncodingANSEL: ANSEL (ANSI Z39.47).
	KCFStringEncodingANSEL CFStringEncodings = 0x601
	// KCFStringEncodingBig5: Big-5 (has variants)
	KCFStringEncodingBig5 CFStringEncodings = 0xa03
	// KCFStringEncodingBig5_E: Taiwan Big-5E standard.
	KCFStringEncodingBig5_E CFStringEncodings = 0xa09
	// KCFStringEncodingBig5_HKSCS_1999: Big-5 with Hong Kong special char set supplement.
	KCFStringEncodingBig5_HKSCS_1999 CFStringEncodings = 0xa06
	// KCFStringEncodingCNS_11643_92_P1: CNS 11643-1992 plane 1.
	KCFStringEncodingCNS_11643_92_P1 CFStringEncodings = 0x651
	// KCFStringEncodingCNS_11643_92_P2: CNS 11643-1992 plane 2.
	KCFStringEncodingCNS_11643_92_P2 CFStringEncodings = 0x652
	// KCFStringEncodingCNS_11643_92_P3: CNS 11643-1992 plane 3 (was plane 14 in 1986 version).
	KCFStringEncodingCNS_11643_92_P3 CFStringEncodings = 0x653
	// KCFStringEncodingDOSArabic: Code page 864.
	KCFStringEncodingDOSArabic CFStringEncodings = 0x419
	// KCFStringEncodingDOSBalticRim: Code page 775.
	KCFStringEncodingDOSBalticRim CFStringEncodings = 0x406
	// KCFStringEncodingDOSCanadianFrench: Code page 863.
	KCFStringEncodingDOSCanadianFrench CFStringEncodings = 0x418
	// KCFStringEncodingDOSChineseSimplif: Code page 936, also for Windows.
	KCFStringEncodingDOSChineseSimplif CFStringEncodings = 0x421
	// KCFStringEncodingDOSChineseTrad: Code page 950, also for Windows.
	KCFStringEncodingDOSChineseTrad CFStringEncodings = 0x423
	// KCFStringEncodingDOSCyrillic: Code page 855, IBM Cyrillic.
	KCFStringEncodingDOSCyrillic CFStringEncodings = 0x413
	// KCFStringEncodingDOSGreek: Code page 737 (formerly code page 437G).
	KCFStringEncodingDOSGreek CFStringEncodings = 0x405
	// KCFStringEncodingDOSGreek1: Code page 851.
	KCFStringEncodingDOSGreek1 CFStringEncodings = 0x411
	// KCFStringEncodingDOSGreek2: Code page 869, IBM Modern Greek.
	KCFStringEncodingDOSGreek2 CFStringEncodings = 0x41c
	// KCFStringEncodingDOSHebrew: Code page 862.
	KCFStringEncodingDOSHebrew CFStringEncodings = 0x417
	// KCFStringEncodingDOSIcelandic: Code page 861.
	KCFStringEncodingDOSIcelandic CFStringEncodings = 0x416
	// KCFStringEncodingDOSJapanese: Code page 932, also for Windows.
	KCFStringEncodingDOSJapanese CFStringEncodings = 0x420
	// KCFStringEncodingDOSKorean: Code page 949, also for Windows; Unified Hangul Code.
	KCFStringEncodingDOSKorean CFStringEncodings = 0x422
	// KCFStringEncodingDOSLatin1: Code page 850, “Multilingual”.
	KCFStringEncodingDOSLatin1 CFStringEncodings = 0x410
	// KCFStringEncodingDOSLatin2: Code page 852, Slavic.
	KCFStringEncodingDOSLatin2 CFStringEncodings = 0x412
	// KCFStringEncodingDOSLatinUS: Code page 437.
	KCFStringEncodingDOSLatinUS CFStringEncodings = 0x400
	// KCFStringEncodingDOSNordic: Code page 865.
	KCFStringEncodingDOSNordic CFStringEncodings = 0x41a
	// KCFStringEncodingDOSPortuguese: Code page 860.
	KCFStringEncodingDOSPortuguese CFStringEncodings = 0x415
	// KCFStringEncodingDOSRussian: Code page 866.
	KCFStringEncodingDOSRussian CFStringEncodings = 0x41b
	// KCFStringEncodingDOSThai: Code page 874, also for Windows.
	KCFStringEncodingDOSThai CFStringEncodings = 0x41d
	// KCFStringEncodingDOSTurkish: Code page 857, IBM Turkish.
	KCFStringEncodingDOSTurkish CFStringEncodings = 0x414
	// KCFStringEncodingEBCDIC_CP037: code page 037, extended EBCDIC (Latin-1 set) for US, Canada.
	KCFStringEncodingEBCDIC_CP037 CFStringEncodings = 0xc02
	// KCFStringEncodingEBCDIC_US: basic EBCDIC-US
	KCFStringEncodingEBCDIC_US CFStringEncodings = 0xc01
	// KCFStringEncodingEUC_CN: ISO 646, GB 2312-80.
	KCFStringEncodingEUC_CN CFStringEncodings = 0x930
	// KCFStringEncodingEUC_JP: ISO 646, 1-byte katakana, JIS 208, JIS 212.
	KCFStringEncodingEUC_JP CFStringEncodings = 0x920
	// KCFStringEncodingEUC_KR: ISO 646, KS C 5601-1987.
	KCFStringEncodingEUC_KR CFStringEncodings = 0x940
	// KCFStringEncodingEUC_TW: ISO 646, CNS 11643-1992 Planes 1-16.
	KCFStringEncodingEUC_TW CFStringEncodings = 0x931
	// KCFStringEncodingGBK_95: Annex to GB 13000-93; for Windows 95.
	KCFStringEncodingGBK_95        CFStringEncodings = 0x631
	KCFStringEncodingGB_18030_2000 CFStringEncodings = 0x632
	KCFStringEncodingGB_2312_80    CFStringEncodings = 0x630
	// KCFStringEncodingHZ_GB_2312: HZ (RFC 1842, for Chinese mail & news).
	KCFStringEncodingHZ_GB_2312 CFStringEncodings = 0xa05
	// KCFStringEncodingISOLatin10: ISO 8859-16.
	KCFStringEncodingISOLatin10 CFStringEncodings = 0x210
	// KCFStringEncodingISOLatin2: ISO 8859-2.
	KCFStringEncodingISOLatin2 CFStringEncodings = 0x202
	// KCFStringEncodingISOLatin3: ISO 8859-3.
	KCFStringEncodingISOLatin3 CFStringEncodings = 0x203
	// KCFStringEncodingISOLatin4: ISO 8859-4.
	KCFStringEncodingISOLatin4 CFStringEncodings = 0x204
	// KCFStringEncodingISOLatin5: ISO 8859-9.
	KCFStringEncodingISOLatin5 CFStringEncodings = 0x209
	// KCFStringEncodingISOLatin6: ISO 8859-10.
	KCFStringEncodingISOLatin6 CFStringEncodings = 0x20a
	// KCFStringEncodingISOLatin7: ISO 8859-13.
	KCFStringEncodingISOLatin7 CFStringEncodings = 0x20d
	// KCFStringEncodingISOLatin8: ISO 8859-14.
	KCFStringEncodingISOLatin8 CFStringEncodings = 0x20e
	// KCFStringEncodingISOLatin9: ISO 8859-15.
	KCFStringEncodingISOLatin9 CFStringEncodings = 0x20f
	// KCFStringEncodingISOLatinArabic: ISO 8859-6, =ASMO 708, =DOS CP 708.
	KCFStringEncodingISOLatinArabic CFStringEncodings = 0x206
	// KCFStringEncodingISOLatinCyrillic: ISO 8859-5.
	KCFStringEncodingISOLatinCyrillic CFStringEncodings = 0x205
	// KCFStringEncodingISOLatinGreek: ISO 8859-7.
	KCFStringEncodingISOLatinGreek CFStringEncodings = 0x207
	// KCFStringEncodingISOLatinHebrew: ISO 8859-8.
	KCFStringEncodingISOLatinHebrew CFStringEncodings = 0x208
	// KCFStringEncodingISOLatinThai: ISO 8859-11.
	KCFStringEncodingISOLatinThai    CFStringEncodings = 0x20b
	KCFStringEncodingISO_2022_CN     CFStringEncodings = 0x830
	KCFStringEncodingISO_2022_CN_EXT CFStringEncodings = 0x831
	KCFStringEncodingISO_2022_JP     CFStringEncodings = 0x820
	// KCFStringEncodingISO_2022_JP_1: RFC 2237.
	KCFStringEncodingISO_2022_JP_1 CFStringEncodings = 0x822
	KCFStringEncodingISO_2022_JP_2 CFStringEncodings = 0x821
	// KCFStringEncodingISO_2022_JP_3: JIS X0213.
	KCFStringEncodingISO_2022_JP_3 CFStringEncodings = 0x823
	KCFStringEncodingISO_2022_KR   CFStringEncodings = 0x840
	KCFStringEncodingJIS_C6226_78  CFStringEncodings = 0x624
	KCFStringEncodingJIS_X0201_76  CFStringEncodings = 0x620
	KCFStringEncodingJIS_X0208_83  CFStringEncodings = 0x621
	KCFStringEncodingJIS_X0208_90  CFStringEncodings = 0x622
	KCFStringEncodingJIS_X0212_90  CFStringEncodings = 0x623
	// KCFStringEncodingKOI8_R: Russian internet standard.
	KCFStringEncodingKOI8_R CFStringEncodings = 0xa02
	// KCFStringEncodingKOI8_U: RFC 2319, Ukrainian.
	KCFStringEncodingKOI8_U CFStringEncodings = 0xa08
	// KCFStringEncodingKSC_5601_87: Same as KSC 5601-92 without Johab annex.
	KCFStringEncodingKSC_5601_87 CFStringEncodings = 0x640
	// KCFStringEncodingKSC_5601_92_Johab: KSC 5601-92 Johab annex.
	KCFStringEncodingKSC_5601_92_Johab  CFStringEncodings = 0x641
	KCFStringEncodingMacArabic          CFStringEncodings = 4
	KCFStringEncodingMacArmenian        CFStringEncodings = 24
	KCFStringEncodingMacBengali         CFStringEncodings = 13
	KCFStringEncodingMacBurmese         CFStringEncodings = 19
	KCFStringEncodingMacCeltic          CFStringEncodings = 39
	KCFStringEncodingMacCentralEurRoman CFStringEncodings = 29
	KCFStringEncodingMacChineseSimp     CFStringEncodings = 25
	KCFStringEncodingMacChineseTrad     CFStringEncodings = 2
	KCFStringEncodingMacCroatian        CFStringEncodings = 36
	KCFStringEncodingMacCyrillic        CFStringEncodings = 7
	KCFStringEncodingMacDevanagari      CFStringEncodings = 9
	KCFStringEncodingMacDingbats        CFStringEncodings = 34
	KCFStringEncodingMacEthiopic        CFStringEncodings = 28
	KCFStringEncodingMacExtArabic       CFStringEncodings = 31
	// KCFStringEncodingMacFarsi: Like MacArabic but uses Farsi digits.
	KCFStringEncodingMacFarsi    CFStringEncodings = 0x8c
	KCFStringEncodingMacGaelic   CFStringEncodings = 40
	KCFStringEncodingMacGeorgian CFStringEncodings = 23
	KCFStringEncodingMacGreek    CFStringEncodings = 6
	KCFStringEncodingMacGujarati CFStringEncodings = 11
	KCFStringEncodingMacGurmukhi CFStringEncodings = 10
	// KCFStringEncodingMacHFS: Meta-value, should never appear in a table.
	KCFStringEncodingMacHFS       CFStringEncodings = 0xff
	KCFStringEncodingMacHebrew    CFStringEncodings = 5
	KCFStringEncodingMacIcelandic CFStringEncodings = 37
	KCFStringEncodingMacInuit     CFStringEncodings = 0xec
	KCFStringEncodingMacJapanese  CFStringEncodings = 1
	KCFStringEncodingMacKannada   CFStringEncodings = 16
	KCFStringEncodingMacKhmer     CFStringEncodings = 20
	KCFStringEncodingMacKorean    CFStringEncodings = 3
	KCFStringEncodingMacLaotian   CFStringEncodings = 22
	KCFStringEncodingMacMalayalam CFStringEncodings = 17
	KCFStringEncodingMacMongolian CFStringEncodings = 27
	KCFStringEncodingMacOriya     CFStringEncodings = 12
	// KCFStringEncodingMacRomanLatin1: Mac OS Roman permuted to align with ISO Latin-1.
	KCFStringEncodingMacRomanLatin1 CFStringEncodings = 0xa04
	KCFStringEncodingMacRomanian    CFStringEncodings = 38
	KCFStringEncodingMacSinhalese   CFStringEncodings = 18
	KCFStringEncodingMacSymbol      CFStringEncodings = 33
	KCFStringEncodingMacTamil       CFStringEncodings = 14
	KCFStringEncodingMacTelugu      CFStringEncodings = 15
	KCFStringEncodingMacThai        CFStringEncodings = 21
	KCFStringEncodingMacTibetan     CFStringEncodings = 26
	KCFStringEncodingMacTurkish     CFStringEncodings = 35
	KCFStringEncodingMacUkrainian   CFStringEncodings = 0x98
	// KCFStringEncodingMacVT100: VT100102 font from Comm Toolbox: Latin-1 repertoire + box drawing etc.
	KCFStringEncodingMacVT100      CFStringEncodings = 0xfc
	KCFStringEncodingMacVietnamese CFStringEncodings = 30
	// KCFStringEncodingNextStepJapanese: NextStep Japanese encoding.
	KCFStringEncodingNextStepJapanese CFStringEncodings = 0xb02
	// KCFStringEncodingShiftJIS: Plain Shift-JIS.
	KCFStringEncodingShiftJIS CFStringEncodings = 0xa01
	// KCFStringEncodingShiftJIS_X0213: Shift-JIS format encoding of JIS X0213 planes 1 and 2.
	KCFStringEncodingShiftJIS_X0213 CFStringEncodings = 0x628
	// KCFStringEncodingShiftJIS_X0213_00: Shift-JIS format encoding of JIS X0213 planes 1 and 2.
	KCFStringEncodingShiftJIS_X0213_00 CFStringEncodings = 0x628
	// KCFStringEncodingShiftJIS_X0213_MenKuTen: JIS X0213 in plane-row-column notation.
	KCFStringEncodingShiftJIS_X0213_MenKuTen CFStringEncodings = 0x629
	// KCFStringEncodingUTF7: kTextEncodingUnicodeDefault + kUnicodeUTF7Format RFC2152.
	KCFStringEncodingUTF7 CFStringEncodings = 0x4000100
	// KCFStringEncodingUTF7_IMAP: UTF-7 (IMAP folder variant) RFC3501.
	KCFStringEncodingUTF7_IMAP CFStringEncodings = 0xa10
	// KCFStringEncodingVISCII: RFC 1456, Vietnamese.
	KCFStringEncodingVISCII CFStringEncodings = 0xa07
	// KCFStringEncodingWindowsArabic: Code page 1256.
	KCFStringEncodingWindowsArabic CFStringEncodings = 0x506
	// KCFStringEncodingWindowsBalticRim: Code page 1257.
	KCFStringEncodingWindowsBalticRim CFStringEncodings = 0x507
	// KCFStringEncodingWindowsCyrillic: Code page 1251, Slavic Cyrillic.
	KCFStringEncodingWindowsCyrillic CFStringEncodings = 0x502
	// KCFStringEncodingWindowsGreek: Code page 1253.
	KCFStringEncodingWindowsGreek CFStringEncodings = 0x503
	// KCFStringEncodingWindowsHebrew: Code page 1255.
	KCFStringEncodingWindowsHebrew CFStringEncodings = 0x505
	// KCFStringEncodingWindowsKoreanJohab: Code page 1361, for Windows NT.
	KCFStringEncodingWindowsKoreanJohab CFStringEncodings = 0x510
	// KCFStringEncodingWindowsLatin2: Code page 1250, Central Europe.
	KCFStringEncodingWindowsLatin2 CFStringEncodings = 0x501
	// KCFStringEncodingWindowsLatin5: Code page 1254, Turkish.
	KCFStringEncodingWindowsLatin5 CFStringEncodings = 0x504
	// KCFStringEncodingWindowsVietnamese: Code page 1258.
	KCFStringEncodingWindowsVietnamese CFStringEncodings = 0x508
)

func (CFStringEncodings) String

func (e CFStringEncodings) String() string

type CFStringInlineBuffer

type CFStringInlineBuffer struct {
	Buffer              [64]uint16
	TheString           CFStringRef
	DirectUniCharBuffer *uint16
	DirectCStringBuffer *byte
	RangeToBuffer       CFRange
	BufferedRangeStart  CFIndex
	BufferedRangeEnd    CFIndex
}

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.

It panics if CFAttributedStringGetString is unavailable at run time; use TryCFAttributedStringGetString to get an error instead.

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.

It panics if CFBundleCopyLocalizedString is unavailable at run time; use TryCFBundleCopyLocalizedString to get an error instead.

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.

It panics if CFBundleCopyLocalizedStringForLocalizations is unavailable at run time; use TryCFBundleCopyLocalizedStringForLocalizations to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyLocalizedStringForLocalizations(_:_:_:_:_:)

func CFBundleGetDevelopmentRegion

func CFBundleGetDevelopmentRegion(bundle CFBundleRef) CFStringRef

CFBundleGetDevelopmentRegion returns the bundle’s development region from the bundle’s information property list.

It panics if CFBundleGetDevelopmentRegion is unavailable at run time; use TryCFBundleGetDevelopmentRegion to get an error instead.

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.

It panics if CFBundleGetIdentifier is unavailable at run time; use TryCFBundleGetIdentifier to get an error instead.

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.

It panics if CFCopyDescription is unavailable at run time; use TryCFCopyDescription to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCopyDescription(_:)

func CFCopyTypeIDDescription

func CFCopyTypeIDDescription(type_id CFTypeID) CFStringRef

CFCopyTypeIDDescription returns a textual description of a Core Foundation type, as identified by its type ID, which can be used when debugging.

It panics if CFCopyTypeIDDescription is unavailable at run time; use TryCFCopyTypeIDDescription to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCopyTypeIDDescription(_:)

func CFDateFormatterCreateDateFormatFromTemplate

func CFDateFormatterCreateDateFormatFromTemplate(allocator CFAllocatorRef, tmplate CFStringRef, options CFOptionFlags, locale CFLocaleRef) CFStringRef

CFDateFormatterCreateDateFormatFromTemplate returns a localized date format string representing the given date format components arranged appropriately for the specified locale.

It panics if CFDateFormatterCreateDateFormatFromTemplate is unavailable at run time; use TryCFDateFormatterCreateDateFormatFromTemplate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterCreateDateFormatFromTemplate(_:_:_:_:)

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.

It panics if CFDateFormatterCreateStringWithAbsoluteTime is unavailable at run time; use TryCFDateFormatterCreateStringWithAbsoluteTime to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterCreateStringWithAbsoluteTime(_:_:_:)

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.

It panics if CFDateFormatterCreateStringWithDate is unavailable at run time; use TryCFDateFormatterCreateStringWithDate to get an error instead.

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.

It panics if CFDateFormatterGetFormat is unavailable at run time; use TryCFDateFormatterGetFormat to get an error instead.

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.

It panics if CFErrorCopyDescription is unavailable at run time; use TryCFErrorCopyDescription to get an error instead.

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.

It panics if CFErrorCopyFailureReason is unavailable at run time; use TryCFErrorCopyFailureReason to get an error instead.

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.

It panics if CFErrorCopyRecoverySuggestion is unavailable at run time; use TryCFErrorCopyRecoverySuggestion to get an error instead.

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.

It panics if CFLocaleCopyDisplayNameForPropertyValue is unavailable at run time; use TryCFLocaleCopyDisplayNameForPropertyValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleCopyDisplayNameForPropertyValue(_:_:_:)

func CFMessagePortGetName

func CFMessagePortGetName(ms CFMessagePortRef) CFStringRef

CFMessagePortGetName returns the name with which a CFMessagePort object is registered.

It panics if CFMessagePortGetName is unavailable at run time; use TryCFMessagePortGetName to get an error instead.

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.

It panics if CFNumberFormatterCreateStringWithNumber is unavailable at run time; use TryCFNumberFormatterCreateStringWithNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterCreateStringWithNumber(_:_:_:)

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.

It panics if CFNumberFormatterCreateStringWithValue is unavailable at run time; use TryCFNumberFormatterCreateStringWithValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterCreateStringWithValue(_:_:_:_:)

func CFNumberFormatterGetFormat

func CFNumberFormatterGetFormat(formatter CFNumberFormatterRef) CFStringRef

CFNumberFormatterGetFormat returns a format string for the given number formatter object.

It panics if CFNumberFormatterGetFormat is unavailable at run time; use TryCFNumberFormatterGetFormat to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterGetFormat(_:)

func CFPlugInInstanceGetFactoryName

func CFPlugInInstanceGetFactoryName(instance CFPlugInInstanceRef) CFStringRef

CFPlugInInstanceGetFactoryName not recommended.

It panics if CFPlugInInstanceGetFactoryName is unavailable at run time; use TryCFPlugInInstanceGetFactoryName to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstanceGetFactoryName(_:)

func CFStringConvertEncodingToIANACharSetName

func CFStringConvertEncodingToIANACharSetName(encoding CFStringEncoding) CFStringRef

CFStringConvertEncodingToIANACharSetName returns the name of the IANA registry “charset” that is the closest mapping to a specified string encoding.

It panics if CFStringConvertEncodingToIANACharSetName is unavailable at run time; use TryCFStringConvertEncodingToIANACharSetName to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringConvertEncodingToIANACharSetName(_:)

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.

It panics if CFStringCreateByCombiningStrings is unavailable at run time; use TryCFStringCreateByCombiningStrings to get an error instead.

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.

It panics if CFStringCreateCopy is unavailable at run time; use TryCFStringCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateCopy(_:_:)

func CFStringCreateFromExternalRepresentation

func CFStringCreateFromExternalRepresentation(alloc CFAllocatorRef, data CFDataRef, encoding CFStringEncoding) CFStringRef

CFStringCreateFromExternalRepresentation creates a string from its “external representation.”

It panics if CFStringCreateFromExternalRepresentation is unavailable at run time; use TryCFStringCreateFromExternalRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateFromExternalRepresentation(_:_:_:)

func CFStringCreateStringWithValidatedFormat

func CFStringCreateStringWithValidatedFormat(alloc CFAllocatorRef, formatOptions CFDictionaryRef, validFormatSpecifiers CFStringRef, format CFStringRef, errorPtr *CFErrorRef) CFStringRef

CFStringCreateStringWithValidatedFormat.

It panics if CFStringCreateStringWithValidatedFormat is unavailable at run time; use TryCFStringCreateStringWithValidatedFormat to get an error instead.

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 kernel.Va_list, errorPtr *CFErrorRef) CFStringRef

CFStringCreateStringWithValidatedFormatAndArguments.

It panics if CFStringCreateStringWithValidatedFormatAndArguments is unavailable at run time; use TryCFStringCreateStringWithValidatedFormatAndArguments to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateStringWithValidatedFormatAndArguments

func CFStringCreateWithBytes

func CFStringCreateWithBytes(alloc CFAllocatorRef, bytes []byte, numBytes CFIndex, encoding CFStringEncoding, isExternalRepresentation bool) CFStringRef

CFStringCreateWithBytes creates a string from a buffer containing characters in a specified encoding.

It panics if CFStringCreateWithBytes is unavailable at run time; use TryCFStringCreateWithBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithBytes(_:_:_:_:_:)

func CFStringCreateWithBytesNoCopy

func CFStringCreateWithBytesNoCopy(alloc CFAllocatorRef, bytes []byte, numBytes CFIndex, encoding CFStringEncoding, 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.

It panics if CFStringCreateWithBytesNoCopy is unavailable at run time; use TryCFStringCreateWithBytesNoCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithBytesNoCopy(_:_:_:_:_:_:)

func CFStringCreateWithCString

func CFStringCreateWithCString(alloc CFAllocatorRef, cStr string, encoding CFStringEncoding) CFStringRef

CFStringCreateWithCString creates an immutable string from a C string.

It panics if CFStringCreateWithCString is unavailable at run time; use TryCFStringCreateWithCString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithCString(_:_:_:)

func CFStringCreateWithCStringNoCopy

func CFStringCreateWithCStringNoCopy(alloc CFAllocatorRef, cStr string, encoding CFStringEncoding, contentsDeallocator CFAllocatorRef) CFStringRef

CFStringCreateWithCStringNoCopy creates a CFString object from an external C string buffer that might serve as the backing store for the object.

It panics if CFStringCreateWithCStringNoCopy is unavailable at run time; use TryCFStringCreateWithCStringNoCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithCStringNoCopy(_:_:_:_:)

func CFStringCreateWithCharacters

func CFStringCreateWithCharacters(alloc CFAllocatorRef, chars *uint16, numChars CFIndex) CFStringRef

CFStringCreateWithCharacters creates a string from a buffer of Unicode characters.

It panics if CFStringCreateWithCharacters is unavailable at run time; use TryCFStringCreateWithCharacters to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithCharacters(_:_:_:)

func CFStringCreateWithCharactersNoCopy

func CFStringCreateWithCharactersNoCopy(alloc CFAllocatorRef, chars *uint16, numChars CFIndex, contentsDeallocator CFAllocatorRef) CFStringRef

CFStringCreateWithCharactersNoCopy creates a string from a buffer of Unicode characters that might serve as the backing store for the object.

It panics if CFStringCreateWithCharactersNoCopy is unavailable at run time; use TryCFStringCreateWithCharactersNoCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithCharactersNoCopy(_:_:_:_:)

func CFStringCreateWithFileSystemRepresentation

func CFStringCreateWithFileSystemRepresentation(alloc CFAllocatorRef, buffer *byte) CFStringRef

CFStringCreateWithFileSystemRepresentation creates a CFString from a zero-terminated POSIX file system representation.

It panics if CFStringCreateWithFileSystemRepresentation is unavailable at run time; use TryCFStringCreateWithFileSystemRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithFileSystemRepresentation(_:_:)

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.

It panics if CFStringCreateWithFormat is unavailable at run time; use TryCFStringCreateWithFormat to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithFormat

func CFStringCreateWithFormatAndArguments added in v0.2.0

func CFStringCreateWithFormatAndArguments(alloc CFAllocatorRef, formatOptions CFDictionaryRef, format CFStringRef, arguments kernel.Va_list) CFStringRef

CFStringCreateWithFormatAndArguments creates an immutable string from a formatted string and a variable number of arguments (specified in a parameter of type `va_list`).

It panics if CFStringCreateWithFormatAndArguments is unavailable at run time; use TryCFStringCreateWithFormatAndArguments to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithFormatAndArguments(_:_:_:_:)

func CFStringCreateWithPascalString

func CFStringCreateWithPascalString(alloc CFAllocatorRef, pStr unsafe.Pointer, encoding CFStringEncoding) CFStringRef

CFStringCreateWithPascalString creates an immutable CFString object from a Pascal string.

It panics if CFStringCreateWithPascalString is unavailable at run time; use TryCFStringCreateWithPascalString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithPascalString(_:_:_:)

func CFStringCreateWithPascalStringNoCopy

func CFStringCreateWithPascalStringNoCopy(alloc CFAllocatorRef, pStr unsafe.Pointer, encoding CFStringEncoding, contentsDeallocator CFAllocatorRef) CFStringRef

CFStringCreateWithPascalStringNoCopy creates a CFString object from an external Pascal string buffer that might serve as the backing store for the object.

It panics if CFStringCreateWithPascalStringNoCopy is unavailable at run time; use TryCFStringCreateWithPascalStringNoCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithPascalStringNoCopy(_:_:_:_:)

func CFStringCreateWithSubstring

func CFStringCreateWithSubstring(alloc CFAllocatorRef, str CFStringRef, range_ CFRange) CFStringRef

CFStringCreateWithSubstring creates an immutable string from a segment (substring) of an existing string.

It panics if CFStringCreateWithSubstring is unavailable at run time; use TryCFStringCreateWithSubstring to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringCreateWithSubstring(_:_:_:)

func CFStringGetNameOfEncoding

func CFStringGetNameOfEncoding(encoding CFStringEncoding) CFStringRef

CFStringGetNameOfEncoding returns the canonical name of a specified string encoding.

It panics if CFStringGetNameOfEncoding is unavailable at run time; use TryCFStringGetNameOfEncoding to get an error instead.

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.

It panics if CFStringTokenizerCopyBestStringLanguage is unavailable at run time; use TryCFStringTokenizerCopyBestStringLanguage to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerCopyBestStringLanguage(_:_:)

func CFTimeZoneCopyAbbreviation

func CFTimeZoneCopyAbbreviation(tz CFTimeZoneRef, at CFAbsoluteTime) CFStringRef

CFTimeZoneCopyAbbreviation returns the abbreviation of a time zone at a specified date.

It panics if CFTimeZoneCopyAbbreviation is unavailable at run time; use TryCFTimeZoneCopyAbbreviation to get an error instead.

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.

It panics if CFTimeZoneCopyLocalizedName is unavailable at run time; use TryCFTimeZoneCopyLocalizedName to get an error instead.

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.

It panics if CFTimeZoneGetName is unavailable at run time; use TryCFTimeZoneGetName to get an error instead.

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.

It panics if CFURLCopyFileSystemPath is unavailable at run time; use TryCFURLCopyFileSystemPath to get an error instead.

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.

It panics if CFURLCopyFragment is unavailable at run time; use TryCFURLCopyFragment to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyFragment(_:_:)

func CFURLCopyHostName

func CFURLCopyHostName(anURL CFURLRef) CFStringRef

CFURLCopyHostName returns the host name of a given URL.

It panics if CFURLCopyHostName is unavailable at run time; use TryCFURLCopyHostName to get an error instead.

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.

It panics if CFURLCopyLastPathComponent is unavailable at run time; use TryCFURLCopyLastPathComponent to get an error instead.

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.

It panics if CFURLCopyNetLocation is unavailable at run time; use TryCFURLCopyNetLocation to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyNetLocation(_:)

func CFURLCopyParameterString deprecated

func CFURLCopyParameterString(anURL CFURLRef, charactersToLeaveEscaped CFStringRef) CFStringRef

CFURLCopyParameterString returns the parameter string from a given URL.

It panics if CFURLCopyParameterString is unavailable at run time; use TryCFURLCopyParameterString to get an error instead.

Deprecated: Deprecated since macOS 10.15. The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyParameterString(_:_:)

func CFURLCopyPassword

func CFURLCopyPassword(anURL CFURLRef) CFStringRef

CFURLCopyPassword returns the password of a given URL.

It panics if CFURLCopyPassword is unavailable at run time; use TryCFURLCopyPassword to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyPassword(_:)

func CFURLCopyPath

func CFURLCopyPath(anURL CFURLRef) CFStringRef

CFURLCopyPath returns the path portion of a given URL.

It panics if CFURLCopyPath is unavailable at run time; use TryCFURLCopyPath to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyPath(_:)

func CFURLCopyPathExtension

func CFURLCopyPathExtension(url CFURLRef) CFStringRef

CFURLCopyPathExtension returns the path extension of a given URL.

It panics if CFURLCopyPathExtension is unavailable at run time; use TryCFURLCopyPathExtension to get an error instead.

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.

It panics if CFURLCopyQueryString is unavailable at run time; use TryCFURLCopyQueryString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyQueryString(_:_:)

func CFURLCopyResourceSpecifier

func CFURLCopyResourceSpecifier(anURL CFURLRef) CFStringRef

CFURLCopyResourceSpecifier returns any additional resource specifiers after the path.

It panics if CFURLCopyResourceSpecifier is unavailable at run time; use TryCFURLCopyResourceSpecifier to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyResourceSpecifier(_:)

func CFURLCopyScheme

func CFURLCopyScheme(anURL CFURLRef) CFStringRef

CFURLCopyScheme returns the scheme portion of a given URL.

It panics if CFURLCopyScheme is unavailable at run time; use TryCFURLCopyScheme to get an error instead.

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.

It panics if CFURLCopyStrictPath is unavailable at run time; use TryCFURLCopyStrictPath to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyStrictPath(_:_:)

func CFURLCopyUserName

func CFURLCopyUserName(anURL CFURLRef) CFStringRef

CFURLCopyUserName returns the user name from a given URL.

It panics if CFURLCopyUserName is unavailable at run time; use TryCFURLCopyUserName to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyUserName(_:)

func CFURLCreateStringByAddingPercentEscapes deprecated

func CFURLCreateStringByAddingPercentEscapes(allocator CFAllocatorRef, originalString CFStringRef, charactersToLeaveUnescaped CFStringRef, legalURLCharactersToBeEscaped CFStringRef, encoding CFStringEncoding) CFStringRef

CFURLCreateStringByAddingPercentEscapes creates a copy of a string, replacing certain characters with the equivalent percent escape sequence based on the specified encoding.

It panics if CFURLCreateStringByAddingPercentEscapes is unavailable at run time; use TryCFURLCreateStringByAddingPercentEscapes to get an error instead.

Deprecated: Deprecated since macOS 10.11. Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid).

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateStringByAddingPercentEscapes(_:_:_:_:_:)

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.

It panics if CFURLCreateStringByReplacingPercentEscapes is unavailable at run time; use TryCFURLCreateStringByReplacingPercentEscapes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateStringByReplacingPercentEscapes(_:_:_:)

func CFURLCreateStringByReplacingPercentEscapesUsingEncoding deprecated

func CFURLCreateStringByReplacingPercentEscapesUsingEncoding(allocator CFAllocatorRef, origString CFStringRef, charsToLeaveEscaped CFStringRef, encoding CFStringEncoding) CFStringRef

CFURLCreateStringByReplacingPercentEscapesUsingEncoding creates a new string by replacing any percent escape sequences with their character equivalent.

It panics if CFURLCreateStringByReplacingPercentEscapesUsingEncoding is unavailable at run time; use TryCFURLCreateStringByReplacingPercentEscapesUsingEncoding to get an error instead.

Deprecated: Deprecated since macOS 10.11. Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateStringByReplacingPercentEscapesUsingEncoding(_:_:_:_:)

func CFURLGetString

func CFURLGetString(anURL CFURLRef) CFStringRef

CFURLGetString returns the URL as a CFString object.

It panics if CFURLGetString is unavailable at run time; use TryCFURLGetString to get an error instead.

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.

It panics if CFUUIDCreateString is unavailable at run time; use TryCFUUIDCreateString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUUIDCreateString(_:_:)

func CFUserNotificationGetResponseValue

func CFUserNotificationGetResponseValue(userNotification CFUserNotificationRef, key CFStringRef, idx CFIndex) CFStringRef

CFUserNotificationGetResponseValue extracts the values of the text fields from a dismissed notification dialog.

It panics if CFUserNotificationGetResponseValue is unavailable at run time; use TryCFUserNotificationGetResponseValue to get an error instead.

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.

It panics if CFXMLCreateStringByEscapingEntities is unavailable at run time; use TryCFXMLCreateStringByEscapingEntities to get an error instead.

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.

It panics if CFXMLCreateStringByUnescapingEntities is unavailable at run time; use TryCFXMLCreateStringByUnescapingEntities to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLCreateStringByUnescapingEntities(_:_:_:)

func CFXMLNodeGetString deprecated

func CFXMLNodeGetString(node unsafe.Pointer) CFStringRef

CFXMLNodeGetString returns the data string from a CFXMLNode.

It panics if CFXMLNodeGetString is unavailable at run time; use TryCFXMLNodeGetString to get an error instead.

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.

It panics if CFXMLParserCopyErrorDescription is unavailable at run time; use TryCFXMLParserCopyErrorDescription to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserCopyErrorDescription

func TryCFAttributedStringGetString

func TryCFAttributedStringGetString(aStr CFAttributedStringRef) (CFStringRef, error)

TryCFAttributedStringGetString is like CFAttributedStringGetString but returns an error instead of panicking if CFAttributedStringGetString is unavailable at run time.

func TryCFBundleCopyLocalizedString

func TryCFBundleCopyLocalizedString(bundle CFBundleRef, key CFStringRef, value CFStringRef, tableName CFStringRef) (CFStringRef, error)

TryCFBundleCopyLocalizedString is like CFBundleCopyLocalizedString but returns an error instead of panicking if CFBundleCopyLocalizedString is unavailable at run time.

func TryCFBundleCopyLocalizedStringForLocalizations

func TryCFBundleCopyLocalizedStringForLocalizations(bundle CFBundleRef, key CFStringRef, value CFStringRef, tableName CFStringRef, localizations CFArrayRef) (CFStringRef, error)

TryCFBundleCopyLocalizedStringForLocalizations is like CFBundleCopyLocalizedStringForLocalizations but returns an error instead of panicking if CFBundleCopyLocalizedStringForLocalizations is unavailable at run time.

func TryCFBundleGetDevelopmentRegion

func TryCFBundleGetDevelopmentRegion(bundle CFBundleRef) (CFStringRef, error)

TryCFBundleGetDevelopmentRegion is like CFBundleGetDevelopmentRegion but returns an error instead of panicking if CFBundleGetDevelopmentRegion is unavailable at run time.

func TryCFBundleGetIdentifier

func TryCFBundleGetIdentifier(bundle CFBundleRef) (CFStringRef, error)

TryCFBundleGetIdentifier is like CFBundleGetIdentifier but returns an error instead of panicking if CFBundleGetIdentifier is unavailable at run time.

func TryCFCopyDescription

func TryCFCopyDescription(cf CFTypeRef) (CFStringRef, error)

TryCFCopyDescription is like CFCopyDescription but returns an error instead of panicking if CFCopyDescription is unavailable at run time.

func TryCFCopyTypeIDDescription

func TryCFCopyTypeIDDescription(type_id CFTypeID) (CFStringRef, error)

TryCFCopyTypeIDDescription is like CFCopyTypeIDDescription but returns an error instead of panicking if CFCopyTypeIDDescription is unavailable at run time.

func TryCFDateFormatterCreateDateFormatFromTemplate

func TryCFDateFormatterCreateDateFormatFromTemplate(allocator CFAllocatorRef, tmplate CFStringRef, options CFOptionFlags, locale CFLocaleRef) (CFStringRef, error)

TryCFDateFormatterCreateDateFormatFromTemplate is like CFDateFormatterCreateDateFormatFromTemplate but returns an error instead of panicking if CFDateFormatterCreateDateFormatFromTemplate is unavailable at run time.

func TryCFDateFormatterCreateStringWithAbsoluteTime

func TryCFDateFormatterCreateStringWithAbsoluteTime(allocator CFAllocatorRef, formatter CFDateFormatterRef, at CFAbsoluteTime) (CFStringRef, error)

TryCFDateFormatterCreateStringWithAbsoluteTime is like CFDateFormatterCreateStringWithAbsoluteTime but returns an error instead of panicking if CFDateFormatterCreateStringWithAbsoluteTime is unavailable at run time.

func TryCFDateFormatterCreateStringWithDate

func TryCFDateFormatterCreateStringWithDate(allocator CFAllocatorRef, formatter CFDateFormatterRef, date CFDateRef) (CFStringRef, error)

TryCFDateFormatterCreateStringWithDate is like CFDateFormatterCreateStringWithDate but returns an error instead of panicking if CFDateFormatterCreateStringWithDate is unavailable at run time.

func TryCFDateFormatterGetFormat

func TryCFDateFormatterGetFormat(formatter CFDateFormatterRef) (CFStringRef, error)

TryCFDateFormatterGetFormat is like CFDateFormatterGetFormat but returns an error instead of panicking if CFDateFormatterGetFormat is unavailable at run time.

func TryCFErrorCopyDescription

func TryCFErrorCopyDescription(err CFErrorRef) (CFStringRef, error)

TryCFErrorCopyDescription is like CFErrorCopyDescription but returns an error instead of panicking if CFErrorCopyDescription is unavailable at run time.

func TryCFErrorCopyFailureReason

func TryCFErrorCopyFailureReason(err CFErrorRef) (CFStringRef, error)

TryCFErrorCopyFailureReason is like CFErrorCopyFailureReason but returns an error instead of panicking if CFErrorCopyFailureReason is unavailable at run time.

func TryCFErrorCopyRecoverySuggestion

func TryCFErrorCopyRecoverySuggestion(err CFErrorRef) (CFStringRef, error)

TryCFErrorCopyRecoverySuggestion is like CFErrorCopyRecoverySuggestion but returns an error instead of panicking if CFErrorCopyRecoverySuggestion is unavailable at run time.

func TryCFLocaleCopyDisplayNameForPropertyValue

func TryCFLocaleCopyDisplayNameForPropertyValue(displayLocale CFLocaleRef, key CFLocaleKey, value CFStringRef) (CFStringRef, error)

TryCFLocaleCopyDisplayNameForPropertyValue is like CFLocaleCopyDisplayNameForPropertyValue but returns an error instead of panicking if CFLocaleCopyDisplayNameForPropertyValue is unavailable at run time.

func TryCFMessagePortGetName

func TryCFMessagePortGetName(ms CFMessagePortRef) (CFStringRef, error)

TryCFMessagePortGetName is like CFMessagePortGetName but returns an error instead of panicking if CFMessagePortGetName is unavailable at run time.

func TryCFNumberFormatterCreateStringWithNumber

func TryCFNumberFormatterCreateStringWithNumber(allocator CFAllocatorRef, formatter CFNumberFormatterRef, number CFNumberRef) (CFStringRef, error)

TryCFNumberFormatterCreateStringWithNumber is like CFNumberFormatterCreateStringWithNumber but returns an error instead of panicking if CFNumberFormatterCreateStringWithNumber is unavailable at run time.

func TryCFNumberFormatterCreateStringWithValue

func TryCFNumberFormatterCreateStringWithValue(allocator CFAllocatorRef, formatter CFNumberFormatterRef, numberType CFNumberType, valuePtr unsafe.Pointer) (CFStringRef, error)

TryCFNumberFormatterCreateStringWithValue is like CFNumberFormatterCreateStringWithValue but returns an error instead of panicking if CFNumberFormatterCreateStringWithValue is unavailable at run time.

func TryCFNumberFormatterGetFormat

func TryCFNumberFormatterGetFormat(formatter CFNumberFormatterRef) (CFStringRef, error)

TryCFNumberFormatterGetFormat is like CFNumberFormatterGetFormat but returns an error instead of panicking if CFNumberFormatterGetFormat is unavailable at run time.

func TryCFPlugInInstanceGetFactoryName

func TryCFPlugInInstanceGetFactoryName(instance CFPlugInInstanceRef) (CFStringRef, error)

TryCFPlugInInstanceGetFactoryName is like CFPlugInInstanceGetFactoryName but returns an error instead of panicking if CFPlugInInstanceGetFactoryName is unavailable at run time.

func TryCFStringConvertEncodingToIANACharSetName

func TryCFStringConvertEncodingToIANACharSetName(encoding CFStringEncoding) (CFStringRef, error)

TryCFStringConvertEncodingToIANACharSetName is like CFStringConvertEncodingToIANACharSetName but returns an error instead of panicking if CFStringConvertEncodingToIANACharSetName is unavailable at run time.

func TryCFStringCreateByCombiningStrings

func TryCFStringCreateByCombiningStrings(alloc CFAllocatorRef, theArray CFArrayRef, separatorString CFStringRef) (CFStringRef, error)

TryCFStringCreateByCombiningStrings is like CFStringCreateByCombiningStrings but returns an error instead of panicking if CFStringCreateByCombiningStrings is unavailable at run time.

func TryCFStringCreateCopy

func TryCFStringCreateCopy(alloc CFAllocatorRef, theString CFStringRef) (CFStringRef, error)

TryCFStringCreateCopy is like CFStringCreateCopy but returns an error instead of panicking if CFStringCreateCopy is unavailable at run time.

func TryCFStringCreateFromExternalRepresentation

func TryCFStringCreateFromExternalRepresentation(alloc CFAllocatorRef, data CFDataRef, encoding CFStringEncoding) (CFStringRef, error)

TryCFStringCreateFromExternalRepresentation is like CFStringCreateFromExternalRepresentation but returns an error instead of panicking if CFStringCreateFromExternalRepresentation is unavailable at run time.

func TryCFStringCreateStringWithValidatedFormat

func TryCFStringCreateStringWithValidatedFormat(alloc CFAllocatorRef, formatOptions CFDictionaryRef, validFormatSpecifiers CFStringRef, format CFStringRef, errorPtr *CFErrorRef) (CFStringRef, error)

TryCFStringCreateStringWithValidatedFormat is like CFStringCreateStringWithValidatedFormat but returns an error instead of panicking if CFStringCreateStringWithValidatedFormat is unavailable at run time.

func TryCFStringCreateStringWithValidatedFormatAndArguments

func TryCFStringCreateStringWithValidatedFormatAndArguments(alloc CFAllocatorRef, formatOptions CFDictionaryRef, validFormatSpecifiers CFStringRef, format CFStringRef, arguments kernel.Va_list, errorPtr *CFErrorRef) (CFStringRef, error)

TryCFStringCreateStringWithValidatedFormatAndArguments is like CFStringCreateStringWithValidatedFormatAndArguments but returns an error instead of panicking if CFStringCreateStringWithValidatedFormatAndArguments is unavailable at run time.

func TryCFStringCreateWithBytes

func TryCFStringCreateWithBytes(alloc CFAllocatorRef, bytes []byte, numBytes CFIndex, encoding CFStringEncoding, isExternalRepresentation bool) (CFStringRef, error)

TryCFStringCreateWithBytes is like CFStringCreateWithBytes but returns an error instead of panicking if CFStringCreateWithBytes is unavailable at run time.

func TryCFStringCreateWithBytesNoCopy

func TryCFStringCreateWithBytesNoCopy(alloc CFAllocatorRef, bytes []byte, numBytes CFIndex, encoding CFStringEncoding, isExternalRepresentation bool, contentsDeallocator CFAllocatorRef) (CFStringRef, error)

TryCFStringCreateWithBytesNoCopy is like CFStringCreateWithBytesNoCopy but returns an error instead of panicking if CFStringCreateWithBytesNoCopy is unavailable at run time.

func TryCFStringCreateWithCString

func TryCFStringCreateWithCString(alloc CFAllocatorRef, cStr string, encoding CFStringEncoding) (CFStringRef, error)

TryCFStringCreateWithCString is like CFStringCreateWithCString but returns an error instead of panicking if CFStringCreateWithCString is unavailable at run time.

func TryCFStringCreateWithCStringNoCopy

func TryCFStringCreateWithCStringNoCopy(alloc CFAllocatorRef, cStr string, encoding CFStringEncoding, contentsDeallocator CFAllocatorRef) (CFStringRef, error)

TryCFStringCreateWithCStringNoCopy is like CFStringCreateWithCStringNoCopy but returns an error instead of panicking if CFStringCreateWithCStringNoCopy is unavailable at run time.

func TryCFStringCreateWithCharacters

func TryCFStringCreateWithCharacters(alloc CFAllocatorRef, chars *uint16, numChars CFIndex) (CFStringRef, error)

TryCFStringCreateWithCharacters is like CFStringCreateWithCharacters but returns an error instead of panicking if CFStringCreateWithCharacters is unavailable at run time.

func TryCFStringCreateWithCharactersNoCopy

func TryCFStringCreateWithCharactersNoCopy(alloc CFAllocatorRef, chars *uint16, numChars CFIndex, contentsDeallocator CFAllocatorRef) (CFStringRef, error)

TryCFStringCreateWithCharactersNoCopy is like CFStringCreateWithCharactersNoCopy but returns an error instead of panicking if CFStringCreateWithCharactersNoCopy is unavailable at run time.

func TryCFStringCreateWithFileSystemRepresentation

func TryCFStringCreateWithFileSystemRepresentation(alloc CFAllocatorRef, buffer *byte) (CFStringRef, error)

TryCFStringCreateWithFileSystemRepresentation is like CFStringCreateWithFileSystemRepresentation but returns an error instead of panicking if CFStringCreateWithFileSystemRepresentation is unavailable at run time.

func TryCFStringCreateWithFormat

func TryCFStringCreateWithFormat(alloc CFAllocatorRef, formatOptions CFDictionaryRef, format CFStringRef) (CFStringRef, error)

TryCFStringCreateWithFormat is like CFStringCreateWithFormat but returns an error instead of panicking if CFStringCreateWithFormat is unavailable at run time.

func TryCFStringCreateWithFormatAndArguments

func TryCFStringCreateWithFormatAndArguments(alloc CFAllocatorRef, formatOptions CFDictionaryRef, format CFStringRef, arguments kernel.Va_list) (CFStringRef, error)

TryCFStringCreateWithFormatAndArguments is like CFStringCreateWithFormatAndArguments but returns an error instead of panicking if CFStringCreateWithFormatAndArguments is unavailable at run time.

func TryCFStringCreateWithPascalString

func TryCFStringCreateWithPascalString(alloc CFAllocatorRef, pStr unsafe.Pointer, encoding CFStringEncoding) (CFStringRef, error)

TryCFStringCreateWithPascalString is like CFStringCreateWithPascalString but returns an error instead of panicking if CFStringCreateWithPascalString is unavailable at run time.

func TryCFStringCreateWithPascalStringNoCopy

func TryCFStringCreateWithPascalStringNoCopy(alloc CFAllocatorRef, pStr unsafe.Pointer, encoding CFStringEncoding, contentsDeallocator CFAllocatorRef) (CFStringRef, error)

TryCFStringCreateWithPascalStringNoCopy is like CFStringCreateWithPascalStringNoCopy but returns an error instead of panicking if CFStringCreateWithPascalStringNoCopy is unavailable at run time.

func TryCFStringCreateWithSubstring

func TryCFStringCreateWithSubstring(alloc CFAllocatorRef, str CFStringRef, range_ CFRange) (CFStringRef, error)

TryCFStringCreateWithSubstring is like CFStringCreateWithSubstring but returns an error instead of panicking if CFStringCreateWithSubstring is unavailable at run time.

func TryCFStringGetNameOfEncoding

func TryCFStringGetNameOfEncoding(encoding CFStringEncoding) (CFStringRef, error)

TryCFStringGetNameOfEncoding is like CFStringGetNameOfEncoding but returns an error instead of panicking if CFStringGetNameOfEncoding is unavailable at run time.

func TryCFStringTokenizerCopyBestStringLanguage

func TryCFStringTokenizerCopyBestStringLanguage(string_ CFStringRef, range_ CFRange) (CFStringRef, error)

TryCFStringTokenizerCopyBestStringLanguage is like CFStringTokenizerCopyBestStringLanguage but returns an error instead of panicking if CFStringTokenizerCopyBestStringLanguage is unavailable at run time.

func TryCFTimeZoneCopyAbbreviation

func TryCFTimeZoneCopyAbbreviation(tz CFTimeZoneRef, at CFAbsoluteTime) (CFStringRef, error)

TryCFTimeZoneCopyAbbreviation is like CFTimeZoneCopyAbbreviation but returns an error instead of panicking if CFTimeZoneCopyAbbreviation is unavailable at run time.

func TryCFTimeZoneCopyLocalizedName

func TryCFTimeZoneCopyLocalizedName(tz CFTimeZoneRef, style CFTimeZoneNameStyle, locale CFLocaleRef) (CFStringRef, error)

TryCFTimeZoneCopyLocalizedName is like CFTimeZoneCopyLocalizedName but returns an error instead of panicking if CFTimeZoneCopyLocalizedName is unavailable at run time.

func TryCFTimeZoneGetName

func TryCFTimeZoneGetName(tz CFTimeZoneRef) (CFStringRef, error)

TryCFTimeZoneGetName is like CFTimeZoneGetName but returns an error instead of panicking if CFTimeZoneGetName is unavailable at run time.

func TryCFURLCopyFileSystemPath

func TryCFURLCopyFileSystemPath(anURL CFURLRef, pathStyle CFURLPathStyle) (CFStringRef, error)

TryCFURLCopyFileSystemPath is like CFURLCopyFileSystemPath but returns an error instead of panicking if CFURLCopyFileSystemPath is unavailable at run time.

func TryCFURLCopyFragment

func TryCFURLCopyFragment(anURL CFURLRef, charactersToLeaveEscaped CFStringRef) (CFStringRef, error)

TryCFURLCopyFragment is like CFURLCopyFragment but returns an error instead of panicking if CFURLCopyFragment is unavailable at run time.

func TryCFURLCopyHostName

func TryCFURLCopyHostName(anURL CFURLRef) (CFStringRef, error)

TryCFURLCopyHostName is like CFURLCopyHostName but returns an error instead of panicking if CFURLCopyHostName is unavailable at run time.

func TryCFURLCopyLastPathComponent

func TryCFURLCopyLastPathComponent(url CFURLRef) (CFStringRef, error)

TryCFURLCopyLastPathComponent is like CFURLCopyLastPathComponent but returns an error instead of panicking if CFURLCopyLastPathComponent is unavailable at run time.

func TryCFURLCopyNetLocation

func TryCFURLCopyNetLocation(anURL CFURLRef) (CFStringRef, error)

TryCFURLCopyNetLocation is like CFURLCopyNetLocation but returns an error instead of panicking if CFURLCopyNetLocation is unavailable at run time.

func TryCFURLCopyParameterString

func TryCFURLCopyParameterString(anURL CFURLRef, charactersToLeaveEscaped CFStringRef) (CFStringRef, error)

TryCFURLCopyParameterString is like CFURLCopyParameterString but returns an error instead of panicking if CFURLCopyParameterString is unavailable at run time.

func TryCFURLCopyPassword

func TryCFURLCopyPassword(anURL CFURLRef) (CFStringRef, error)

TryCFURLCopyPassword is like CFURLCopyPassword but returns an error instead of panicking if CFURLCopyPassword is unavailable at run time.

func TryCFURLCopyPath

func TryCFURLCopyPath(anURL CFURLRef) (CFStringRef, error)

TryCFURLCopyPath is like CFURLCopyPath but returns an error instead of panicking if CFURLCopyPath is unavailable at run time.

func TryCFURLCopyPathExtension

func TryCFURLCopyPathExtension(url CFURLRef) (CFStringRef, error)

TryCFURLCopyPathExtension is like CFURLCopyPathExtension but returns an error instead of panicking if CFURLCopyPathExtension is unavailable at run time.

func TryCFURLCopyQueryString

func TryCFURLCopyQueryString(anURL CFURLRef, charactersToLeaveEscaped CFStringRef) (CFStringRef, error)

TryCFURLCopyQueryString is like CFURLCopyQueryString but returns an error instead of panicking if CFURLCopyQueryString is unavailable at run time.

func TryCFURLCopyResourceSpecifier

func TryCFURLCopyResourceSpecifier(anURL CFURLRef) (CFStringRef, error)

TryCFURLCopyResourceSpecifier is like CFURLCopyResourceSpecifier but returns an error instead of panicking if CFURLCopyResourceSpecifier is unavailable at run time.

func TryCFURLCopyScheme

func TryCFURLCopyScheme(anURL CFURLRef) (CFStringRef, error)

TryCFURLCopyScheme is like CFURLCopyScheme but returns an error instead of panicking if CFURLCopyScheme is unavailable at run time.

func TryCFURLCopyStrictPath

func TryCFURLCopyStrictPath(anURL CFURLRef, isAbsolute *bool) (CFStringRef, error)

TryCFURLCopyStrictPath is like CFURLCopyStrictPath but returns an error instead of panicking if CFURLCopyStrictPath is unavailable at run time.

func TryCFURLCopyUserName

func TryCFURLCopyUserName(anURL CFURLRef) (CFStringRef, error)

TryCFURLCopyUserName is like CFURLCopyUserName but returns an error instead of panicking if CFURLCopyUserName is unavailable at run time.

func TryCFURLCreateStringByAddingPercentEscapes

func TryCFURLCreateStringByAddingPercentEscapes(allocator CFAllocatorRef, originalString CFStringRef, charactersToLeaveUnescaped CFStringRef, legalURLCharactersToBeEscaped CFStringRef, encoding CFStringEncoding) (CFStringRef, error)

TryCFURLCreateStringByAddingPercentEscapes is like CFURLCreateStringByAddingPercentEscapes but returns an error instead of panicking if CFURLCreateStringByAddingPercentEscapes is unavailable at run time.

func TryCFURLCreateStringByReplacingPercentEscapes

func TryCFURLCreateStringByReplacingPercentEscapes(allocator CFAllocatorRef, originalString CFStringRef, charactersToLeaveEscaped CFStringRef) (CFStringRef, error)

TryCFURLCreateStringByReplacingPercentEscapes is like CFURLCreateStringByReplacingPercentEscapes but returns an error instead of panicking if CFURLCreateStringByReplacingPercentEscapes is unavailable at run time.

func TryCFURLCreateStringByReplacingPercentEscapesUsingEncoding

func TryCFURLCreateStringByReplacingPercentEscapesUsingEncoding(allocator CFAllocatorRef, origString CFStringRef, charsToLeaveEscaped CFStringRef, encoding CFStringEncoding) (CFStringRef, error)

TryCFURLCreateStringByReplacingPercentEscapesUsingEncoding is like CFURLCreateStringByReplacingPercentEscapesUsingEncoding but returns an error instead of panicking if CFURLCreateStringByReplacingPercentEscapesUsingEncoding is unavailable at run time.

func TryCFURLGetString

func TryCFURLGetString(anURL CFURLRef) (CFStringRef, error)

TryCFURLGetString is like CFURLGetString but returns an error instead of panicking if CFURLGetString is unavailable at run time.

func TryCFUUIDCreateString

func TryCFUUIDCreateString(alloc CFAllocatorRef, uuid CFUUIDRef) (CFStringRef, error)

TryCFUUIDCreateString is like CFUUIDCreateString but returns an error instead of panicking if CFUUIDCreateString is unavailable at run time.

func TryCFUserNotificationGetResponseValue

func TryCFUserNotificationGetResponseValue(userNotification CFUserNotificationRef, key CFStringRef, idx CFIndex) (CFStringRef, error)

TryCFUserNotificationGetResponseValue is like CFUserNotificationGetResponseValue but returns an error instead of panicking if CFUserNotificationGetResponseValue is unavailable at run time.

func TryCFXMLCreateStringByEscapingEntities

func TryCFXMLCreateStringByEscapingEntities(allocator CFAllocatorRef, string_ CFStringRef, entitiesDictionary CFDictionaryRef) (CFStringRef, error)

TryCFXMLCreateStringByEscapingEntities is like CFXMLCreateStringByEscapingEntities but returns an error instead of panicking if CFXMLCreateStringByEscapingEntities is unavailable at run time.

func TryCFXMLCreateStringByUnescapingEntities

func TryCFXMLCreateStringByUnescapingEntities(allocator CFAllocatorRef, string_ CFStringRef, entitiesDictionary CFDictionaryRef) (CFStringRef, error)

TryCFXMLCreateStringByUnescapingEntities is like CFXMLCreateStringByUnescapingEntities but returns an error instead of panicking if CFXMLCreateStringByUnescapingEntities is unavailable at run time.

func TryCFXMLNodeGetString

func TryCFXMLNodeGetString(node unsafe.Pointer) (CFStringRef, error)

TryCFXMLNodeGetString is like CFXMLNodeGetString but returns an error instead of panicking if CFXMLNodeGetString is unavailable at run time.

func TryCFXMLParserCopyErrorDescription

func TryCFXMLParserCopyErrorDescription(parser CFXMLParserRef) (CFStringRef, error)

TryCFXMLParserCopyErrorDescription is like CFXMLParserCopyErrorDescription but returns an error instead of panicking if CFXMLParserCopyErrorDescription is unavailable at run time.

type CFStringTokenizerRef

type CFStringTokenizerRef uintptr

See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizer

func CFStringTokenizerCreate

func CFStringTokenizerCreate(alloc CFAllocatorRef, string_ CFStringRef, range_ CFRange, options CFOptionFlags, locale CFLocaleRef) CFStringTokenizerRef

CFStringTokenizerCreate returns a tokenizer for a given string.

It panics if CFStringTokenizerCreate is unavailable at run time; use TryCFStringTokenizerCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerCreate(_:_:_:_:_:)

func TryCFStringTokenizerCreate

func TryCFStringTokenizerCreate(alloc CFAllocatorRef, string_ CFStringRef, range_ CFRange, options CFOptionFlags, locale CFLocaleRef) (CFStringTokenizerRef, error)

TryCFStringTokenizerCreate is like CFStringTokenizerCreate but returns an error instead of panicking if CFStringTokenizerCreate is unavailable at run time.

type CFStringTokenizerTokenType

type CFStringTokenizerTokenType uint

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
	// KCFStringTokenizerTokenNone: Has no token.
	KCFStringTokenizerTokenNone CFStringTokenizerTokenType = 0
	// 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.

It panics if CFStringTokenizerAdvanceToNextToken is unavailable at run time; use TryCFStringTokenizerAdvanceToNextToken to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerAdvanceToNextToken(_:)

func CFStringTokenizerGoToTokenAtIndex

func CFStringTokenizerGoToTokenAtIndex(tokenizer CFStringTokenizerRef, index CFIndex) CFStringTokenizerTokenType

CFStringTokenizerGoToTokenAtIndex finds a token that includes the character at a given index, and set it as the current token.

It panics if CFStringTokenizerGoToTokenAtIndex is unavailable at run time; use TryCFStringTokenizerGoToTokenAtIndex to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerGoToTokenAtIndex(_:_:)

func TryCFStringTokenizerAdvanceToNextToken

func TryCFStringTokenizerAdvanceToNextToken(tokenizer CFStringTokenizerRef) (CFStringTokenizerTokenType, error)

TryCFStringTokenizerAdvanceToNextToken is like CFStringTokenizerAdvanceToNextToken but returns an error instead of panicking if CFStringTokenizerAdvanceToNextToken is unavailable at run time.

func TryCFStringTokenizerGoToTokenAtIndex

func TryCFStringTokenizerGoToTokenAtIndex(tokenizer CFStringTokenizerRef, index CFIndex) (CFStringTokenizerTokenType, error)

TryCFStringTokenizerGoToTokenAtIndex is like CFStringTokenizerGoToTokenAtIndex but returns an error instead of panicking if CFStringTokenizerGoToTokenAtIndex is unavailable at run time.

func (CFStringTokenizerTokenType) 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

func CFDateGetTimeIntervalSinceDate

func CFDateGetTimeIntervalSinceDate(theDate CFDateRef, otherDate CFDateRef) CFTimeInterval

CFDateGetTimeIntervalSinceDate returns the number of elapsed seconds between the given [CFDate] objects.

It panics if CFDateGetTimeIntervalSinceDate is unavailable at run time; use TryCFDateGetTimeIntervalSinceDate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDateGetTimeIntervalSinceDate(_:_:)

func CFRunLoopTimerGetInterval

func CFRunLoopTimerGetInterval(timer CFRunLoopTimerRef) CFTimeInterval

CFRunLoopTimerGetInterval returns the firing interval of a repeating CFRunLoopTimer object.

It panics if CFRunLoopTimerGetInterval is unavailable at run time; use TryCFRunLoopTimerGetInterval to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerGetInterval(_:)

func CFRunLoopTimerGetTolerance

func CFRunLoopTimerGetTolerance(timer CFRunLoopTimerRef) CFTimeInterval

CFRunLoopTimerGetTolerance.

It panics if CFRunLoopTimerGetTolerance is unavailable at run time; use TryCFRunLoopTimerGetTolerance to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerGetTolerance(_:)

func CFTimeZoneGetDaylightSavingTimeOffset

func CFTimeZoneGetDaylightSavingTimeOffset(tz CFTimeZoneRef, at CFAbsoluteTime) CFTimeInterval

CFTimeZoneGetDaylightSavingTimeOffset returns the daylight saving time offset for a time zone at a given time.

It panics if CFTimeZoneGetDaylightSavingTimeOffset is unavailable at run time; use TryCFTimeZoneGetDaylightSavingTimeOffset to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneGetDaylightSavingTimeOffset(_:_:)

func CFTimeZoneGetSecondsFromGMT

func CFTimeZoneGetSecondsFromGMT(tz CFTimeZoneRef, at CFAbsoluteTime) CFTimeInterval

CFTimeZoneGetSecondsFromGMT returns the difference in seconds between the receiver and Greenwich Mean Time (GMT) at the specified date.

It panics if CFTimeZoneGetSecondsFromGMT is unavailable at run time; use TryCFTimeZoneGetSecondsFromGMT to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneGetSecondsFromGMT(_:_:)

func TryCFDateGetTimeIntervalSinceDate

func TryCFDateGetTimeIntervalSinceDate(theDate CFDateRef, otherDate CFDateRef) (CFTimeInterval, error)

TryCFDateGetTimeIntervalSinceDate is like CFDateGetTimeIntervalSinceDate but returns an error instead of panicking if CFDateGetTimeIntervalSinceDate is unavailable at run time.

func TryCFRunLoopTimerGetInterval

func TryCFRunLoopTimerGetInterval(timer CFRunLoopTimerRef) (CFTimeInterval, error)

TryCFRunLoopTimerGetInterval is like CFRunLoopTimerGetInterval but returns an error instead of panicking if CFRunLoopTimerGetInterval is unavailable at run time.

func TryCFRunLoopTimerGetTolerance

func TryCFRunLoopTimerGetTolerance(timer CFRunLoopTimerRef) (CFTimeInterval, error)

TryCFRunLoopTimerGetTolerance is like CFRunLoopTimerGetTolerance but returns an error instead of panicking if CFRunLoopTimerGetTolerance is unavailable at run time.

func TryCFTimeZoneGetDaylightSavingTimeOffset

func TryCFTimeZoneGetDaylightSavingTimeOffset(tz CFTimeZoneRef, at CFAbsoluteTime) (CFTimeInterval, error)

TryCFTimeZoneGetDaylightSavingTimeOffset is like CFTimeZoneGetDaylightSavingTimeOffset but returns an error instead of panicking if CFTimeZoneGetDaylightSavingTimeOffset is unavailable at run time.

func TryCFTimeZoneGetSecondsFromGMT

func TryCFTimeZoneGetSecondsFromGMT(tz CFTimeZoneRef, at CFAbsoluteTime) (CFTimeInterval, error)

TryCFTimeZoneGetSecondsFromGMT is like CFTimeZoneGetSecondsFromGMT but returns an error instead of panicking if CFTimeZoneGetSecondsFromGMT is unavailable at run time.

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.

It panics if CFCalendarCopyTimeZone is unavailable at run time; use TryCFCalendarCopyTimeZone to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarCopyTimeZone(_:)

func CFTimeZoneCopyDefault

func CFTimeZoneCopyDefault() CFTimeZoneRef

CFTimeZoneCopyDefault returns the default time zone set for your application.

It panics if CFTimeZoneCopyDefault is unavailable at run time; use TryCFTimeZoneCopyDefault to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneCopyDefault()

func CFTimeZoneCopySystem

func CFTimeZoneCopySystem() CFTimeZoneRef

CFTimeZoneCopySystem returns the time zone currently used by the system.

It panics if CFTimeZoneCopySystem is unavailable at run time; use TryCFTimeZoneCopySystem to get an error instead.

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.

It panics if CFTimeZoneCreate is unavailable at run time; use TryCFTimeZoneCreate to get an error instead.

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.

It panics if CFTimeZoneCreateWithName is unavailable at run time; use TryCFTimeZoneCreateWithName to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneCreateWithName(_:_:_:)

func CFTimeZoneCreateWithTimeIntervalFromGMT

func CFTimeZoneCreateWithTimeIntervalFromGMT(allocator CFAllocatorRef, ti CFTimeInterval) CFTimeZoneRef

CFTimeZoneCreateWithTimeIntervalFromGMT returns a time zone object for the specified time interval offset from Greenwich Mean Time (GMT).

It panics if CFTimeZoneCreateWithTimeIntervalFromGMT is unavailable at run time; use TryCFTimeZoneCreateWithTimeIntervalFromGMT to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneCreateWithTimeIntervalFromGMT(_:_:)

func TryCFCalendarCopyTimeZone

func TryCFCalendarCopyTimeZone(calendar CFCalendarRef) (CFTimeZoneRef, error)

TryCFCalendarCopyTimeZone is like CFCalendarCopyTimeZone but returns an error instead of panicking if CFCalendarCopyTimeZone is unavailable at run time.

func TryCFTimeZoneCopyDefault

func TryCFTimeZoneCopyDefault() (CFTimeZoneRef, error)

TryCFTimeZoneCopyDefault is like CFTimeZoneCopyDefault but returns an error instead of panicking if CFTimeZoneCopyDefault is unavailable at run time.

func TryCFTimeZoneCopySystem

func TryCFTimeZoneCopySystem() (CFTimeZoneRef, error)

TryCFTimeZoneCopySystem is like CFTimeZoneCopySystem but returns an error instead of panicking if CFTimeZoneCopySystem is unavailable at run time.

func TryCFTimeZoneCreate

func TryCFTimeZoneCreate(allocator CFAllocatorRef, name CFStringRef, data CFDataRef) (CFTimeZoneRef, error)

TryCFTimeZoneCreate is like CFTimeZoneCreate but returns an error instead of panicking if CFTimeZoneCreate is unavailable at run time.

func TryCFTimeZoneCreateWithName

func TryCFTimeZoneCreateWithName(allocator CFAllocatorRef, name CFStringRef, tryAbbrev bool) (CFTimeZoneRef, error)

TryCFTimeZoneCreateWithName is like CFTimeZoneCreateWithName but returns an error instead of panicking if CFTimeZoneCreateWithName is unavailable at run time.

func TryCFTimeZoneCreateWithTimeIntervalFromGMT

func TryCFTimeZoneCreateWithTimeIntervalFromGMT(allocator CFAllocatorRef, ti CFTimeInterval) (CFTimeZoneRef, error)

TryCFTimeZoneCreateWithTimeIntervalFromGMT is like CFTimeZoneCreateWithTimeIntervalFromGMT but returns an error instead of panicking if CFTimeZoneCreateWithTimeIntervalFromGMT is unavailable at run time.

type CFTreeApplierFunction

type CFTreeApplierFunction = func(value unsafe.Pointer, context unsafe.Pointer)

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 CFIndex        // 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.
	// C: CFTreeRetainCallBack (const void *(*)(const void *))
	Retain uintptr // 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].
	// C: CFTreeReleaseCallBack (void (*)(const void *))
	Release uintptr // 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].
	// C: CFTreeCopyDescriptionCallBack (const struct __CFString *(*)(const void *))
	CopyDescription uintptr // 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

type CFTreeCopyDescriptionCallBack = func(info unsafe.Pointer) CFStringRef

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.

It panics if CFTreeCreate is unavailable at run time; use TryCFTreeCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeCreate(_:_:)

func CFTreeFindRoot

func CFTreeFindRoot(tree CFTreeRef) CFTreeRef

CFTreeFindRoot returns the root tree of a given tree.

It panics if CFTreeFindRoot is unavailable at run time; use TryCFTreeFindRoot to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeFindRoot(_:)

func CFTreeGetChildAtIndex

func CFTreeGetChildAtIndex(tree CFTreeRef, idx CFIndex) CFTreeRef

CFTreeGetChildAtIndex returns the child of a tree at the specified index.

It panics if CFTreeGetChildAtIndex is unavailable at run time; use TryCFTreeGetChildAtIndex to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetChildAtIndex(_:_:)

func CFTreeGetFirstChild

func CFTreeGetFirstChild(tree CFTreeRef) CFTreeRef

CFTreeGetFirstChild returns the first child of a tree.

It panics if CFTreeGetFirstChild is unavailable at run time; use TryCFTreeGetFirstChild to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetFirstChild(_:)

func CFTreeGetNextSibling

func CFTreeGetNextSibling(tree CFTreeRef) CFTreeRef

CFTreeGetNextSibling returns the next sibling, adjacent to a given tree, in the parent’s children list.

It panics if CFTreeGetNextSibling is unavailable at run time; use TryCFTreeGetNextSibling to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetNextSibling(_:)

func CFTreeGetParent

func CFTreeGetParent(tree CFTreeRef) CFTreeRef

CFTreeGetParent returns the parent of a given tree.

It panics if CFTreeGetParent is unavailable at run time; use TryCFTreeGetParent to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetParent(_:)

func TryCFTreeCreate

func TryCFTreeCreate(allocator CFAllocatorRef, context *CFTreeContext) (CFTreeRef, error)

TryCFTreeCreate is like CFTreeCreate but returns an error instead of panicking if CFTreeCreate is unavailable at run time.

func TryCFTreeFindRoot

func TryCFTreeFindRoot(tree CFTreeRef) (CFTreeRef, error)

TryCFTreeFindRoot is like CFTreeFindRoot but returns an error instead of panicking if CFTreeFindRoot is unavailable at run time.

func TryCFTreeGetChildAtIndex

func TryCFTreeGetChildAtIndex(tree CFTreeRef, idx CFIndex) (CFTreeRef, error)

TryCFTreeGetChildAtIndex is like CFTreeGetChildAtIndex but returns an error instead of panicking if CFTreeGetChildAtIndex is unavailable at run time.

func TryCFTreeGetFirstChild

func TryCFTreeGetFirstChild(tree CFTreeRef) (CFTreeRef, error)

TryCFTreeGetFirstChild is like CFTreeGetFirstChild but returns an error instead of panicking if CFTreeGetFirstChild is unavailable at run time.

func TryCFTreeGetNextSibling

func TryCFTreeGetNextSibling(tree CFTreeRef) (CFTreeRef, error)

TryCFTreeGetNextSibling is like CFTreeGetNextSibling but returns an error instead of panicking if CFTreeGetNextSibling is unavailable at run time.

func TryCFTreeGetParent

func TryCFTreeGetParent(tree CFTreeRef) (CFTreeRef, error)

TryCFTreeGetParent is like CFTreeGetParent but returns an error instead of panicking if CFTreeGetParent is unavailable at run time.

type CFTreeReleaseCallBack

type CFTreeReleaseCallBack = func(info unsafe.Pointer)

CFTreeReleaseCallBack is callback function used to release a previously retained program-defined information pointer.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeReleaseCallBack

type CFTreeRetainCallBack

type CFTreeRetainCallBack = func(info unsafe.Pointer) unsafe.Pointer

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

func CFAllocatorGetTypeID

func CFAllocatorGetTypeID() CFTypeID

CFAllocatorGetTypeID returns the type identifier for the CFAllocator opaque type.

It panics if CFAllocatorGetTypeID is unavailable at run time; use TryCFAllocatorGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAllocatorGetTypeID()

func CFArrayGetTypeID

func CFArrayGetTypeID() CFTypeID

CFArrayGetTypeID returns the type identifier for the CFArray opaque type.

It panics if CFArrayGetTypeID is unavailable at run time; use TryCFArrayGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFArrayGetTypeID()

func CFAttributedStringGetTypeID

func CFAttributedStringGetTypeID() CFTypeID

CFAttributedStringGetTypeID returns the type identifier for the CFAttributedString opaque type.

It panics if CFAttributedStringGetTypeID is unavailable at run time; use TryCFAttributedStringGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetTypeID()

func CFBagGetTypeID

func CFBagGetTypeID() CFTypeID

CFBagGetTypeID returns the type identifier for the CFBag opaque type.

It panics if CFBagGetTypeID is unavailable at run time; use TryCFBagGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBagGetTypeID()

func CFBinaryHeapGetTypeID

func CFBinaryHeapGetTypeID() CFTypeID

CFBinaryHeapGetTypeID returns the type identifier of the [CFBinaryHeap] opaque type.

It panics if CFBinaryHeapGetTypeID is unavailable at run time; use TryCFBinaryHeapGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBinaryHeapGetTypeID()

func CFBitVectorGetTypeID

func CFBitVectorGetTypeID() CFTypeID

CFBitVectorGetTypeID returns the type identifier for the CFBitVector opaque type.

It panics if CFBitVectorGetTypeID is unavailable at run time; use TryCFBitVectorGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBitVectorGetTypeID()

func CFBooleanGetTypeID

func CFBooleanGetTypeID() CFTypeID

CFBooleanGetTypeID returns the Core Foundation type identifier for the CFBoolean opaque type.

It panics if CFBooleanGetTypeID is unavailable at run time; use TryCFBooleanGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBooleanGetTypeID()

func CFBundleGetTypeID

func CFBundleGetTypeID() CFTypeID

CFBundleGetTypeID returns the type identifier for the CFBundle opaque type.

It panics if CFBundleGetTypeID is unavailable at run time; use TryCFBundleGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleGetTypeID()

func CFCalendarGetTypeID

func CFCalendarGetTypeID() CFTypeID

CFCalendarGetTypeID returns the type identifier for the CFCalendar opaque type.

It panics if CFCalendarGetTypeID is unavailable at run time; use TryCFCalendarGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCalendarGetTypeID()

func CFCharacterSetGetTypeID

func CFCharacterSetGetTypeID() CFTypeID

CFCharacterSetGetTypeID returns the type identifier of the CFCharacterSet opaque type.

It panics if CFCharacterSetGetTypeID is unavailable at run time; use TryCFCharacterSetGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFCharacterSetGetTypeID()

func CFDataGetTypeID

func CFDataGetTypeID() CFTypeID

CFDataGetTypeID returns the type identifier for the CFData opaque type.

It panics if CFDataGetTypeID is unavailable at run time; use TryCFDataGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDataGetTypeID()

func CFDateFormatterGetTypeID

func CFDateFormatterGetTypeID() CFTypeID

CFDateFormatterGetTypeID returns the type identifier for CFDateFormatter.

It panics if CFDateFormatterGetTypeID is unavailable at run time; use TryCFDateFormatterGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDateFormatterGetTypeID()

func CFDateGetTypeID

func CFDateGetTypeID() CFTypeID

CFDateGetTypeID returns the type identifier for the [CFDate] opaque type.

It panics if CFDateGetTypeID is unavailable at run time; use TryCFDateGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDateGetTypeID()

func CFDictionaryGetTypeID

func CFDictionaryGetTypeID() CFTypeID

CFDictionaryGetTypeID returns the type identifier for the CFDictionary opaque type.

It panics if CFDictionaryGetTypeID is unavailable at run time; use TryCFDictionaryGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFDictionaryGetTypeID()

func CFErrorGetTypeID

func CFErrorGetTypeID() CFTypeID

CFErrorGetTypeID returns the type identifier for the CFError opaque type.

It panics if CFErrorGetTypeID is unavailable at run time; use TryCFErrorGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFErrorGetTypeID()

func CFFileDescriptorGetTypeID

func CFFileDescriptorGetTypeID() CFTypeID

CFFileDescriptorGetTypeID returns the type identifier for the CFFileDescriptor opaque type.

It panics if CFFileDescriptorGetTypeID is unavailable at run time; use TryCFFileDescriptorGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileDescriptorGetTypeID()

func CFFileSecurityGetTypeID

func CFFileSecurityGetTypeID() CFTypeID

CFFileSecurityGetTypeID returns the type identifier for the CFFileSecurityRef opaque type.

It panics if CFFileSecurityGetTypeID is unavailable at run time; use TryCFFileSecurityGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFFileSecurityGetTypeID()

func CFGetTypeID

func CFGetTypeID(cf CFTypeRef) CFTypeID

CFGetTypeID returns the unique identifier of an opaque type to which a Core Foundation object belongs.

It panics if CFGetTypeID is unavailable at run time; use TryCFGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFGetTypeID(_:)

func CFLocaleGetTypeID

func CFLocaleGetTypeID() CFTypeID

CFLocaleGetTypeID returns the type identifier for the CFLocale opaque type.

It panics if CFLocaleGetTypeID is unavailable at run time; use TryCFLocaleGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleGetTypeID()

func CFMachPortGetTypeID

func CFMachPortGetTypeID() CFTypeID

CFMachPortGetTypeID returns the type identifier for the CFMachPort opaque type.

It panics if CFMachPortGetTypeID is unavailable at run time; use TryCFMachPortGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFMachPortGetTypeID()

func CFMessagePortGetTypeID

func CFMessagePortGetTypeID() CFTypeID

CFMessagePortGetTypeID returns the type identifier for the CFMessagePort opaque type.

It panics if CFMessagePortGetTypeID is unavailable at run time; use TryCFMessagePortGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFMessagePortGetTypeID()

func CFNotificationCenterGetTypeID

func CFNotificationCenterGetTypeID() CFTypeID

CFNotificationCenterGetTypeID returns the type identifier for the CFNotificationCenter opaque type.

It panics if CFNotificationCenterGetTypeID is unavailable at run time; use TryCFNotificationCenterGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNotificationCenterGetTypeID()

func CFNullGetTypeID

func CFNullGetTypeID() CFTypeID

CFNullGetTypeID returns the type identifier for the CFNull opaque type.

It panics if CFNullGetTypeID is unavailable at run time; use TryCFNullGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNullGetTypeID()

func CFNumberFormatterGetTypeID

func CFNumberFormatterGetTypeID() CFTypeID

CFNumberFormatterGetTypeID returns the type identifier for the [CFNumberFormatter] opaque type.

It panics if CFNumberFormatterGetTypeID is unavailable at run time; use TryCFNumberFormatterGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberFormatterGetTypeID()

func CFNumberGetTypeID

func CFNumberGetTypeID() CFTypeID

CFNumberGetTypeID returns the type identifier for the CFNumber opaque type.

It panics if CFNumberGetTypeID is unavailable at run time; use TryCFNumberGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFNumberGetTypeID()

func CFPlugInGetTypeID

func CFPlugInGetTypeID() CFTypeID

CFPlugInGetTypeID returns the type identifier for the [CFPlugIn] opaque type.

It panics if CFPlugInGetTypeID is unavailable at run time; use TryCFPlugInGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInGetTypeID()

func CFPlugInInstanceGetTypeID

func CFPlugInInstanceGetTypeID() CFTypeID

CFPlugInInstanceGetTypeID not recommended.

It panics if CFPlugInInstanceGetTypeID is unavailable at run time; use TryCFPlugInInstanceGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFPlugInInstanceGetTypeID()

func CFReadStreamGetTypeID

func CFReadStreamGetTypeID() CFTypeID

CFReadStreamGetTypeID returns the type identifier the [CFReadStream] opaque type.

It panics if CFReadStreamGetTypeID is unavailable at run time; use TryCFReadStreamGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamGetTypeID()

func CFRunLoopGetTypeID

func CFRunLoopGetTypeID() CFTypeID

CFRunLoopGetTypeID returns the type identifier for the CFRunLoop opaque type.

It panics if CFRunLoopGetTypeID is unavailable at run time; use TryCFRunLoopGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopGetTypeID()

func CFRunLoopObserverGetTypeID

func CFRunLoopObserverGetTypeID() CFTypeID

CFRunLoopObserverGetTypeID returns the type identifier for the CFRunLoopObserver opaque type.

It panics if CFRunLoopObserverGetTypeID is unavailable at run time; use TryCFRunLoopObserverGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopObserverGetTypeID()

func CFRunLoopSourceGetTypeID

func CFRunLoopSourceGetTypeID() CFTypeID

CFRunLoopSourceGetTypeID returns the type identifier of the CFRunLoopSource opaque type.

It panics if CFRunLoopSourceGetTypeID is unavailable at run time; use TryCFRunLoopSourceGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopSourceGetTypeID()

func CFRunLoopTimerGetTypeID

func CFRunLoopTimerGetTypeID() CFTypeID

CFRunLoopTimerGetTypeID returns the type identifier of the CFRunLoopTimer opaque type.

It panics if CFRunLoopTimerGetTypeID is unavailable at run time; use TryCFRunLoopTimerGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRunLoopTimerGetTypeID()

func CFSetGetTypeID

func CFSetGetTypeID() CFTypeID

CFSetGetTypeID returns the type identifier for the CFSet type.

It panics if CFSetGetTypeID is unavailable at run time; use TryCFSetGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSetGetTypeID()

func CFSocketGetTypeID

func CFSocketGetTypeID() CFTypeID

CFSocketGetTypeID returns the type identifier for the CFSocket opaque type.

It panics if CFSocketGetTypeID is unavailable at run time; use TryCFSocketGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFSocketGetTypeID()

func CFStringGetTypeID

func CFStringGetTypeID() CFTypeID

CFStringGetTypeID returns the type identifier for the CFString opaque type.

It panics if CFStringGetTypeID is unavailable at run time; use TryCFStringGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringGetTypeID()

func CFStringTokenizerGetTypeID

func CFStringTokenizerGetTypeID() CFTypeID

CFStringTokenizerGetTypeID returns the type ID for CFStringTokenizer.

It panics if CFStringTokenizerGetTypeID is unavailable at run time; use TryCFStringTokenizerGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerGetTypeID()

func CFTimeZoneGetTypeID

func CFTimeZoneGetTypeID() CFTypeID

CFTimeZoneGetTypeID returns the type identifier for the CFTimeZone opaque type.

It panics if CFTimeZoneGetTypeID is unavailable at run time; use TryCFTimeZoneGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTimeZoneGetTypeID()

func CFTreeGetTypeID

func CFTreeGetTypeID() CFTypeID

CFTreeGetTypeID returns the type identifier of the CFTree opaque type.

It panics if CFTreeGetTypeID is unavailable at run time; use TryCFTreeGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFTreeGetTypeID()

func CFURLEnumeratorGetTypeID

func CFURLEnumeratorGetTypeID() CFTypeID

CFURLEnumeratorGetTypeID returns the opaque type identifier for the CFURLEnumerator opaque type.

It panics if CFURLEnumeratorGetTypeID is unavailable at run time; use TryCFURLEnumeratorGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorGetTypeID()

func CFURLGetTypeID

func CFURLGetTypeID() CFTypeID

CFURLGetTypeID returns the type identifier for the [CFURL] opaque type.

It panics if CFURLGetTypeID is unavailable at run time; use TryCFURLGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLGetTypeID()

func CFUUIDGetTypeID

func CFUUIDGetTypeID() CFTypeID

CFUUIDGetTypeID returns the type identifier for all CFUUID objects.

It panics if CFUUIDGetTypeID is unavailable at run time; use TryCFUUIDGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUUIDGetTypeID()

func CFUserNotificationGetTypeID

func CFUserNotificationGetTypeID() CFTypeID

CFUserNotificationGetTypeID returns the type identifier for the [CFUserNotification] opaque type.

It panics if CFUserNotificationGetTypeID is unavailable at run time; use TryCFUserNotificationGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationGetTypeID()

func CFWriteStreamGetTypeID

func CFWriteStreamGetTypeID() CFTypeID

CFWriteStreamGetTypeID returns the type identifier of all CFWriteStream objects.

It panics if CFWriteStreamGetTypeID is unavailable at run time; use TryCFWriteStreamGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamGetTypeID()

func CFXMLNodeGetTypeID deprecated

func CFXMLNodeGetTypeID() CFTypeID

CFXMLNodeGetTypeID returns the type identifier code for the CFXMLNode opaque type.

It panics if CFXMLNodeGetTypeID is unavailable at run time; use TryCFXMLNodeGetTypeID to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLNodeGetTypeID

func CFXMLParserGetTypeID deprecated

func CFXMLParserGetTypeID() CFTypeID

CFXMLParserGetTypeID returns the type identifier for the CFXMLParser opaque type.

It panics if CFXMLParserGetTypeID is unavailable at run time; use TryCFXMLParserGetTypeID to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetTypeID

func TryCFAllocatorGetTypeID

func TryCFAllocatorGetTypeID() (CFTypeID, error)

TryCFAllocatorGetTypeID is like CFAllocatorGetTypeID but returns an error instead of panicking if CFAllocatorGetTypeID is unavailable at run time.

func TryCFArrayGetTypeID

func TryCFArrayGetTypeID() (CFTypeID, error)

TryCFArrayGetTypeID is like CFArrayGetTypeID but returns an error instead of panicking if CFArrayGetTypeID is unavailable at run time.

func TryCFAttributedStringGetTypeID

func TryCFAttributedStringGetTypeID() (CFTypeID, error)

TryCFAttributedStringGetTypeID is like CFAttributedStringGetTypeID but returns an error instead of panicking if CFAttributedStringGetTypeID is unavailable at run time.

func TryCFBagGetTypeID

func TryCFBagGetTypeID() (CFTypeID, error)

TryCFBagGetTypeID is like CFBagGetTypeID but returns an error instead of panicking if CFBagGetTypeID is unavailable at run time.

func TryCFBinaryHeapGetTypeID

func TryCFBinaryHeapGetTypeID() (CFTypeID, error)

TryCFBinaryHeapGetTypeID is like CFBinaryHeapGetTypeID but returns an error instead of panicking if CFBinaryHeapGetTypeID is unavailable at run time.

func TryCFBitVectorGetTypeID

func TryCFBitVectorGetTypeID() (CFTypeID, error)

TryCFBitVectorGetTypeID is like CFBitVectorGetTypeID but returns an error instead of panicking if CFBitVectorGetTypeID is unavailable at run time.

func TryCFBooleanGetTypeID

func TryCFBooleanGetTypeID() (CFTypeID, error)

TryCFBooleanGetTypeID is like CFBooleanGetTypeID but returns an error instead of panicking if CFBooleanGetTypeID is unavailable at run time.

func TryCFBundleGetTypeID

func TryCFBundleGetTypeID() (CFTypeID, error)

TryCFBundleGetTypeID is like CFBundleGetTypeID but returns an error instead of panicking if CFBundleGetTypeID is unavailable at run time.

func TryCFCalendarGetTypeID

func TryCFCalendarGetTypeID() (CFTypeID, error)

TryCFCalendarGetTypeID is like CFCalendarGetTypeID but returns an error instead of panicking if CFCalendarGetTypeID is unavailable at run time.

func TryCFCharacterSetGetTypeID

func TryCFCharacterSetGetTypeID() (CFTypeID, error)

TryCFCharacterSetGetTypeID is like CFCharacterSetGetTypeID but returns an error instead of panicking if CFCharacterSetGetTypeID is unavailable at run time.

func TryCFDataGetTypeID

func TryCFDataGetTypeID() (CFTypeID, error)

TryCFDataGetTypeID is like CFDataGetTypeID but returns an error instead of panicking if CFDataGetTypeID is unavailable at run time.

func TryCFDateFormatterGetTypeID

func TryCFDateFormatterGetTypeID() (CFTypeID, error)

TryCFDateFormatterGetTypeID is like CFDateFormatterGetTypeID but returns an error instead of panicking if CFDateFormatterGetTypeID is unavailable at run time.

func TryCFDateGetTypeID

func TryCFDateGetTypeID() (CFTypeID, error)

TryCFDateGetTypeID is like CFDateGetTypeID but returns an error instead of panicking if CFDateGetTypeID is unavailable at run time.

func TryCFDictionaryGetTypeID

func TryCFDictionaryGetTypeID() (CFTypeID, error)

TryCFDictionaryGetTypeID is like CFDictionaryGetTypeID but returns an error instead of panicking if CFDictionaryGetTypeID is unavailable at run time.

func TryCFErrorGetTypeID

func TryCFErrorGetTypeID() (CFTypeID, error)

TryCFErrorGetTypeID is like CFErrorGetTypeID but returns an error instead of panicking if CFErrorGetTypeID is unavailable at run time.

func TryCFFileDescriptorGetTypeID

func TryCFFileDescriptorGetTypeID() (CFTypeID, error)

TryCFFileDescriptorGetTypeID is like CFFileDescriptorGetTypeID but returns an error instead of panicking if CFFileDescriptorGetTypeID is unavailable at run time.

func TryCFFileSecurityGetTypeID

func TryCFFileSecurityGetTypeID() (CFTypeID, error)

TryCFFileSecurityGetTypeID is like CFFileSecurityGetTypeID but returns an error instead of panicking if CFFileSecurityGetTypeID is unavailable at run time.

func TryCFGetTypeID

func TryCFGetTypeID(cf CFTypeRef) (CFTypeID, error)

TryCFGetTypeID is like CFGetTypeID but returns an error instead of panicking if CFGetTypeID is unavailable at run time.

func TryCFLocaleGetTypeID

func TryCFLocaleGetTypeID() (CFTypeID, error)

TryCFLocaleGetTypeID is like CFLocaleGetTypeID but returns an error instead of panicking if CFLocaleGetTypeID is unavailable at run time.

func TryCFMachPortGetTypeID

func TryCFMachPortGetTypeID() (CFTypeID, error)

TryCFMachPortGetTypeID is like CFMachPortGetTypeID but returns an error instead of panicking if CFMachPortGetTypeID is unavailable at run time.

func TryCFMessagePortGetTypeID

func TryCFMessagePortGetTypeID() (CFTypeID, error)

TryCFMessagePortGetTypeID is like CFMessagePortGetTypeID but returns an error instead of panicking if CFMessagePortGetTypeID is unavailable at run time.

func TryCFNotificationCenterGetTypeID

func TryCFNotificationCenterGetTypeID() (CFTypeID, error)

TryCFNotificationCenterGetTypeID is like CFNotificationCenterGetTypeID but returns an error instead of panicking if CFNotificationCenterGetTypeID is unavailable at run time.

func TryCFNullGetTypeID

func TryCFNullGetTypeID() (CFTypeID, error)

TryCFNullGetTypeID is like CFNullGetTypeID but returns an error instead of panicking if CFNullGetTypeID is unavailable at run time.

func TryCFNumberFormatterGetTypeID

func TryCFNumberFormatterGetTypeID() (CFTypeID, error)

TryCFNumberFormatterGetTypeID is like CFNumberFormatterGetTypeID but returns an error instead of panicking if CFNumberFormatterGetTypeID is unavailable at run time.

func TryCFNumberGetTypeID

func TryCFNumberGetTypeID() (CFTypeID, error)

TryCFNumberGetTypeID is like CFNumberGetTypeID but returns an error instead of panicking if CFNumberGetTypeID is unavailable at run time.

func TryCFPlugInGetTypeID

func TryCFPlugInGetTypeID() (CFTypeID, error)

TryCFPlugInGetTypeID is like CFPlugInGetTypeID but returns an error instead of panicking if CFPlugInGetTypeID is unavailable at run time.

func TryCFPlugInInstanceGetTypeID

func TryCFPlugInInstanceGetTypeID() (CFTypeID, error)

TryCFPlugInInstanceGetTypeID is like CFPlugInInstanceGetTypeID but returns an error instead of panicking if CFPlugInInstanceGetTypeID is unavailable at run time.

func TryCFReadStreamGetTypeID

func TryCFReadStreamGetTypeID() (CFTypeID, error)

TryCFReadStreamGetTypeID is like CFReadStreamGetTypeID but returns an error instead of panicking if CFReadStreamGetTypeID is unavailable at run time.

func TryCFRunLoopGetTypeID

func TryCFRunLoopGetTypeID() (CFTypeID, error)

TryCFRunLoopGetTypeID is like CFRunLoopGetTypeID but returns an error instead of panicking if CFRunLoopGetTypeID is unavailable at run time.

func TryCFRunLoopObserverGetTypeID

func TryCFRunLoopObserverGetTypeID() (CFTypeID, error)

TryCFRunLoopObserverGetTypeID is like CFRunLoopObserverGetTypeID but returns an error instead of panicking if CFRunLoopObserverGetTypeID is unavailable at run time.

func TryCFRunLoopSourceGetTypeID

func TryCFRunLoopSourceGetTypeID() (CFTypeID, error)

TryCFRunLoopSourceGetTypeID is like CFRunLoopSourceGetTypeID but returns an error instead of panicking if CFRunLoopSourceGetTypeID is unavailable at run time.

func TryCFRunLoopTimerGetTypeID

func TryCFRunLoopTimerGetTypeID() (CFTypeID, error)

TryCFRunLoopTimerGetTypeID is like CFRunLoopTimerGetTypeID but returns an error instead of panicking if CFRunLoopTimerGetTypeID is unavailable at run time.

func TryCFSetGetTypeID

func TryCFSetGetTypeID() (CFTypeID, error)

TryCFSetGetTypeID is like CFSetGetTypeID but returns an error instead of panicking if CFSetGetTypeID is unavailable at run time.

func TryCFSocketGetTypeID

func TryCFSocketGetTypeID() (CFTypeID, error)

TryCFSocketGetTypeID is like CFSocketGetTypeID but returns an error instead of panicking if CFSocketGetTypeID is unavailable at run time.

func TryCFStringGetTypeID

func TryCFStringGetTypeID() (CFTypeID, error)

TryCFStringGetTypeID is like CFStringGetTypeID but returns an error instead of panicking if CFStringGetTypeID is unavailable at run time.

func TryCFStringTokenizerGetTypeID

func TryCFStringTokenizerGetTypeID() (CFTypeID, error)

TryCFStringTokenizerGetTypeID is like CFStringTokenizerGetTypeID but returns an error instead of panicking if CFStringTokenizerGetTypeID is unavailable at run time.

func TryCFTimeZoneGetTypeID

func TryCFTimeZoneGetTypeID() (CFTypeID, error)

TryCFTimeZoneGetTypeID is like CFTimeZoneGetTypeID but returns an error instead of panicking if CFTimeZoneGetTypeID is unavailable at run time.

func TryCFTreeGetTypeID

func TryCFTreeGetTypeID() (CFTypeID, error)

TryCFTreeGetTypeID is like CFTreeGetTypeID but returns an error instead of panicking if CFTreeGetTypeID is unavailable at run time.

func TryCFURLEnumeratorGetTypeID

func TryCFURLEnumeratorGetTypeID() (CFTypeID, error)

TryCFURLEnumeratorGetTypeID is like CFURLEnumeratorGetTypeID but returns an error instead of panicking if CFURLEnumeratorGetTypeID is unavailable at run time.

func TryCFURLGetTypeID

func TryCFURLGetTypeID() (CFTypeID, error)

TryCFURLGetTypeID is like CFURLGetTypeID but returns an error instead of panicking if CFURLGetTypeID is unavailable at run time.

func TryCFUUIDGetTypeID

func TryCFUUIDGetTypeID() (CFTypeID, error)

TryCFUUIDGetTypeID is like CFUUIDGetTypeID but returns an error instead of panicking if CFUUIDGetTypeID is unavailable at run time.

func TryCFUserNotificationGetTypeID

func TryCFUserNotificationGetTypeID() (CFTypeID, error)

TryCFUserNotificationGetTypeID is like CFUserNotificationGetTypeID but returns an error instead of panicking if CFUserNotificationGetTypeID is unavailable at run time.

func TryCFWriteStreamGetTypeID

func TryCFWriteStreamGetTypeID() (CFTypeID, error)

TryCFWriteStreamGetTypeID is like CFWriteStreamGetTypeID but returns an error instead of panicking if CFWriteStreamGetTypeID is unavailable at run time.

func TryCFXMLNodeGetTypeID

func TryCFXMLNodeGetTypeID() (CFTypeID, error)

TryCFXMLNodeGetTypeID is like CFXMLNodeGetTypeID but returns an error instead of panicking if CFXMLNodeGetTypeID is unavailable at run time.

func TryCFXMLParserGetTypeID

func TryCFXMLParserGetTypeID() (CFTypeID, error)

TryCFXMLParserGetTypeID is like CFXMLParserGetTypeID but returns an error instead of panicking if CFXMLParserGetTypeID is unavailable at run time.

type CFTypeRef

type CFTypeRef = unsafe.Pointer

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 CFIndex, attrName CFStringRef, effectiveRange *CFRange) CFTypeRef

CFAttributedStringGetAttribute returns the value of a given attribute of an attributed string at a specified location.

It panics if CFAttributedStringGetAttribute is unavailable at run time; use TryCFAttributedStringGetAttribute to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetAttribute(_:_:_:_:)

func CFAttributedStringGetAttributeAndLongestEffectiveRange

func CFAttributedStringGetAttributeAndLongestEffectiveRange(aStr CFAttributedStringRef, loc CFIndex, attrName CFStringRef, inRange CFRange, longestEffectiveRange *CFRange) CFTypeRef

CFAttributedStringGetAttributeAndLongestEffectiveRange returns the value of a given attribute of an attributed string at a specified location.

It panics if CFAttributedStringGetAttributeAndLongestEffectiveRange is unavailable at run time; use TryCFAttributedStringGetAttributeAndLongestEffectiveRange to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFAttributedStringGetAttributeAndLongestEffectiveRange(_:_:_:_:_:)

func CFAutorelease

func CFAutorelease(arg CFTypeRef) CFTypeRef

CFAutorelease.

It panics if CFAutorelease is unavailable at run time; use TryCFAutorelease to get an error instead.

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.

It panics if CFBundleGetValueForInfoDictionaryKey is unavailable at run time; use TryCFBundleGetValueForInfoDictionaryKey to get an error instead.

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.

It panics if CFDateFormatterCopyProperty is unavailable at run time; use TryCFDateFormatterCopyProperty to get an error instead.

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.

It panics if CFLocaleGetValue is unavailable at run time; use TryCFLocaleGetValue to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFLocaleGetValue(_:_:)

func CFMakeCollectable

func CFMakeCollectable(cf CFTypeRef) CFTypeRef

CFMakeCollectable makes a newly-allocated Core Foundation object eligible for garbage collection.

It panics if CFMakeCollectable is unavailable at run time; use TryCFMakeCollectable to get an error instead.

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.

It panics if CFNumberFormatterCopyProperty is unavailable at run time; use TryCFNumberFormatterCopyProperty to get an error instead.

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.

It panics if CFReadStreamCopyProperty is unavailable at run time; use TryCFReadStreamCopyProperty to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFReadStreamCopyProperty(_:_:)

func CFRetain

func CFRetain(cf CFTypeRef) CFTypeRef

CFRetain retains a Core Foundation object.

It panics if CFRetain is unavailable at run time; use TryCFRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFRetain

func CFStringTokenizerCopyCurrentTokenAttribute

func CFStringTokenizerCopyCurrentTokenAttribute(tokenizer CFStringTokenizerRef, attribute CFOptionFlags) CFTypeRef

CFStringTokenizerCopyCurrentTokenAttribute returns a given attribute of the current token.

It panics if CFStringTokenizerCopyCurrentTokenAttribute is unavailable at run time; use TryCFStringTokenizerCopyCurrentTokenAttribute to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFStringTokenizerCopyCurrentTokenAttribute(_:_:)

func CFURLCreateResourcePropertyForKeyFromBookmarkData

func CFURLCreateResourcePropertyForKeyFromBookmarkData(allocator CFAllocatorRef, resourcePropertyKey CFStringRef, bookmark CFDataRef) CFTypeRef

CFURLCreateResourcePropertyForKeyFromBookmarkData returns the value of a resource property from specified bookmark data.

It panics if CFURLCreateResourcePropertyForKeyFromBookmarkData is unavailable at run time; use TryCFURLCreateResourcePropertyForKeyFromBookmarkData to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateResourcePropertyForKeyFromBookmarkData(_:_:_:)

func CFWriteStreamCopyProperty

func CFWriteStreamCopyProperty(stream CFWriteStreamRef, propertyName CFStreamPropertyKey) CFTypeRef

CFWriteStreamCopyProperty returns the value of a property for a stream.

It panics if CFWriteStreamCopyProperty is unavailable at run time; use TryCFWriteStreamCopyProperty to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamCopyProperty(_:_:)

func TryCFAttributedStringGetAttribute

func TryCFAttributedStringGetAttribute(aStr CFAttributedStringRef, loc CFIndex, attrName CFStringRef, effectiveRange *CFRange) (CFTypeRef, error)

TryCFAttributedStringGetAttribute is like CFAttributedStringGetAttribute but returns an error instead of panicking if CFAttributedStringGetAttribute is unavailable at run time.

func TryCFAttributedStringGetAttributeAndLongestEffectiveRange

func TryCFAttributedStringGetAttributeAndLongestEffectiveRange(aStr CFAttributedStringRef, loc CFIndex, attrName CFStringRef, inRange CFRange, longestEffectiveRange *CFRange) (CFTypeRef, error)

TryCFAttributedStringGetAttributeAndLongestEffectiveRange is like CFAttributedStringGetAttributeAndLongestEffectiveRange but returns an error instead of panicking if CFAttributedStringGetAttributeAndLongestEffectiveRange is unavailable at run time.

func TryCFAutorelease

func TryCFAutorelease(arg CFTypeRef) (CFTypeRef, error)

TryCFAutorelease is like CFAutorelease but returns an error instead of panicking if CFAutorelease is unavailable at run time.

func TryCFBundleGetValueForInfoDictionaryKey

func TryCFBundleGetValueForInfoDictionaryKey(bundle CFBundleRef, key CFStringRef) (CFTypeRef, error)

TryCFBundleGetValueForInfoDictionaryKey is like CFBundleGetValueForInfoDictionaryKey but returns an error instead of panicking if CFBundleGetValueForInfoDictionaryKey is unavailable at run time.

func TryCFDateFormatterCopyProperty

func TryCFDateFormatterCopyProperty(formatter CFDateFormatterRef, key CFDateFormatterKey) (CFTypeRef, error)

TryCFDateFormatterCopyProperty is like CFDateFormatterCopyProperty but returns an error instead of panicking if CFDateFormatterCopyProperty is unavailable at run time.

func TryCFLocaleGetValue

func TryCFLocaleGetValue(locale CFLocaleRef, key CFLocaleKey) (CFTypeRef, error)

TryCFLocaleGetValue is like CFLocaleGetValue but returns an error instead of panicking if CFLocaleGetValue is unavailable at run time.

func TryCFMakeCollectable

func TryCFMakeCollectable(cf CFTypeRef) (CFTypeRef, error)

TryCFMakeCollectable is like CFMakeCollectable but returns an error instead of panicking if CFMakeCollectable is unavailable at run time.

func TryCFNumberFormatterCopyProperty

func TryCFNumberFormatterCopyProperty(formatter CFNumberFormatterRef, key CFNumberFormatterKey) (CFTypeRef, error)

TryCFNumberFormatterCopyProperty is like CFNumberFormatterCopyProperty but returns an error instead of panicking if CFNumberFormatterCopyProperty is unavailable at run time.

func TryCFReadStreamCopyProperty

func TryCFReadStreamCopyProperty(stream CFReadStreamRef, propertyName CFStreamPropertyKey) (CFTypeRef, error)

TryCFReadStreamCopyProperty is like CFReadStreamCopyProperty but returns an error instead of panicking if CFReadStreamCopyProperty is unavailable at run time.

func TryCFRetain

func TryCFRetain(cf CFTypeRef) (CFTypeRef, error)

TryCFRetain is like CFRetain but returns an error instead of panicking if CFRetain is unavailable at run time.

func TryCFStringTokenizerCopyCurrentTokenAttribute

func TryCFStringTokenizerCopyCurrentTokenAttribute(tokenizer CFStringTokenizerRef, attribute CFOptionFlags) (CFTypeRef, error)

TryCFStringTokenizerCopyCurrentTokenAttribute is like CFStringTokenizerCopyCurrentTokenAttribute but returns an error instead of panicking if CFStringTokenizerCopyCurrentTokenAttribute is unavailable at run time.

func TryCFURLCreateResourcePropertyForKeyFromBookmarkData

func TryCFURLCreateResourcePropertyForKeyFromBookmarkData(allocator CFAllocatorRef, resourcePropertyKey CFStringRef, bookmark CFDataRef) (CFTypeRef, error)

TryCFURLCreateResourcePropertyForKeyFromBookmarkData is like CFURLCreateResourcePropertyForKeyFromBookmarkData but returns an error instead of panicking if CFURLCreateResourcePropertyForKeyFromBookmarkData is unavailable at run time.

func TryCFWriteStreamCopyProperty

func TryCFWriteStreamCopyProperty(stream CFWriteStreamRef, propertyName CFStreamPropertyKey) (CFTypeRef, error)

TryCFWriteStreamCopyProperty is like CFWriteStreamCopyProperty but returns an error instead of panicking if CFWriteStreamCopyProperty is unavailable at run time.

type CFURLBookmarkCreationOptions

type CFURLBookmarkCreationOptions uint

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 = 256
)

func (CFURLBookmarkCreationOptions) String

type CFURLBookmarkFileCreationOptions

type CFURLBookmarkFileCreationOptions = CFOptionFlags

CFURLBookmarkFileCreationOptions is type for bookmark file creation options.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLBookmarkFileCreationOptions

type CFURLBookmarkResolutionOptions

type CFURLBookmarkResolutionOptions uint

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

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 uint

See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorOptions

const (
	// KCFURLEnumeratorDefaultBehavior: The enumerator performs its default behavior.
	KCFURLEnumeratorDefaultBehavior CFURLEnumeratorOptions = 0
	// 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.

It panics if CFURLEnumeratorCreateForDirectoryURL is unavailable at run time; use TryCFURLEnumeratorCreateForDirectoryURL to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorCreateForDirectoryURL(_:_:_:_:)

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.

It panics if CFURLEnumeratorCreateForMountedVolumes is unavailable at run time; use TryCFURLEnumeratorCreateForMountedVolumes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorCreateForMountedVolumes(_:_:_:)

func TryCFURLEnumeratorCreateForDirectoryURL

func TryCFURLEnumeratorCreateForDirectoryURL(alloc CFAllocatorRef, directoryURL CFURLRef, option CFURLEnumeratorOptions, propertyKeys CFArrayRef) (CFURLEnumeratorRef, error)

TryCFURLEnumeratorCreateForDirectoryURL is like CFURLEnumeratorCreateForDirectoryURL but returns an error instead of panicking if CFURLEnumeratorCreateForDirectoryURL is unavailable at run time.

func TryCFURLEnumeratorCreateForMountedVolumes

func TryCFURLEnumeratorCreateForMountedVolumes(alloc CFAllocatorRef, option CFURLEnumeratorOptions, propertyKeys CFArrayRef) (CFURLEnumeratorRef, error)

TryCFURLEnumeratorCreateForMountedVolumes is like CFURLEnumeratorCreateForMountedVolumes but returns an error instead of panicking if CFURLEnumeratorCreateForMountedVolumes is unavailable at run time.

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.

It panics if CFURLEnumeratorGetNextURL is unavailable at run time; use TryCFURLEnumeratorGetNextURL to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLEnumeratorGetNextURL(_:_:_:)

func TryCFURLEnumeratorGetNextURL

func TryCFURLEnumeratorGetNextURL(enumerator CFURLEnumeratorRef, url *CFURLRef, err *CFErrorRef) (CFURLEnumeratorResult, error)

TryCFURLEnumeratorGetNextURL is like CFURLEnumeratorGetNextURL but returns an error instead of panicking if CFURLEnumeratorGetNextURL is unavailable at run time.

func (CFURLEnumeratorResult) String

func (e CFURLEnumeratorResult) String() string

type CFURLError deprecated

type CFURLError int

Deprecated: Use CFError codes instead See: https://developer.apple.com/documentation/CoreFoundation/CFURLError

const (
	// Deprecated.
	KCFURLImproperArgumentsError CFURLError = -15
	// Deprecated.
	KCFURLPropertyKeyUnavailableError CFURLError = -17
	// Deprecated.
	KCFURLRemoteHostUnavailableError CFURLError = -14
	// Deprecated.
	KCFURLResourceAccessViolationError CFURLError = -13
	// Deprecated.
	KCFURLResourceNotFoundError CFURLError = -12
	// Deprecated.
	KCFURLTimeoutError CFURLError = -18
	// Deprecated.
	KCFURLUnknownError CFURLError = -10
	// Deprecated.
	KCFURLUnknownPropertyKeyError CFURLError = -16
	// Deprecated.
	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 (
	// KCFURLPOSIXPathStyle: Indicates a POSIX style path name.
	KCFURLPOSIXPathStyle CFURLPathStyle = 0
	// KCFURLWindowsPathStyle: Indicates a Windows style path name.
	KCFURLWindowsPathStyle CFURLPathStyle = 2
	// Deprecated.
	KCFURLHFSPathStyle CFURLPathStyle = 1
)

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.

It panics if CFBundleCopyAuxiliaryExecutableURL is unavailable at run time; use TryCFBundleCopyAuxiliaryExecutableURL to get an error instead.

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.

It panics if CFBundleCopyBuiltInPlugInsURL is unavailable at run time; use TryCFBundleCopyBuiltInPlugInsURL to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyBuiltInPlugInsURL(_:)

func CFBundleCopyBundleURL

func CFBundleCopyBundleURL(bundle CFBundleRef) CFURLRef

CFBundleCopyBundleURL returns the location of a bundle.

It panics if CFBundleCopyBundleURL is unavailable at run time; use TryCFBundleCopyBundleURL to get an error instead.

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.

It panics if CFBundleCopyExecutableURL is unavailable at run time; use TryCFBundleCopyExecutableURL to get an error instead.

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.

It panics if CFBundleCopyPrivateFrameworksURL is unavailable at run time; use TryCFBundleCopyPrivateFrameworksURL to get an error instead.

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.

It panics if CFBundleCopyResourceURL is unavailable at run time; use TryCFBundleCopyResourceURL to get an error instead.

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.

It panics if CFBundleCopyResourceURLForLocalization is unavailable at run time; use TryCFBundleCopyResourceURLForLocalization to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyResourceURLForLocalization(_:_:_:_:_:)

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.

It panics if CFBundleCopyResourceURLInDirectory is unavailable at run time; use TryCFBundleCopyResourceURLInDirectory to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopyResourceURLInDirectory(_:_:_:_:)

func CFBundleCopyResourcesDirectoryURL

func CFBundleCopyResourcesDirectoryURL(bundle CFBundleRef) CFURLRef

CFBundleCopyResourcesDirectoryURL returns the location of a bundle’s Resources directory.

It panics if CFBundleCopyResourcesDirectoryURL is unavailable at run time; use TryCFBundleCopyResourcesDirectoryURL to get an error instead.

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.

It panics if CFBundleCopySharedFrameworksURL is unavailable at run time; use TryCFBundleCopySharedFrameworksURL to get an error instead.

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.

It panics if CFBundleCopySharedSupportURL is unavailable at run time; use TryCFBundleCopySharedSupportURL to get an error instead.

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.

It panics if CFBundleCopySupportFilesDirectoryURL is unavailable at run time; use TryCFBundleCopySupportFilesDirectoryURL to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFBundleCopySupportFilesDirectoryURL(_:)

func CFURLCopyAbsoluteURL

func CFURLCopyAbsoluteURL(relativeURL CFURLRef) CFURLRef

CFURLCopyAbsoluteURL creates a new [CFURL] object by resolving the relative portion of a URL against its base.

It panics if CFURLCopyAbsoluteURL is unavailable at run time; use TryCFURLCopyAbsoluteURL to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCopyAbsoluteURL(_:)

func CFURLCreateAbsoluteURLWithBytes

func CFURLCreateAbsoluteURLWithBytes(alloc CFAllocatorRef, relativeURLBytes []byte, length CFIndex, encoding CFStringEncoding, 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.

It panics if CFURLCreateAbsoluteURLWithBytes is unavailable at run time; use TryCFURLCreateAbsoluteURLWithBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateAbsoluteURLWithBytes(_:_:_:_:_:_:)

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.

It panics if CFURLCreateByResolvingBookmarkData is unavailable at run time; use TryCFURLCreateByResolvingBookmarkData to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateByResolvingBookmarkData(_:_:_:_:_:_:_:)

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.

It panics if CFURLCreateCopyAppendingPathComponent is unavailable at run time; use TryCFURLCreateCopyAppendingPathComponent to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateCopyAppendingPathComponent(_:_:_:_:)

func CFURLCreateCopyAppendingPathExtension

func CFURLCreateCopyAppendingPathExtension(allocator CFAllocatorRef, url CFURLRef, extension CFStringRef) CFURLRef

CFURLCreateCopyAppendingPathExtension creates a copy of a given URL and appends a path extension.

It panics if CFURLCreateCopyAppendingPathExtension is unavailable at run time; use TryCFURLCreateCopyAppendingPathExtension to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateCopyAppendingPathExtension(_:_:_:)

func CFURLCreateCopyDeletingLastPathComponent

func CFURLCreateCopyDeletingLastPathComponent(allocator CFAllocatorRef, url CFURLRef) CFURLRef

CFURLCreateCopyDeletingLastPathComponent creates a copy of a given URL with the last path component deleted.

It panics if CFURLCreateCopyDeletingLastPathComponent is unavailable at run time; use TryCFURLCreateCopyDeletingLastPathComponent to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateCopyDeletingLastPathComponent(_:_:)

func CFURLCreateCopyDeletingPathExtension

func CFURLCreateCopyDeletingPathExtension(allocator CFAllocatorRef, url CFURLRef) CFURLRef

CFURLCreateCopyDeletingPathExtension creates a copy of a given URL with its last path extension removed.

It panics if CFURLCreateCopyDeletingPathExtension is unavailable at run time; use TryCFURLCreateCopyDeletingPathExtension to get an error instead.

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.

It panics if CFURLCreateFilePathURL is unavailable at run time; use TryCFURLCreateFilePathURL to get an error instead.

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.

It panics if CFURLCreateFileReferenceURL is unavailable at run time; use TryCFURLCreateFileReferenceURL to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateFileReferenceURL(_:_:_:)

func CFURLCreateFromFileSystemRepresentation

func CFURLCreateFromFileSystemRepresentation(allocator CFAllocatorRef, buffer []byte, bufLen CFIndex, isDirectory bool) CFURLRef

CFURLCreateFromFileSystemRepresentation creates a new [CFURL] object for a file system entity using the native representation.

It panics if CFURLCreateFromFileSystemRepresentation is unavailable at run time; use TryCFURLCreateFromFileSystemRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateFromFileSystemRepresentation(_:_:_:_:)

func CFURLCreateFromFileSystemRepresentationRelativeToBase

func CFURLCreateFromFileSystemRepresentationRelativeToBase(allocator CFAllocatorRef, buffer []byte, bufLen CFIndex, isDirectory bool, baseURL CFURLRef) CFURLRef

CFURLCreateFromFileSystemRepresentationRelativeToBase creates a [CFURL] object from a native character string path relative to a base URL.

It panics if CFURLCreateFromFileSystemRepresentationRelativeToBase is unavailable at run time; use TryCFURLCreateFromFileSystemRepresentationRelativeToBase to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateFromFileSystemRepresentationRelativeToBase(_:_:_:_:_:)

func CFURLCreateWithBytes

func CFURLCreateWithBytes(allocator CFAllocatorRef, URLBytes []byte, length CFIndex, encoding CFStringEncoding, baseURL CFURLRef) CFURLRef

CFURLCreateWithBytes creates a [CFURL] object using a given character bytes.

It panics if CFURLCreateWithBytes is unavailable at run time; use TryCFURLCreateWithBytes to get an error instead.

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.

It panics if CFURLCreateWithFileSystemPath is unavailable at run time; use TryCFURLCreateWithFileSystemPath to get an error instead.

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.

It panics if CFURLCreateWithFileSystemPathRelativeToBase is unavailable at run time; use TryCFURLCreateWithFileSystemPathRelativeToBase to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateWithFileSystemPathRelativeToBase(_:_:_:_:_:)

func CFURLCreateWithString

func CFURLCreateWithString(allocator CFAllocatorRef, URLString CFStringRef, baseURL CFURLRef) CFURLRef

CFURLCreateWithString creates a [CFURL] object using a given CFString object.

It panics if CFURLCreateWithString is unavailable at run time; use TryCFURLCreateWithString to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFURLCreateWithString(_:_:_:)

func CFURLGetBaseURL

func CFURLGetBaseURL(anURL CFURLRef) CFURLRef

CFURLGetBaseURL returns the base URL of a given URL if it exists.

It panics if CFURLGetBaseURL is unavailable at run time; use TryCFURLGetBaseURL to get an error instead.

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.

It panics if CFXMLParserGetSourceURL is unavailable at run time; use TryCFXMLParserGetSourceURL to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetSourceURL

func TryCFBundleCopyAuxiliaryExecutableURL

func TryCFBundleCopyAuxiliaryExecutableURL(bundle CFBundleRef, executableName CFStringRef) (CFURLRef, error)

TryCFBundleCopyAuxiliaryExecutableURL is like CFBundleCopyAuxiliaryExecutableURL but returns an error instead of panicking if CFBundleCopyAuxiliaryExecutableURL is unavailable at run time.

func TryCFBundleCopyBuiltInPlugInsURL

func TryCFBundleCopyBuiltInPlugInsURL(bundle CFBundleRef) (CFURLRef, error)

TryCFBundleCopyBuiltInPlugInsURL is like CFBundleCopyBuiltInPlugInsURL but returns an error instead of panicking if CFBundleCopyBuiltInPlugInsURL is unavailable at run time.

func TryCFBundleCopyBundleURL

func TryCFBundleCopyBundleURL(bundle CFBundleRef) (CFURLRef, error)

TryCFBundleCopyBundleURL is like CFBundleCopyBundleURL but returns an error instead of panicking if CFBundleCopyBundleURL is unavailable at run time.

func TryCFBundleCopyExecutableURL

func TryCFBundleCopyExecutableURL(bundle CFBundleRef) (CFURLRef, error)

TryCFBundleCopyExecutableURL is like CFBundleCopyExecutableURL but returns an error instead of panicking if CFBundleCopyExecutableURL is unavailable at run time.

func TryCFBundleCopyPrivateFrameworksURL

func TryCFBundleCopyPrivateFrameworksURL(bundle CFBundleRef) (CFURLRef, error)

TryCFBundleCopyPrivateFrameworksURL is like CFBundleCopyPrivateFrameworksURL but returns an error instead of panicking if CFBundleCopyPrivateFrameworksURL is unavailable at run time.

func TryCFBundleCopyResourceURL

func TryCFBundleCopyResourceURL(bundle CFBundleRef, resourceName CFStringRef, resourceType CFStringRef, subDirName CFStringRef) (CFURLRef, error)

TryCFBundleCopyResourceURL is like CFBundleCopyResourceURL but returns an error instead of panicking if CFBundleCopyResourceURL is unavailable at run time.

func TryCFBundleCopyResourceURLForLocalization

func TryCFBundleCopyResourceURLForLocalization(bundle CFBundleRef, resourceName CFStringRef, resourceType CFStringRef, subDirName CFStringRef, localizationName CFStringRef) (CFURLRef, error)

TryCFBundleCopyResourceURLForLocalization is like CFBundleCopyResourceURLForLocalization but returns an error instead of panicking if CFBundleCopyResourceURLForLocalization is unavailable at run time.

func TryCFBundleCopyResourceURLInDirectory

func TryCFBundleCopyResourceURLInDirectory(bundleURL CFURLRef, resourceName CFStringRef, resourceType CFStringRef, subDirName CFStringRef) (CFURLRef, error)

TryCFBundleCopyResourceURLInDirectory is like CFBundleCopyResourceURLInDirectory but returns an error instead of panicking if CFBundleCopyResourceURLInDirectory is unavailable at run time.

func TryCFBundleCopyResourcesDirectoryURL

func TryCFBundleCopyResourcesDirectoryURL(bundle CFBundleRef) (CFURLRef, error)

TryCFBundleCopyResourcesDirectoryURL is like CFBundleCopyResourcesDirectoryURL but returns an error instead of panicking if CFBundleCopyResourcesDirectoryURL is unavailable at run time.

func TryCFBundleCopySharedFrameworksURL

func TryCFBundleCopySharedFrameworksURL(bundle CFBundleRef) (CFURLRef, error)

TryCFBundleCopySharedFrameworksURL is like CFBundleCopySharedFrameworksURL but returns an error instead of panicking if CFBundleCopySharedFrameworksURL is unavailable at run time.

func TryCFBundleCopySharedSupportURL

func TryCFBundleCopySharedSupportURL(bundle CFBundleRef) (CFURLRef, error)

TryCFBundleCopySharedSupportURL is like CFBundleCopySharedSupportURL but returns an error instead of panicking if CFBundleCopySharedSupportURL is unavailable at run time.

func TryCFBundleCopySupportFilesDirectoryURL

func TryCFBundleCopySupportFilesDirectoryURL(bundle CFBundleRef) (CFURLRef, error)

TryCFBundleCopySupportFilesDirectoryURL is like CFBundleCopySupportFilesDirectoryURL but returns an error instead of panicking if CFBundleCopySupportFilesDirectoryURL is unavailable at run time.

func TryCFURLCopyAbsoluteURL

func TryCFURLCopyAbsoluteURL(relativeURL CFURLRef) (CFURLRef, error)

TryCFURLCopyAbsoluteURL is like CFURLCopyAbsoluteURL but returns an error instead of panicking if CFURLCopyAbsoluteURL is unavailable at run time.

func TryCFURLCreateAbsoluteURLWithBytes

func TryCFURLCreateAbsoluteURLWithBytes(alloc CFAllocatorRef, relativeURLBytes []byte, length CFIndex, encoding CFStringEncoding, baseURL CFURLRef, useCompatibilityMode bool) (CFURLRef, error)

TryCFURLCreateAbsoluteURLWithBytes is like CFURLCreateAbsoluteURLWithBytes but returns an error instead of panicking if CFURLCreateAbsoluteURLWithBytes is unavailable at run time.

func TryCFURLCreateByResolvingBookmarkData

func TryCFURLCreateByResolvingBookmarkData(allocator CFAllocatorRef, bookmark CFDataRef, options CFURLBookmarkResolutionOptions, relativeToURL CFURLRef, resourcePropertiesToInclude CFArrayRef, isStale *bool, err *CFErrorRef) (CFURLRef, error)

TryCFURLCreateByResolvingBookmarkData is like CFURLCreateByResolvingBookmarkData but returns an error instead of panicking if CFURLCreateByResolvingBookmarkData is unavailable at run time.

func TryCFURLCreateCopyAppendingPathComponent

func TryCFURLCreateCopyAppendingPathComponent(allocator CFAllocatorRef, url CFURLRef, pathComponent CFStringRef, isDirectory bool) (CFURLRef, error)

TryCFURLCreateCopyAppendingPathComponent is like CFURLCreateCopyAppendingPathComponent but returns an error instead of panicking if CFURLCreateCopyAppendingPathComponent is unavailable at run time.

func TryCFURLCreateCopyAppendingPathExtension

func TryCFURLCreateCopyAppendingPathExtension(allocator CFAllocatorRef, url CFURLRef, extension CFStringRef) (CFURLRef, error)

TryCFURLCreateCopyAppendingPathExtension is like CFURLCreateCopyAppendingPathExtension but returns an error instead of panicking if CFURLCreateCopyAppendingPathExtension is unavailable at run time.

func TryCFURLCreateCopyDeletingLastPathComponent

func TryCFURLCreateCopyDeletingLastPathComponent(allocator CFAllocatorRef, url CFURLRef) (CFURLRef, error)

TryCFURLCreateCopyDeletingLastPathComponent is like CFURLCreateCopyDeletingLastPathComponent but returns an error instead of panicking if CFURLCreateCopyDeletingLastPathComponent is unavailable at run time.

func TryCFURLCreateCopyDeletingPathExtension

func TryCFURLCreateCopyDeletingPathExtension(allocator CFAllocatorRef, url CFURLRef) (CFURLRef, error)

TryCFURLCreateCopyDeletingPathExtension is like CFURLCreateCopyDeletingPathExtension but returns an error instead of panicking if CFURLCreateCopyDeletingPathExtension is unavailable at run time.

func TryCFURLCreateFilePathURL

func TryCFURLCreateFilePathURL(allocator CFAllocatorRef, url CFURLRef, err *CFErrorRef) (CFURLRef, error)

TryCFURLCreateFilePathURL is like CFURLCreateFilePathURL but returns an error instead of panicking if CFURLCreateFilePathURL is unavailable at run time.

func TryCFURLCreateFileReferenceURL

func TryCFURLCreateFileReferenceURL(allocator CFAllocatorRef, url CFURLRef, err *CFErrorRef) (CFURLRef, error)

TryCFURLCreateFileReferenceURL is like CFURLCreateFileReferenceURL but returns an error instead of panicking if CFURLCreateFileReferenceURL is unavailable at run time.

func TryCFURLCreateFromFileSystemRepresentation

func TryCFURLCreateFromFileSystemRepresentation(allocator CFAllocatorRef, buffer []byte, bufLen CFIndex, isDirectory bool) (CFURLRef, error)

TryCFURLCreateFromFileSystemRepresentation is like CFURLCreateFromFileSystemRepresentation but returns an error instead of panicking if CFURLCreateFromFileSystemRepresentation is unavailable at run time.

func TryCFURLCreateFromFileSystemRepresentationRelativeToBase

func TryCFURLCreateFromFileSystemRepresentationRelativeToBase(allocator CFAllocatorRef, buffer []byte, bufLen CFIndex, isDirectory bool, baseURL CFURLRef) (CFURLRef, error)

TryCFURLCreateFromFileSystemRepresentationRelativeToBase is like CFURLCreateFromFileSystemRepresentationRelativeToBase but returns an error instead of panicking if CFURLCreateFromFileSystemRepresentationRelativeToBase is unavailable at run time.

func TryCFURLCreateWithBytes

func TryCFURLCreateWithBytes(allocator CFAllocatorRef, URLBytes []byte, length CFIndex, encoding CFStringEncoding, baseURL CFURLRef) (CFURLRef, error)

TryCFURLCreateWithBytes is like CFURLCreateWithBytes but returns an error instead of panicking if CFURLCreateWithBytes is unavailable at run time.

func TryCFURLCreateWithFileSystemPath

func TryCFURLCreateWithFileSystemPath(allocator CFAllocatorRef, filePath CFStringRef, pathStyle CFURLPathStyle, isDirectory bool) (CFURLRef, error)

TryCFURLCreateWithFileSystemPath is like CFURLCreateWithFileSystemPath but returns an error instead of panicking if CFURLCreateWithFileSystemPath is unavailable at run time.

func TryCFURLCreateWithFileSystemPathRelativeToBase

func TryCFURLCreateWithFileSystemPathRelativeToBase(allocator CFAllocatorRef, filePath CFStringRef, pathStyle CFURLPathStyle, isDirectory bool, baseURL CFURLRef) (CFURLRef, error)

TryCFURLCreateWithFileSystemPathRelativeToBase is like CFURLCreateWithFileSystemPathRelativeToBase but returns an error instead of panicking if CFURLCreateWithFileSystemPathRelativeToBase is unavailable at run time.

func TryCFURLCreateWithString

func TryCFURLCreateWithString(allocator CFAllocatorRef, URLString CFStringRef, baseURL CFURLRef) (CFURLRef, error)

TryCFURLCreateWithString is like CFURLCreateWithString but returns an error instead of panicking if CFURLCreateWithString is unavailable at run time.

func TryCFURLGetBaseURL

func TryCFURLGetBaseURL(anURL CFURLRef) (CFURLRef, error)

TryCFURLGetBaseURL is like CFURLGetBaseURL but returns an error instead of panicking if CFURLGetBaseURL is unavailable at run time.

func TryCFXMLParserGetSourceURL

func TryCFXMLParserGetSourceURL(parser CFXMLParserRef) (CFURLRef, error)

TryCFXMLParserGetSourceURL is like CFXMLParserGetSourceURL but returns an error instead of panicking if CFXMLParserGetSourceURL is unavailable at run time.

type CFUUID

type CFUUID = CFUUIDRef

CFUUID is a bare alias for CFUUIDRef.

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.

It panics if CFUUIDGetUUIDBytes is unavailable at run time; use TryCFUUIDGetUUIDBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUUIDGetUUIDBytes(_:)

func TryCFUUIDGetUUIDBytes

func TryCFUUIDGetUUIDBytes(uuid CFUUIDRef) (CFUUIDBytes, error)

TryCFUUIDGetUUIDBytes is like CFUUIDGetUUIDBytes but returns an error instead of panicking if CFUUIDGetUUIDBytes is unavailable at run time.

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.

It panics if CFUUIDCreate is unavailable at run time; use TryCFUUIDCreate to get an error instead.

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.

It panics if CFUUIDCreateFromString is unavailable at run time; use TryCFUUIDCreateFromString to get an error instead.

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.

It panics if CFUUIDCreateFromUUIDBytes is unavailable at run time; use TryCFUUIDCreateFromUUIDBytes to get an error instead.

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.

It panics if CFUUIDCreateWithBytes is unavailable at run time; use TryCFUUIDCreateWithBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUUIDCreateWithBytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)

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.

It panics if CFUUIDGetConstantUUIDWithBytes is unavailable at run time; use TryCFUUIDGetConstantUUIDWithBytes to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUUIDGetConstantUUIDWithBytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)

func TryCFUUIDCreate

func TryCFUUIDCreate(alloc CFAllocatorRef) (CFUUIDRef, error)

TryCFUUIDCreate is like CFUUIDCreate but returns an error instead of panicking if CFUUIDCreate is unavailable at run time.

func TryCFUUIDCreateFromString

func TryCFUUIDCreateFromString(alloc CFAllocatorRef, uuidStr CFStringRef) (CFUUIDRef, error)

TryCFUUIDCreateFromString is like CFUUIDCreateFromString but returns an error instead of panicking if CFUUIDCreateFromString is unavailable at run time.

func TryCFUUIDCreateFromUUIDBytes

func TryCFUUIDCreateFromUUIDBytes(alloc CFAllocatorRef, bytes CFUUIDBytes) (CFUUIDRef, error)

TryCFUUIDCreateFromUUIDBytes is like CFUUIDCreateFromUUIDBytes but returns an error instead of panicking if CFUUIDCreateFromUUIDBytes is unavailable at run time.

func TryCFUUIDCreateWithBytes

func TryCFUUIDCreateWithBytes(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, error)

TryCFUUIDCreateWithBytes is like CFUUIDCreateWithBytes but returns an error instead of panicking if CFUUIDCreateWithBytes is unavailable at run time.

func TryCFUUIDGetConstantUUIDWithBytes

func TryCFUUIDGetConstantUUIDWithBytes(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, error)

TryCFUUIDGetConstantUUIDWithBytes is like CFUUIDGetConstantUUIDWithBytes but returns an error instead of panicking if CFUUIDGetConstantUUIDWithBytes is unavailable at run time.

type CFUserNotificationCallBack

type CFUserNotificationCallBack = func(userNotification CFUserNotificationRef, responseFlags uint)

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 CFTimeInterval, flags CFOptionFlags, err *int32, dictionary CFDictionaryRef) CFUserNotificationRef

CFUserNotificationCreate creates a CFUserNotification object and displays its notification dialog on screen.

It panics if CFUserNotificationCreate is unavailable at run time; use TryCFUserNotificationCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFUserNotificationCreate(_:_:_:_:_:)

func TryCFUserNotificationCreate

func TryCFUserNotificationCreate(allocator CFAllocatorRef, timeout CFTimeInterval, flags CFOptionFlags, err *int32, dictionary CFDictionaryRef) (CFUserNotificationRef, error)

TryCFUserNotificationCreate is like CFUserNotificationCreate but returns an error instead of panicking if CFUserNotificationCreate is unavailable at run time.

type CFWriteStreamClientCallBack

type CFWriteStreamClientCallBack = func(stream CFWriteStreamRef, eventType CFStreamEventType, clientCallBackInfo 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.

It panics if CFWriteStreamCreateWithAllocatedBuffers is unavailable at run time; use TryCFWriteStreamCreateWithAllocatedBuffers to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamCreateWithAllocatedBuffers(_:_:)

func CFWriteStreamCreateWithBuffer

func CFWriteStreamCreateWithBuffer(alloc CFAllocatorRef, buffer []byte, bufferCapacity CFIndex) CFWriteStreamRef

CFWriteStreamCreateWithBuffer creates a writable stream for a fixed-size block of memory.

It panics if CFWriteStreamCreateWithBuffer is unavailable at run time; use TryCFWriteStreamCreateWithBuffer to get an error instead.

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.

It panics if CFWriteStreamCreateWithFile is unavailable at run time; use TryCFWriteStreamCreateWithFile to get an error instead.

See: https://developer.apple.com/documentation/CoreFoundation/CFWriteStreamCreateWithFile(_:_:)

func TryCFWriteStreamCreateWithAllocatedBuffers

func TryCFWriteStreamCreateWithAllocatedBuffers(alloc CFAllocatorRef, bufferAllocator CFAllocatorRef) (CFWriteStreamRef, error)

TryCFWriteStreamCreateWithAllocatedBuffers is like CFWriteStreamCreateWithAllocatedBuffers but returns an error instead of panicking if CFWriteStreamCreateWithAllocatedBuffers is unavailable at run time.

func TryCFWriteStreamCreateWithBuffer

func TryCFWriteStreamCreateWithBuffer(alloc CFAllocatorRef, buffer []byte, bufferCapacity CFIndex) (CFWriteStreamRef, error)

TryCFWriteStreamCreateWithBuffer is like CFWriteStreamCreateWithBuffer but returns an error instead of panicking if CFWriteStreamCreateWithBuffer is unavailable at run time.

func TryCFWriteStreamCreateWithFile

func TryCFWriteStreamCreateWithFile(alloc CFAllocatorRef, fileURL CFURLRef) (CFWriteStreamRef, error)

TryCFWriteStreamCreateWithFile is like CFWriteStreamCreateWithFile but returns an error instead of panicking if CFWriteStreamCreateWithFile is unavailable at run time.

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 CFIndex                        // 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  CFStringEncoding // 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.
	// contains filtered or unexported fields
}

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

type CFXMLParserAddChildCallBack = func(parser CFXMLParserRef, parent unsafe.Pointer, child unsafe.Pointer, info unsafe.Pointer)

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 CFIndex // Version number. Must be `0`.
	// C: CFXMLParserCreateXMLStructureCallBack (void *(*)(struct __CFXMLParser *, const struct __CFXMLNode *, void *))
	CreateXMLStructure uintptr // Called when an XML structure is created.
	// C: CFXMLParserAddChildCallBack (void (*)(struct __CFXMLParser *, void *, void *, void *))
	AddChild uintptr // Called when a child is added.
	// C: CFXMLParserEndXMLStructureCallBack (void (*)(struct __CFXMLParser *, void *, void *))
	EndXMLStructure uintptr // Called when an XML structure has ended.
	// C: CFXMLParserResolveExternalEntityCallBack (const struct __CFData *(*)(struct __CFXMLParser *, CFXMLExternalID *, void *))
	ResolveExternalEntity uintptr // Called when an external entity needs to be resolved.
	// C: CFXMLParserHandleErrorCallBack (unsigned char (*)(struct __CFXMLParser *, enum CFXMLParserStatusCode, void *))
	HandleError uintptr // 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 CFIndex        // 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](<https://developer.apple.com/documentation/CoreFoundation/CFXMLParserCallBacks>) structure.
	// C: CFXMLParserRetainCallBack (const void *(*)(const void *))
	Retain uintptr // A retain callback for your program-defined context data. Optional.
	// C: CFXMLParserReleaseCallBack (void (*)(const void *))
	Release uintptr // A release callback for your program-defined context data. Optional.
	// C: CFXMLParserCopyDescriptionCallBack (const struct __CFString *(*)(const void *))
	CopyDescription uintptr // 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

type CFXMLParserCopyDescriptionCallBack = func(info unsafe.Pointer) CFStringRef

CFXMLParserCopyDescriptionCallBack is callback function invoked by the parser when handling the information pointer.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserCopyDescriptionCallBack

type CFXMLParserCreateXMLStructureCallBack

type CFXMLParserCreateXMLStructureCallBack = func(parser CFXMLParserRef, nodeDesc uintptr, info unsafe.Pointer) unsafe.Pointer

CFXMLParserCreateXMLStructureCallBack is callback function invoked when the parser encounters an XML open tag.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserCreateXMLStructureCallBack

type CFXMLParserEndXMLStructureCallBack

type CFXMLParserEndXMLStructureCallBack = func(parser CFXMLParserRef, xmlType unsafe.Pointer, info unsafe.Pointer)

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(parser CFXMLParserRef, error_ CFXMLParserStatusCode, info 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 uint

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 = 0xffffff
	// KCFXMLParserNoOptions: Leaves the XML as “intact” as possible (reports all structures; performs no replacements).
	KCFXMLParserNoOptions CFXMLParserOptions = 0
	// KCFXMLParserReplacePhysicalEntities: Replaces declared entities like `&lt`;.
	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 CFOptionFlags, versionOfNodes CFIndex, callBacks *CFXMLParserCallBacks, context *CFXMLParserContext) CFXMLParserRef

CFXMLParserCreate creates a new XML parser for the specified XML data.

It panics if CFXMLParserCreate is unavailable at run time; use TryCFXMLParserCreate to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserCreate

func CFXMLParserCreateWithDataFromURL deprecated

func CFXMLParserCreateWithDataFromURL(allocator CFAllocatorRef, dataSource CFURLRef, parseOptions CFOptionFlags, versionOfNodes CFIndex, callBacks *CFXMLParserCallBacks, context *CFXMLParserContext) CFXMLParserRef

CFXMLParserCreateWithDataFromURL creates a new XML parser for the specified XML data at the specified URL.

It panics if CFXMLParserCreateWithDataFromURL is unavailable at run time; use TryCFXMLParserCreateWithDataFromURL to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserCreateWithDataFromURL

func TryCFXMLParserCreate

func TryCFXMLParserCreate(allocator CFAllocatorRef, xmlData CFDataRef, dataSource CFURLRef, parseOptions CFOptionFlags, versionOfNodes CFIndex, callBacks *CFXMLParserCallBacks, context *CFXMLParserContext) (CFXMLParserRef, error)

TryCFXMLParserCreate is like CFXMLParserCreate but returns an error instead of panicking if CFXMLParserCreate is unavailable at run time.

func TryCFXMLParserCreateWithDataFromURL

func TryCFXMLParserCreateWithDataFromURL(allocator CFAllocatorRef, dataSource CFURLRef, parseOptions CFOptionFlags, versionOfNodes CFIndex, callBacks *CFXMLParserCallBacks, context *CFXMLParserContext) (CFXMLParserRef, error)

TryCFXMLParserCreateWithDataFromURL is like CFXMLParserCreateWithDataFromURL but returns an error instead of panicking if CFXMLParserCreateWithDataFromURL is unavailable at run time.

type CFXMLParserReleaseCallBack

type CFXMLParserReleaseCallBack = func(info unsafe.Pointer)

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(parser CFXMLParserRef, extID *CFXMLExternalID, info unsafe.Pointer) CFDataRef

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

type CFXMLParserRetainCallBack = func(info unsafe.Pointer) unsafe.Pointer

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
	// KCFXMLStatusParseSuccessful: Indicates the parser was successful.
	KCFXMLStatusParseSuccessful CFXMLParserStatusCode = 0
)

func CFXMLParserGetStatusCode deprecated

func CFXMLParserGetStatusCode(parser CFXMLParserRef) CFXMLParserStatusCode

CFXMLParserGetStatusCode returns a numeric code indicating the current status of the parser.

It panics if CFXMLParserGetStatusCode is unavailable at run time; use TryCFXMLParserGetStatusCode to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLParserGetStatusCode

func TryCFXMLParserGetStatusCode

func TryCFXMLParserGetStatusCode(parser CFXMLParserRef) (CFXMLParserStatusCode, error)

TryCFXMLParserGetStatusCode is like CFXMLParserGetStatusCode but returns an error instead of panicking if CFXMLParserGetStatusCode is unavailable at run time.

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 CFOptionFlags, versionOfNodes CFIndex) CFXMLTreeRef

CFXMLTreeCreateFromData parses the given XML data and returns the resulting CFXMLTree object.

It panics if CFXMLTreeCreateFromData is unavailable at run time; use TryCFXMLTreeCreateFromData to get an error instead.

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 CFOptionFlags, versionOfNodes CFIndex, errorDict *CFDictionaryRef) CFXMLTreeRef

CFXMLTreeCreateFromDataWithError parses the given XML data and returns the resulting CFXMLTree object and any error information.

It panics if CFXMLTreeCreateFromDataWithError is unavailable at run time; use TryCFXMLTreeCreateFromDataWithError to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLTreeCreateFromDataWithError

func CFXMLTreeCreateWithDataFromURL deprecated

func CFXMLTreeCreateWithDataFromURL(allocator CFAllocatorRef, dataSource CFURLRef, parseOptions CFOptionFlags, versionOfNodes CFIndex) CFXMLTreeRef

CFXMLTreeCreateWithDataFromURL creates a new CFXMLTree object by loading the data to be parsed directly from a data source.

It panics if CFXMLTreeCreateWithDataFromURL is unavailable at run time; use TryCFXMLTreeCreateWithDataFromURL to get an error instead.

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.

It panics if CFXMLTreeCreateWithNode is unavailable at run time; use TryCFXMLTreeCreateWithNode to get an error instead.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/CoreFoundation/CFXMLTreeCreateWithNode

func TryCFXMLTreeCreateFromData

func TryCFXMLTreeCreateFromData(allocator CFAllocatorRef, xmlData CFDataRef, dataSource CFURLRef, parseOptions CFOptionFlags, versionOfNodes CFIndex) (CFXMLTreeRef, error)

TryCFXMLTreeCreateFromData is like CFXMLTreeCreateFromData but returns an error instead of panicking if CFXMLTreeCreateFromData is unavailable at run time.

func TryCFXMLTreeCreateFromDataWithError

func TryCFXMLTreeCreateFromDataWithError(allocator CFAllocatorRef, xmlData CFDataRef, dataSource CFURLRef, parseOptions CFOptionFlags, versionOfNodes CFIndex, errorDict *CFDictionaryRef) (CFXMLTreeRef, error)

TryCFXMLTreeCreateFromDataWithError is like CFXMLTreeCreateFromDataWithError but returns an error instead of panicking if CFXMLTreeCreateFromDataWithError is unavailable at run time.

func TryCFXMLTreeCreateWithDataFromURL

func TryCFXMLTreeCreateWithDataFromURL(allocator CFAllocatorRef, dataSource CFURLRef, parseOptions CFOptionFlags, versionOfNodes CFIndex) (CFXMLTreeRef, error)

TryCFXMLTreeCreateWithDataFromURL is like CFXMLTreeCreateWithDataFromURL but returns an error instead of panicking if CFXMLTreeCreateWithDataFromURL is unavailable at run time.

func TryCFXMLTreeCreateWithNode

func TryCFXMLTreeCreateWithNode(allocator CFAllocatorRef, node unsafe.Pointer) (CFXMLTreeRef, error)

TryCFXMLTreeCreateWithNode is like CFXMLTreeCreateWithNode but returns an error instead of panicking if CFXMLTreeCreateWithNode is unavailable at run time.

type CGAffineTransform

type CGAffineTransform struct {
	A  CGFloat
	B  CGFloat
	C  CGFloat
	D  CGFloat
	Tx CGFloat
	Ty CGFloat
}

CGAffineTransform

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CGAffineTransform

type CGAffineTransformComponents

type CGAffineTransformComponents struct {
	Scale           CGSize
	HorizontalShear CGFloat
	Rotation        CGFloat
	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

type CGPoint struct {
	X CGFloat
	Y CGFloat
}

CGPoint

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CGPoint

type CGRect

type CGRect struct {
	Origin CGPoint
	Size   CGSize
}

CGRect

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/CGRect

type CGRectEdge

type CGRectEdge uint32

See: https://developer.apple.com/documentation/CoreFoundation/CGRectEdge

const (
	CGRectMaxXEdge CGRectEdge = 2
	CGRectMaxYEdge CGRectEdge = 3
	CGRectMinXEdge CGRectEdge = 0
	CGRectMinYEdge CGRectEdge = 1
)

func (CGRectEdge) String

func (e CGRectEdge) String() string

type CGSize

type CGSize struct {
	Width  CGFloat // A width value.
	Height CGFloat // A height value.

}

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 CGFloat // The x component of the vector.
	Dy CGFloat // 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 IUnknownVTbl

type IUnknownVTbl struct {

	// C: int (*)(void *, CFUUIDBytes, void **)
	QueryInterface uintptr
	// C: unsigned int (*)(void *)
	AddRef uintptr
	// C: unsigned int (*)(void *)
	Release uintptr
	// contains filtered or unexported fields
}

IUnknownVTbl

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreFoundation/IUnknownVTbl

type KCFBundleExecutableArchitecture

type KCFBundleExecutableArchitecture uint32
const (
	KCFBundleExecutableArchitectureARM64 KCFBundleExecutableArchitecture = 0x100000c
	// KCFBundleExecutableArchitectureI386: Specifies the 32-bit Intel architecture.
	KCFBundleExecutableArchitectureI386 KCFBundleExecutableArchitecture = 0x7
	// KCFBundleExecutableArchitecturePPC: Specifies the 32-bit PowerPC architecture.
	KCFBundleExecutableArchitecturePPC KCFBundleExecutableArchitecture = 0x12
	// KCFBundleExecutableArchitecturePPC64: Specifies the 64-bit PowerPC architecture.
	KCFBundleExecutableArchitecturePPC64 KCFBundleExecutableArchitecture = 0x1000012
	// KCFBundleExecutableArchitectureX86_64: Specifies the 64-bit Intel architecture.
	KCFBundleExecutableArchitectureX86_64 KCFBundleExecutableArchitecture = 0x1000007
)

func (KCFBundleExecutableArchitecture) String

type KCFMessagePort

type KCFMessagePort int32
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL