corefoundation

package
v0.5.0-preview Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Access low-level functions, primitive data types, and various collection types that are bridged seamlessly with the Foundation framework.

Full Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbsoluteTime

type AbsoluteTime TimeInterval

Type used to represent a specific point in time relative to the absolute reference date of 1 Jan 2001 00:00:00 GMT. Full Topic

type AllocatorAllocateCallBack

type AllocatorAllocateCallBack = func(allocSize Index, hint OptionFlags, info unsafe.Pointer) unsafe.Pointer

A prototype for a function callback that allocates memory of a requested size. Full Topic

type AllocatorCopyDescriptionCallBack

type AllocatorCopyDescriptionCallBack = func(info unsafe.Pointer) StringRef

A prototype for a function callback that provides a description of the specified data. Full Topic

type AllocatorDeallocateCallBack

type AllocatorDeallocateCallBack = func(ptr unsafe.Pointer, info unsafe.Pointer)

A prototype for a function callback that deallocates a block of memory. Full Topic

type AllocatorPreferredSizeCallBack

type AllocatorPreferredSizeCallBack = func(size Index, hint OptionFlags, info unsafe.Pointer) Index

A prototype for a function callback that gives the size of memory likely to be allocated, given a certain request. Full Topic

type AllocatorReallocateCallBack

type AllocatorReallocateCallBack = func(ptr unsafe.Pointer, newsize Index, hint OptionFlags, info unsafe.Pointer) unsafe.Pointer

A prototype for a function callback that reallocates memory of a requested size for an existing block of memory. Full Topic

type AllocatorRef

type AllocatorRef = unsafe.Pointer

type AllocatorReleaseCallBack

type AllocatorReleaseCallBack = func(info unsafe.Pointer)

A prototype for a function callback that releases the given data. Full Topic

type AllocatorRetainCallBack

type AllocatorRetainCallBack = func(info unsafe.Pointer) unsafe.Pointer

A prototype for a function callback that retains the given data. Full Topic

type ArrayApplierFunction

type ArrayApplierFunction = func(value unsafe.Pointer, context unsafe.Pointer)

Prototype of a callback function that may be applied to every value in an array. Full Topic

type ArrayCopyDescriptionCallBack

type ArrayCopyDescriptionCallBack = func(value unsafe.Pointer) StringRef

Prototype of a callback function used to get a description of a value in an array. Full Topic

type ArrayEqualCallBack

type ArrayEqualCallBack = func(value1 unsafe.Pointer, value2 unsafe.Pointer) bool

Prototype of a callback function used to determine if two values in an array are equal. Full Topic

type ArrayRef

type ArrayRef = unsafe.Pointer

type ArrayReleaseCallBack

type ArrayReleaseCallBack = func(allocator AllocatorRef, value unsafe.Pointer)

Prototype of a callback function used to release a value before it’s removed from an array. Full Topic

type ArrayRetainCallBack

type ArrayRetainCallBack = func(allocator AllocatorRef, value unsafe.Pointer) unsafe.Pointer

Prototype of a callback function used to retain a value being added to an array. Full Topic

type BagApplierFunction

type BagApplierFunction = func(value unsafe.Pointer, context unsafe.Pointer)

Prototype of a callback function that may be applied to every value in a bag. Full Topic

type BagCopyDescriptionCallBack

type BagCopyDescriptionCallBack = func(value unsafe.Pointer) StringRef

Prototype of a callback function used to get a description of a value in a bag. Full Topic

type BagEqualCallBack

type BagEqualCallBack = func(value1 unsafe.Pointer, value2 unsafe.Pointer) bool

Prototype of a callback function used to determine if two values in a bag are equal. Full Topic

type BagHashCallBack

type BagHashCallBack = func(value unsafe.Pointer) HashCode

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. Full Topic

type BagReleaseCallBack

type BagReleaseCallBack = func(allocator AllocatorRef, value unsafe.Pointer)

Prototype of a callback function used to release a value before it’s removed from a bag. Full Topic

type BagRetainCallBack

type BagRetainCallBack = func(allocator AllocatorRef, value unsafe.Pointer) unsafe.Pointer

Prototype of a callback function used to retain a value being added to a bag. Full Topic

type BinaryHeapApplierFunction

type BinaryHeapApplierFunction = func(val unsafe.Pointer, context unsafe.Pointer)

Callback function used to apply a function to all members of a binary heap. Full Topic

type Bit

type Bit uint32

A binary value of either 0 or 1. Full Topic

type BundleRefNum

type BundleRefNum int

Type that identifies a distinct reference number for a resource map. Full Topic

type ByteOrder

type ByteOrder Index

Flags that identify byte order. Full Topic

type CalendarUnit

type CalendarUnit OptionFlags

CFCalendarUnit constants are used to specify calendrical units, such as day or month, in various calendar calculations. Full Topic

const (
	KCalendarUnitDay               CalendarUnit = 16
	KCalendarUnitEra               CalendarUnit = 2
	KCalendarUnitHour              CalendarUnit = 32
	KCalendarUnitMinute            CalendarUnit = 64
	KCalendarUnitMonth             CalendarUnit = 8
	KCalendarUnitQuarter           CalendarUnit = 2048
	KCalendarUnitSecond            CalendarUnit = 128
	KCalendarUnitWeek              CalendarUnit = 256
	KCalendarUnitWeekOfMonth       CalendarUnit = 4096
	KCalendarUnitWeekOfYear        CalendarUnit = 8192
	KCalendarUnitWeekday           CalendarUnit = 512
	KCalendarUnitWeekdayOrdinal    CalendarUnit = 1024
	KCalendarUnitYear              CalendarUnit = 4
	KCalendarUnitYearForWeekOfYear CalendarUnit = 16384
)

type CharacterSetPredefinedSet

type CharacterSetPredefinedSet Index

Defines a predefined character set. Full Topic

const (
	KCharacterSetAlphaNumeric         CharacterSetPredefinedSet = 10
	KCharacterSetCapitalizedLetter    CharacterSetPredefinedSet = 13
	KCharacterSetControl              CharacterSetPredefinedSet = 1
	KCharacterSetDecimalDigit         CharacterSetPredefinedSet = 4
	KCharacterSetDecomposable         CharacterSetPredefinedSet = 9
	KCharacterSetIllegal              CharacterSetPredefinedSet = 12
	KCharacterSetLetter               CharacterSetPredefinedSet = 5
	KCharacterSetLowercaseLetter      CharacterSetPredefinedSet = 6
	KCharacterSetNewline              CharacterSetPredefinedSet = 15
	KCharacterSetNonBase              CharacterSetPredefinedSet = 8
	KCharacterSetPunctuation          CharacterSetPredefinedSet = 11
	KCharacterSetSymbol               CharacterSetPredefinedSet = 14
	KCharacterSetUppercaseLetter      CharacterSetPredefinedSet = 7
	KCharacterSetWhitespace           CharacterSetPredefinedSet = 2
	KCharacterSetWhitespaceAndNewline CharacterSetPredefinedSet = 3
)

type ComparatorFunction

type ComparatorFunction = func(val1 unsafe.Pointer, val2 unsafe.Pointer, context unsafe.Pointer) ComparisonResult

Callback function that compares two values. You provide a pointer to this callback in certain Core Foundation sorting functions. Full Topic

type ComparisonResult

type ComparisonResult Index

Constants returned by comparison functions, indicating whether a value is equal to, less than, or greater than another value. Full Topic

const (
	KCompareEqualTo     ComparisonResult = 0
	KCompareGreaterThan ComparisonResult = 1
	KCompareLessThan    ComparisonResult = -1
)

type DataRef

type DataRef = unsafe.Pointer

type DataSearchFlags

type DataSearchFlags OptionFlags

A CFOptionFlags type for specifying options for searching. Full Topic

const (
	KDataSearchAnchored  DataSearchFlags = 2
	KDataSearchBackwards DataSearchFlags = 1
)

type DateFormatterStyle

type DateFormatterStyle Index

Data type for predefined date and time format styles. Full Topic

const (
	KDateFormatterFullStyle   DateFormatterStyle = 4
	KDateFormatterLongStyle   DateFormatterStyle = 3
	KDateFormatterMediumStyle DateFormatterStyle = 2
	KDateFormatterNoStyle     DateFormatterStyle = 0
	KDateFormatterShortStyle  DateFormatterStyle = 1
)

type DictionaryApplierFunction

type DictionaryApplierFunction = func(key unsafe.Pointer, value unsafe.Pointer, context unsafe.Pointer)

Prototype of a callback function that may be applied to every key-value pair in a dictionary. Full Topic

type DictionaryCopyDescriptionCallBack

type DictionaryCopyDescriptionCallBack = func(value unsafe.Pointer) StringRef

Prototype of a callback function used to get a description of a value or key in a dictionary. Full Topic

type DictionaryEqualCallBack

type DictionaryEqualCallBack = func(value1 unsafe.Pointer, value2 unsafe.Pointer) bool

Prototype of a callback function used to determine if two values or keys in a dictionary are equal. Full Topic

type DictionaryHashCallBack

type DictionaryHashCallBack = func(value unsafe.Pointer) HashCode

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. Full Topic

type DictionaryRef

type DictionaryRef = unsafe.Pointer

type DictionaryReleaseCallBack

type DictionaryReleaseCallBack = func(allocator AllocatorRef, value unsafe.Pointer)

Prototype of a callback function used to release a key-value pair before it’s removed from a dictionary. Full Topic

type DictionaryRetainCallBack

type DictionaryRetainCallBack = func(allocator AllocatorRef, value unsafe.Pointer) unsafe.Pointer

Prototype of a callback function used to retain a value or key being added to a dictionary. Full Topic

type FileDescriptorCallBack

type FileDescriptorCallBack = func(f FileDescriptorRef, callBackTypes OptionFlags, info unsafe.Pointer)

Defines a structure for a callback for a CFFileDescriptor. Full Topic

type FileDescriptorNativeDescriptor

type FileDescriptorNativeDescriptor int

Defines a type for the native file descriptor. Full Topic

type FileDescriptorRef

type FileDescriptorRef = unsafe.Pointer

type FileSecurityClearOptions

type FileSecurityClearOptions OptionFlags
[Full Topic]
const (
	KFileSecurityClearAccessControlList FileSecurityClearOptions = 32
	KFileSecurityClearGroup             FileSecurityClearOptions = 2
	KFileSecurityClearGroupUUID         FileSecurityClearOptions = 16
	KFileSecurityClearMode              FileSecurityClearOptions = 4
	KFileSecurityClearOwner             FileSecurityClearOptions = 1
	KFileSecurityClearOwnerUUID         FileSecurityClearOptions = 8
)

type GregorianUnitFlags

type GregorianUnitFlags OptionFlags

These option flags are used as a mask to indicate a specific set of fields in the CFGregorianDate or CFGregorianUnits structures. Full Topic

const (
	KGregorianAllUnits     GregorianUnitFlags = 16777215
	KGregorianUnitsDays    GregorianUnitFlags = 4
	KGregorianUnitsHours   GregorianUnitFlags = 8
	KGregorianUnitsMinutes GregorianUnitFlags = 16
	KGregorianUnitsMonths  GregorianUnitFlags = 2
	KGregorianUnitsSeconds GregorianUnitFlags = 32
	KGregorianUnitsYears   GregorianUnitFlags = 1
)

type HashCode

type HashCode int32

A type for hash codes returned by the CFHash function. Full Topic

type ISO8601DateFormatOptions

type ISO8601DateFormatOptions OptionFlags
[Full Topic]
const (
	KISO8601DateFormatWithColonSeparatorInTime     ISO8601DateFormatOptions = 512
	KISO8601DateFormatWithColonSeparatorInTimeZone ISO8601DateFormatOptions = 1024
	KISO8601DateFormatWithDashSeparatorInDate      ISO8601DateFormatOptions = 256
	KISO8601DateFormatWithDay                      ISO8601DateFormatOptions = 16
	KISO8601DateFormatWithFractionalSeconds        ISO8601DateFormatOptions = 2048
	KISO8601DateFormatWithFullDate                 ISO8601DateFormatOptions = 275
	KISO8601DateFormatWithFullTime                 ISO8601DateFormatOptions = 1632
	KISO8601DateFormatWithInternetDateTime         ISO8601DateFormatOptions = 1907
	KISO8601DateFormatWithMonth                    ISO8601DateFormatOptions = 2
	KISO8601DateFormatWithSpaceBetweenDateAndTime  ISO8601DateFormatOptions = 128
	KISO8601DateFormatWithTime                     ISO8601DateFormatOptions = 32
	KISO8601DateFormatWithTimeZone                 ISO8601DateFormatOptions = 64
	KISO8601DateFormatWithWeekOfYear               ISO8601DateFormatOptions = 4
	KISO8601DateFormatWithYear                     ISO8601DateFormatOptions = 1
)

type Index

type Index int32

Priority values used for kAXPriorityKey Full Topic

const (
	KNotFound Index = -1
)

type LocaleLanguageDirection

type LocaleLanguageDirection Index

These constants describe the text direction for a language. They are returned by the functions CFLocaleGetLanguageCharacterDirection and CFLocaleGetLanguageLineDirection. Full Topic

const (
	KLocaleLanguageDirectionBottomToTop LocaleLanguageDirection = 4
	KLocaleLanguageDirectionLeftToRight LocaleLanguageDirection = 1
	KLocaleLanguageDirectionRightToLeft LocaleLanguageDirection = 2
	KLocaleLanguageDirectionTopToBottom LocaleLanguageDirection = 3
	KLocaleLanguageDirectionUnknown     LocaleLanguageDirection = 0
)

type MachPortCallBack

type MachPortCallBack = func(port MachPortRef, msg unsafe.Pointer, size Index, info unsafe.Pointer)

Callback invoked to process a message received on a CFMachPort object. Full Topic

type MachPortInvalidationCallBack

type MachPortInvalidationCallBack = func(port MachPortRef, info unsafe.Pointer)

Callback invoked when a CFMachPort object is invalidated. Full Topic

type MachPortRef

type MachPortRef = unsafe.Pointer

type MessagePortCallBack

type MessagePortCallBack = func(local MessagePortRef, msgid int32, data DataRef, info unsafe.Pointer) DataRef

Callback invoked to process a message received on a CFMessagePort object. Full Topic

type MessagePortInvalidationCallBack

type MessagePortInvalidationCallBack = func(ms MessagePortRef, info unsafe.Pointer)

Callback invoked when a CFMessagePort object is invalidated. Full Topic

type MessagePortRef

type MessagePortRef = unsafe.Pointer

type NotificationCallback

type NotificationCallback = func(center NotificationCenterRef, observer unsafe.Pointer, name NotificationName, object unsafe.Pointer, userInfo DictionaryRef)

Callback function invoked for each observer of a notification when the notification is posted. Full Topic

type NotificationCenterRef

type NotificationCenterRef = unsafe.Pointer

type NotificationName

type NotificationName = unsafe.Pointer

type NotificationSuspensionBehavior

type NotificationSuspensionBehavior Index

Suspension flags that indicate how distributed notifications should be handled when the receiving application is in the background. Full Topic

const (
	NotificationSuspensionBehaviorCoalesce           NotificationSuspensionBehavior = 2
	NotificationSuspensionBehaviorDeliverImmediately NotificationSuspensionBehavior = 4
	NotificationSuspensionBehaviorDrop               NotificationSuspensionBehavior = 1
	NotificationSuspensionBehaviorHold               NotificationSuspensionBehavior = 3
)

type NumberFormatterOptionFlags

type NumberFormatterOptionFlags OptionFlags

Type for constants specifying how numbers should be parsed. Full Topic

const (
	KNumberFormatterParseIntegersOnly NumberFormatterOptionFlags = 1
)

type NumberFormatterPadPosition

type NumberFormatterPadPosition Index

Type for constants specifying how numbers should be padded. Full Topic

const (
	KNumberFormatterPadAfterPrefix  NumberFormatterPadPosition = 1
	KNumberFormatterPadAfterSuffix  NumberFormatterPadPosition = 3
	KNumberFormatterPadBeforePrefix NumberFormatterPadPosition = 0
	KNumberFormatterPadBeforeSuffix NumberFormatterPadPosition = 2
)

type NumberFormatterRoundingMode

type NumberFormatterRoundingMode Index

These constants are used to specify how numbers should be rounded. Full Topic

const (
	KNumberFormatterRoundCeiling  NumberFormatterRoundingMode = 0
	KNumberFormatterRoundDown     NumberFormatterRoundingMode = 2
	KNumberFormatterRoundFloor    NumberFormatterRoundingMode = 1
	KNumberFormatterRoundHalfDown NumberFormatterRoundingMode = 5
	KNumberFormatterRoundHalfEven NumberFormatterRoundingMode = 4
	KNumberFormatterRoundHalfUp   NumberFormatterRoundingMode = 6
	KNumberFormatterRoundUp       NumberFormatterRoundingMode = 3
)

type NumberFormatterStyle

type NumberFormatterStyle Index

Type for constants specifying a formatter style. Full Topic

const (
	KNumberFormatterCurrencyAccountingStyle NumberFormatterStyle = 10
	KNumberFormatterCurrencyISOCodeStyle    NumberFormatterStyle = 8
	KNumberFormatterCurrencyPluralStyle     NumberFormatterStyle = 9
	KNumberFormatterCurrencyStyle           NumberFormatterStyle = 2
	KNumberFormatterDecimalStyle            NumberFormatterStyle = 1
	KNumberFormatterNoStyle                 NumberFormatterStyle = 0
	KNumberFormatterOrdinalStyle            NumberFormatterStyle = 6
	KNumberFormatterPercentStyle            NumberFormatterStyle = 3
	KNumberFormatterScientificStyle         NumberFormatterStyle = 4
	KNumberFormatterSpellOutStyle           NumberFormatterStyle = 5
)

type NumberType

type NumberType Index

Flags used by CFNumber to indicate the data type of a value. Full Topic

const (
	KNumberCFIndexType   NumberType = 14
	KNumberCGFloatType   NumberType = 16
	KNumberCharType      NumberType = 7
	KNumberDoubleType    NumberType = 13
	KNumberFloat32Type   NumberType = 5
	KNumberFloat64Type   NumberType = 6
	KNumberFloatType     NumberType = 12
	KNumberIntType       NumberType = 9
	KNumberLongLongType  NumberType = 11
	KNumberLongType      NumberType = 10
	KNumberMaxType       NumberType = 16
	KNumberNSIntegerType NumberType = 15
	KNumberSInt16Type    NumberType = 2
	KNumberSInt32Type    NumberType = 3
	KNumberSInt64Type    NumberType = 4
	KNumberSInt8Type     NumberType = 1
	KNumberShortType     NumberType = 8
)

type OptionFlags

type OptionFlags int32

A bitfield used for passing special allocation and other requests into Core Foundation functions. Full Topic

type PlugInDynamicRegisterFunction

type PlugInDynamicRegisterFunction = func(plugIn unsafe.Pointer)

A callback which provides a plug-in the opportunity to dynamically register its types with a host. Full Topic

type PlugInFactoryFunction

type PlugInFactoryFunction = func(allocator AllocatorRef, typeUUID UUIDRef) unsafe.Pointer

Callback function that a plug-in author must implement to create a plug-in instance. Full Topic

type PlugInInstanceDeallocateInstanceDataFunction

type PlugInInstanceDeallocateInstanceDataFunction = func(instanceData unsafe.Pointer)

Not recommended. Full Topic

type PlugInInstanceGetInterfaceFunction

type PlugInInstanceGetInterfaceFunction = func(instance PlugInInstanceRef, interfaceName StringRef, ftbl unsafe.Pointer) bool

Not recommended. Full Topic

type PlugInInstanceRef

type PlugInInstanceRef = unsafe.Pointer

type PlugInUnloadFunction

type PlugInUnloadFunction = func(plugIn unsafe.Pointer)

Callback function that is called, if present, just before a plug-in's code is unloaded. Full Topic

type PropertyListFormat

type PropertyListFormat Index

Specifies the format of a property list. Full Topic

const (
	KPropertyListBinaryFormat_v1_0 PropertyListFormat = 200
	KPropertyListOpenStepFormat    PropertyListFormat = 1
	KPropertyListXMLFormat_v1_0    PropertyListFormat = 100
)

type PropertyListMutabilityOptions

type PropertyListMutabilityOptions OptionFlags

Type for flags that determine the degree of mutability of newly created property lists. Full Topic

const (
	KPropertyListImmutable                  PropertyListMutabilityOptions = 0
	KPropertyListMutableContainers          PropertyListMutabilityOptions = 1
	KPropertyListMutableContainersAndLeaves PropertyListMutabilityOptions = 2
)

type ReadStreamClientCallBack

type ReadStreamClientCallBack = func(stream ReadStreamRef, type_ StreamEventType, clientCallBackInfo unsafe.Pointer)

Callback invoked when certain types of activity takes place on a readable stream. Full Topic

type ReadStreamRef

type ReadStreamRef = unsafe.Pointer

type RunLoopActivity

type RunLoopActivity OptionFlags

Run loop activity stages in which run loop observers can be scheduled. Full Topic

const (
	KRunLoopAfterWaiting  RunLoopActivity = 64
	KRunLoopAllActivities RunLoopActivity = 268435455
	KRunLoopBeforeSources RunLoopActivity = 4
	KRunLoopBeforeTimers  RunLoopActivity = 2
	KRunLoopBeforeWaiting RunLoopActivity = 32
	KRunLoopEntry         RunLoopActivity = 1
	KRunLoopExit          RunLoopActivity = 128
)

type RunLoopObserverCallBack

type RunLoopObserverCallBack = func(observer RunLoopObserverRef, activity RunLoopActivity, info unsafe.Pointer)

Callback invoked when a CFRunLoopObserver object is fired. Full Topic

type RunLoopObserverRef

type RunLoopObserverRef = unsafe.Pointer

type RunLoopRef

type RunLoopRef = unsafe.Pointer

type RunLoopRunResult

type RunLoopRunResult int32
[Full Topic]
const (
	KRunLoopRunFinished      RunLoopRunResult = 1
	KRunLoopRunHandledSource RunLoopRunResult = 4
	KRunLoopRunStopped       RunLoopRunResult = 2
	KRunLoopRunTimedOut      RunLoopRunResult = 3
)

type RunLoopTimerCallBack

type RunLoopTimerCallBack = func(timer RunLoopTimerRef, info unsafe.Pointer)

Callback invoked when a CFRunLoopTimer object fires. Full Topic

type RunLoopTimerRef

type RunLoopTimerRef = unsafe.Pointer

type SetApplierFunction

type SetApplierFunction = func(value unsafe.Pointer, context unsafe.Pointer)

Prototype of a callback function that may be applied to every value in a set. Full Topic

type SetCopyDescriptionCallBack

type SetCopyDescriptionCallBack = func(value unsafe.Pointer) StringRef

Prototype of a callback function used to get a description of a value in a set. Full Topic

type SetEqualCallBack

type SetEqualCallBack = func(value1 unsafe.Pointer, value2 unsafe.Pointer) bool

Prototype of a callback function used to determine if two values in a set are equal. Full Topic

type SetHashCallBack

type SetHashCallBack = func(value unsafe.Pointer) HashCode

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. Full Topic

type SetReleaseCallBack

type SetReleaseCallBack = func(allocator AllocatorRef, value unsafe.Pointer)

Prototype of a callback function used to release a value before it’s removed from a set. Full Topic

type SetRetainCallBack

type SetRetainCallBack = func(allocator AllocatorRef, value unsafe.Pointer) unsafe.Pointer

Prototype of a callback function used to retain a value being added to a set. Full Topic

type SocketCallBack

type SocketCallBack = func(s SocketRef, type_ SocketCallBackType, address DataRef, data unsafe.Pointer, info unsafe.Pointer)

Callback invoked when certain types of activity takes place on a CFSocket object. Full Topic

type SocketCallBackType

type SocketCallBackType OptionFlags

Types of socket activity that can cause the callback function of a CFSocket object to be called. Full Topic

const (
	KSocketAcceptCallBack  SocketCallBackType = 2
	KSocketConnectCallBack SocketCallBackType = 4
	KSocketDataCallBack    SocketCallBackType = 3
	KSocketNoCallBack      SocketCallBackType = 0
	KSocketReadCallBack    SocketCallBackType = 1
	KSocketWriteCallBack   SocketCallBackType = 8
)

type SocketError

type SocketError Index

Error codes for many CFSocket functions. Full Topic

const (
	KSocketError   SocketError = -1
	KSocketSuccess SocketError = 0
	KSocketTimeout SocketError = -2
)

type SocketNativeHandle

type SocketNativeHandle int

Type for the platform-specific native socket handle. Full Topic

type SocketRef

type SocketRef = unsafe.Pointer

type StreamErrorDomain

type StreamErrorDomain Index

Defines constants for values returned in the domain field of the CFStreamError structure. Full Topic

const (
	KStreamErrorDomainCustom      StreamErrorDomain = -1
	KStreamErrorDomainMacOSStatus StreamErrorDomain = 2
	KStreamErrorDomainPOSIX       StreamErrorDomain = 1
)

type StreamEventType

type StreamEventType OptionFlags

Defines constants for stream-related events. Full Topic

const (
	KStreamEventCanAcceptBytes    StreamEventType = 4
	KStreamEventEndEncountered    StreamEventType = 16
	KStreamEventErrorOccurred     StreamEventType = 8
	KStreamEventHasBytesAvailable StreamEventType = 2
	KStreamEventNone              StreamEventType = 0
	KStreamEventOpenCompleted     StreamEventType = 1
)

type StreamStatus

type StreamStatus Index

Constants that describe the status of a stream. Full Topic

const (
	KStreamStatusAtEnd   StreamStatus = 5
	KStreamStatusClosed  StreamStatus = 6
	KStreamStatusError   StreamStatus = 7
	KStreamStatusNotOpen StreamStatus = 0
	KStreamStatusOpen    StreamStatus = 2
	KStreamStatusOpening StreamStatus = 1
	KStreamStatusReading StreamStatus = 3
	KStreamStatusWriting StreamStatus = 4
)

type StringBuiltInEncodings

type StringBuiltInEncodings StringEncoding

Encodings that are built-in on all platforms on which macOS runs. Full Topic

const (
	KStringEncodingASCII         StringBuiltInEncodings = 1536
	KStringEncodingISOLatin1     StringBuiltInEncodings = 513
	KStringEncodingMacRoman      StringBuiltInEncodings = 0
	KStringEncodingNextStepLatin StringBuiltInEncodings = 2817
	KStringEncodingNonLossyASCII StringBuiltInEncodings = 3071
	KStringEncodingUTF16         StringBuiltInEncodings = 256
	KStringEncodingUTF16BE       StringBuiltInEncodings = 268435712
	KStringEncodingUTF16LE       StringBuiltInEncodings = 335544576
	KStringEncodingUTF32         StringBuiltInEncodings = 201326848
	KStringEncodingUTF32BE       StringBuiltInEncodings = 402653440
	KStringEncodingUTF32LE       StringBuiltInEncodings = 469762304
	KStringEncodingUTF8          StringBuiltInEncodings = 134217984
	KStringEncodingUnicode       StringBuiltInEncodings = 256
	KStringEncodingWindowsLatin1 StringBuiltInEncodings = 1280
)

type StringCompareFlags

type StringCompareFlags OptionFlags

A CFOptionFlags type for specifying options for string comparison . Full Topic

const (
	KCompareAnchored             StringCompareFlags = 8
	KCompareBackwards            StringCompareFlags = 4
	KCompareCaseInsensitive      StringCompareFlags = 1
	KCompareDiacriticInsensitive StringCompareFlags = 128
	KCompareForcedOrdering       StringCompareFlags = 512
	KCompareLocalized            StringCompareFlags = 32
	KCompareNonliteral           StringCompareFlags = 16
	KCompareNumerically          StringCompareFlags = 64
	KCompareWidthInsensitive     StringCompareFlags = 256
)

type StringEncoding

type StringEncoding uint32

An integer type for constants used to specify supported string encodings in various CFString functions. Full Topic

type StringEncodings

type StringEncodings Index

Index type for constants used to specify external string encodings. Full Topic

const (
	KStringEncodingANSEL                   StringEncodings = 1537
	KStringEncodingBig5                    StringEncodings = 2563
	KStringEncodingBig5_E                  StringEncodings = 2569
	KStringEncodingBig5_HKSCS_1999         StringEncodings = 2566
	KStringEncodingCNS_11643_92_P1         StringEncodings = 1617
	KStringEncodingCNS_11643_92_P2         StringEncodings = 1618
	KStringEncodingCNS_11643_92_P3         StringEncodings = 1619
	KStringEncodingDOSArabic               StringEncodings = 1049
	KStringEncodingDOSBalticRim            StringEncodings = 1030
	KStringEncodingDOSCanadianFrench       StringEncodings = 1048
	KStringEncodingDOSChineseSimplif       StringEncodings = 1057
	KStringEncodingDOSChineseTrad          StringEncodings = 1059
	KStringEncodingDOSCyrillic             StringEncodings = 1043
	KStringEncodingDOSGreek                StringEncodings = 1029
	KStringEncodingDOSGreek1               StringEncodings = 1041
	KStringEncodingDOSGreek2               StringEncodings = 1052
	KStringEncodingDOSHebrew               StringEncodings = 1047
	KStringEncodingDOSIcelandic            StringEncodings = 1046
	KStringEncodingDOSJapanese             StringEncodings = 1056
	KStringEncodingDOSKorean               StringEncodings = 1058
	KStringEncodingDOSLatin1               StringEncodings = 1040
	KStringEncodingDOSLatin2               StringEncodings = 1042
	KStringEncodingDOSLatinUS              StringEncodings = 1024
	KStringEncodingDOSNordic               StringEncodings = 1050
	KStringEncodingDOSPortuguese           StringEncodings = 1045
	KStringEncodingDOSRussian              StringEncodings = 1051
	KStringEncodingDOSThai                 StringEncodings = 1053
	KStringEncodingDOSTurkish              StringEncodings = 1044
	KStringEncodingEBCDIC_CP037            StringEncodings = 3074
	KStringEncodingEBCDIC_US               StringEncodings = 3073
	KStringEncodingEUC_CN                  StringEncodings = 2352
	KStringEncodingEUC_JP                  StringEncodings = 2336
	KStringEncodingEUC_KR                  StringEncodings = 2368
	KStringEncodingEUC_TW                  StringEncodings = 2353
	KStringEncodingGBK_95                  StringEncodings = 1585
	KStringEncodingGB_18030_2000           StringEncodings = 1586
	KStringEncodingGB_2312_80              StringEncodings = 1584
	KStringEncodingHZ_GB_2312              StringEncodings = 2565
	KStringEncodingISOLatin10              StringEncodings = 528
	KStringEncodingISOLatin2               StringEncodings = 514
	KStringEncodingISOLatin3               StringEncodings = 515
	KStringEncodingISOLatin4               StringEncodings = 516
	KStringEncodingISOLatin5               StringEncodings = 521
	KStringEncodingISOLatin6               StringEncodings = 522
	KStringEncodingISOLatin7               StringEncodings = 525
	KStringEncodingISOLatin8               StringEncodings = 526
	KStringEncodingISOLatin9               StringEncodings = 527
	KStringEncodingISOLatinArabic          StringEncodings = 518
	KStringEncodingISOLatinCyrillic        StringEncodings = 517
	KStringEncodingISOLatinGreek           StringEncodings = 519
	KStringEncodingISOLatinHebrew          StringEncodings = 520
	KStringEncodingISOLatinThai            StringEncodings = 523
	KStringEncodingISO_2022_CN             StringEncodings = 2096
	KStringEncodingISO_2022_CN_EXT         StringEncodings = 2097
	KStringEncodingISO_2022_JP             StringEncodings = 2080
	KStringEncodingISO_2022_JP_1           StringEncodings = 2082
	KStringEncodingISO_2022_JP_2           StringEncodings = 2081
	KStringEncodingISO_2022_JP_3           StringEncodings = 2083
	KStringEncodingISO_2022_KR             StringEncodings = 2112
	KStringEncodingJIS_C6226_78            StringEncodings = 1572
	KStringEncodingJIS_X0201_76            StringEncodings = 1568
	KStringEncodingJIS_X0208_83            StringEncodings = 1569
	KStringEncodingJIS_X0208_90            StringEncodings = 1570
	KStringEncodingJIS_X0212_90            StringEncodings = 1571
	KStringEncodingKOI8_R                  StringEncodings = 2562
	KStringEncodingKOI8_U                  StringEncodings = 2568
	KStringEncodingKSC_5601_87             StringEncodings = 1600
	KStringEncodingKSC_5601_92_Johab       StringEncodings = 1601
	KStringEncodingMacArabic               StringEncodings = 4
	KStringEncodingMacArmenian             StringEncodings = 24
	KStringEncodingMacBengali              StringEncodings = 13
	KStringEncodingMacBurmese              StringEncodings = 19
	KStringEncodingMacCeltic               StringEncodings = 39
	KStringEncodingMacCentralEurRoman      StringEncodings = 29
	KStringEncodingMacChineseSimp          StringEncodings = 25
	KStringEncodingMacChineseTrad          StringEncodings = 2
	KStringEncodingMacCroatian             StringEncodings = 36
	KStringEncodingMacCyrillic             StringEncodings = 7
	KStringEncodingMacDevanagari           StringEncodings = 9
	KStringEncodingMacDingbats             StringEncodings = 34
	KStringEncodingMacEthiopic             StringEncodings = 28
	KStringEncodingMacExtArabic            StringEncodings = 31
	KStringEncodingMacFarsi                StringEncodings = 140
	KStringEncodingMacGaelic               StringEncodings = 40
	KStringEncodingMacGeorgian             StringEncodings = 23
	KStringEncodingMacGreek                StringEncodings = 6
	KStringEncodingMacGujarati             StringEncodings = 11
	KStringEncodingMacGurmukhi             StringEncodings = 10
	KStringEncodingMacHFS                  StringEncodings = 255
	KStringEncodingMacHebrew               StringEncodings = 5
	KStringEncodingMacIcelandic            StringEncodings = 37
	KStringEncodingMacInuit                StringEncodings = 236
	KStringEncodingMacJapanese             StringEncodings = 1
	KStringEncodingMacKannada              StringEncodings = 16
	KStringEncodingMacKhmer                StringEncodings = 20
	KStringEncodingMacKorean               StringEncodings = 3
	KStringEncodingMacLaotian              StringEncodings = 22
	KStringEncodingMacMalayalam            StringEncodings = 17
	KStringEncodingMacMongolian            StringEncodings = 27
	KStringEncodingMacOriya                StringEncodings = 12
	KStringEncodingMacRomanLatin1          StringEncodings = 2564
	KStringEncodingMacRomanian             StringEncodings = 38
	KStringEncodingMacSinhalese            StringEncodings = 18
	KStringEncodingMacSymbol               StringEncodings = 33
	KStringEncodingMacTamil                StringEncodings = 14
	KStringEncodingMacTelugu               StringEncodings = 15
	KStringEncodingMacThai                 StringEncodings = 21
	KStringEncodingMacTibetan              StringEncodings = 26
	KStringEncodingMacTurkish              StringEncodings = 35
	KStringEncodingMacUkrainian            StringEncodings = 152
	KStringEncodingMacVT100                StringEncodings = 252
	KStringEncodingMacVietnamese           StringEncodings = 30
	KStringEncodingNextStepJapanese        StringEncodings = 2818
	KStringEncodingShiftJIS                StringEncodings = 2561
	KStringEncodingShiftJIS_X0213          StringEncodings = 1576
	KStringEncodingShiftJIS_X0213_00       StringEncodings = 1576
	KStringEncodingShiftJIS_X0213_MenKuTen StringEncodings = 1577
	KStringEncodingUTF7                    StringEncodings = 67109120
	KStringEncodingUTF7_IMAP               StringEncodings = 2576
	KStringEncodingVISCII                  StringEncodings = 2567
	KStringEncodingWindowsArabic           StringEncodings = 1286
	KStringEncodingWindowsBalticRim        StringEncodings = 1287
	KStringEncodingWindowsCyrillic         StringEncodings = 1282
	KStringEncodingWindowsGreek            StringEncodings = 1283
	KStringEncodingWindowsHebrew           StringEncodings = 1285
	KStringEncodingWindowsKoreanJohab      StringEncodings = 1296
	KStringEncodingWindowsLatin2           StringEncodings = 1281
	KStringEncodingWindowsLatin5           StringEncodings = 1284
	KStringEncodingWindowsVietnamese       StringEncodings = 1288
)

type StringNormalizationForm

type StringNormalizationForm Index

Unicode normalization forms as described in Unicode Technical Report #15. Full Topic

const (
	KStringNormalizationFormC  StringNormalizationForm = 2
	KStringNormalizationFormD  StringNormalizationForm = 0
	KStringNormalizationFormKC StringNormalizationForm = 3
	KStringNormalizationFormKD StringNormalizationForm = 1
)

type StringRef

type StringRef = unsafe.Pointer

type StringTokenizerTokenType

type StringTokenizerTokenType OptionFlags

Token types returned by CFStringTokenizerGoToTokenAtIndex and CFStringTokenizerAdvanceToNextToken. Full Topic

const (
	KStringTokenizerTokenHasDerivedSubTokensMask StringTokenizerTokenType = 4
	KStringTokenizerTokenHasHasNumbersMask       StringTokenizerTokenType = 8
	KStringTokenizerTokenHasNonLettersMask       StringTokenizerTokenType = 16
	KStringTokenizerTokenHasSubTokensMask        StringTokenizerTokenType = 2
	KStringTokenizerTokenIsCJWordMask            StringTokenizerTokenType = 32
	KStringTokenizerTokenNone                    StringTokenizerTokenType = 0
	KStringTokenizerTokenNormal                  StringTokenizerTokenType = 1
)

type TimeInterval

type TimeInterval float64

Type used to represent elapsed time in seconds. Full Topic

const (
	KAbsoluteTimeIntervalSince1904 TimeInterval = 3061152000.000000
	KAbsoluteTimeIntervalSince1970 TimeInterval = 978307200.000000
)

type TimeZoneNameStyle

type TimeZoneNameStyle Index

Index type for constants used to specify styles of time zone names. Full Topic

const (
	KTimeZoneNameStyleDaylightSaving      TimeZoneNameStyle = 2
	KTimeZoneNameStyleGeneric             TimeZoneNameStyle = 4
	KTimeZoneNameStyleShortDaylightSaving TimeZoneNameStyle = 3
	KTimeZoneNameStyleShortGeneric        TimeZoneNameStyle = 5
	KTimeZoneNameStyleShortStandard       TimeZoneNameStyle = 1
	KTimeZoneNameStyleStandard            TimeZoneNameStyle = 0
)

type TreeApplierFunction

type TreeApplierFunction = func(value unsafe.Pointer, context unsafe.Pointer)

Type of the callback function used by the CFTree apply function. Full Topic

type TreeCopyDescriptionCallBack

type TreeCopyDescriptionCallBack = func(info unsafe.Pointer) StringRef

Callback function used to provide a description of the program-defined information pointer. Full Topic

type TreeReleaseCallBack

type TreeReleaseCallBack = func(info unsafe.Pointer)

Callback function used to release a previously retained program-defined information pointer. Full Topic

type TreeRetainCallBack

type TreeRetainCallBack = func(info unsafe.Pointer) unsafe.Pointer

Callback function used to retain a program-defined information pointer. Full Topic

type TypeID

type TypeID int32

A type for unique, constant integer values that identify particular Core Foundation opaque types. Full Topic

type TypeRef

type TypeRef = unsafe.Pointer

type URLBookmarkCreationOptions

type URLBookmarkCreationOptions OptionFlags

Type for bookmark data creation options. Full Topic

const (
	KURLBookmarkCreationMinimalBookmarkMask              URLBookmarkCreationOptions = 512
	KURLBookmarkCreationPreferFileIDResolutionMask       URLBookmarkCreationOptions = 256
	KURLBookmarkCreationSecurityScopeAllowOnlyReadAccess URLBookmarkCreationOptions = 4096
	KURLBookmarkCreationSuitableForBookmarkFile          URLBookmarkCreationOptions = 1024
	KURLBookmarkCreationWithSecurityScope                URLBookmarkCreationOptions = 2048
	KURLBookmarkCreationWithoutImplicitSecurityScope     URLBookmarkCreationOptions = 536870912
)

type URLBookmarkFileCreationOptions

type URLBookmarkFileCreationOptions OptionFlags

Type for bookmark file creation options. Full Topic

type URLBookmarkResolutionOptions

type URLBookmarkResolutionOptions OptionFlags

Type for bookmark data resolution options. Full Topic

const (
	KBookmarkResolutionWithoutMountingMask              URLBookmarkResolutionOptions = 512
	KBookmarkResolutionWithoutUIMask                    URLBookmarkResolutionOptions = 256
	KURLBookmarkResolutionWithSecurityScope             URLBookmarkResolutionOptions = 1024
	KURLBookmarkResolutionWithoutImplicitStartAccessing URLBookmarkResolutionOptions = 32768
	KURLBookmarkResolutionWithoutMountingMask           URLBookmarkResolutionOptions = 512
	KURLBookmarkResolutionWithoutUIMask                 URLBookmarkResolutionOptions = 256
)

type URLComponentType

type URLComponentType Index

The types of components in a URL. Full Topic

const (
	KURLComponentFragment          URLComponentType = 12
	KURLComponentHost              URLComponentType = 8
	KURLComponentNetLocation       URLComponentType = 2
	KURLComponentParameterString   URLComponentType = 10
	KURLComponentPassword          URLComponentType = 6
	KURLComponentPath              URLComponentType = 3
	KURLComponentPort              URLComponentType = 9
	KURLComponentQuery             URLComponentType = 11
	KURLComponentResourceSpecifier URLComponentType = 4
	KURLComponentScheme            URLComponentType = 1
	KURLComponentUser              URLComponentType = 5
	KURLComponentUserInfo          URLComponentType = 7
)

type URLEnumeratorOptions

type URLEnumeratorOptions OptionFlags

Options for controlling enumerator behavior. Full Topic

const (
	KURLEnumeratorDefaultBehavior             URLEnumeratorOptions = 0
	KURLEnumeratorDescendRecursively          URLEnumeratorOptions = 1
	KURLEnumeratorGenerateFileReferenceURLs   URLEnumeratorOptions = 4
	KURLEnumeratorGenerateRelativePathURLs    URLEnumeratorOptions = 64
	KURLEnumeratorIncludeDirectoriesPostOrder URLEnumeratorOptions = 32
	KURLEnumeratorIncludeDirectoriesPreOrder  URLEnumeratorOptions = 16
	KURLEnumeratorSkipInvisibles              URLEnumeratorOptions = 2
	KURLEnumeratorSkipPackageContents         URLEnumeratorOptions = 8
)

type URLEnumeratorResult

type URLEnumeratorResult Index

Result codes from the CFURLEnumeratorGetNextURL function. Full Topic

const (
	KURLEnumeratorDirectoryPostOrderSuccess URLEnumeratorResult = 4
	KURLEnumeratorEnd                       URLEnumeratorResult = 2
	KURLEnumeratorError                     URLEnumeratorResult = 3
	KURLEnumeratorSuccess                   URLEnumeratorResult = 1
)

type URLError

type URLError Index

CFURL error codes. Full Topic

const (
	KURLImproperArgumentsError       URLError = -15
	KURLPropertyKeyUnavailableError  URLError = -17
	KURLRemoteHostUnavailableError   URLError = -14
	KURLResourceAccessViolationError URLError = -13
	KURLResourceNotFoundError        URLError = -12
	KURLTimeoutError                 URLError = -18
	KURLUnknownError                 URLError = -10
	KURLUnknownPropertyKeyError      URLError = -16
	KURLUnknownSchemeError           URLError = -11
)

type URLPathStyle

type URLPathStyle Index

Options you can use to determine how CFURL functions parse a file system path name. Full Topic

const (
	KURLHFSPathStyle     URLPathStyle = 1
	KURLPOSIXPathStyle   URLPathStyle = 0
	KURLWindowsPathStyle URLPathStyle = 2
)

type UUIDRef

type UUIDRef = unsafe.Pointer

type UserNotificationCallBack

type UserNotificationCallBack = func(userNotification UserNotificationRef, responseFlags OptionFlags)

Callback invoked when an asynchronous user notification dialog is dismissed. Full Topic

type UserNotificationRef

type UserNotificationRef = unsafe.Pointer

type WriteStreamClientCallBack

type WriteStreamClientCallBack = func(stream WriteStreamRef, type_ StreamEventType, clientCallBackInfo unsafe.Pointer)

Callback invoked when certain types of activity takes place on a writable stream. Full Topic

type WriteStreamRef

type WriteStreamRef = unsafe.Pointer

type XMLEntityTypeCode

type XMLEntityTypeCode Index

The entity type identification codes that the parser uses to describe XML entities. Full Topic

const (
	KXMLEntityTypeCharacter      XMLEntityTypeCode = 4
	KXMLEntityTypeParameter      XMLEntityTypeCode = 0
	KXMLEntityTypeParsedExternal XMLEntityTypeCode = 2
	KXMLEntityTypeParsedInternal XMLEntityTypeCode = 1
	KXMLEntityTypeUnparsed       XMLEntityTypeCode = 3
)

type XMLExternalID

type XMLExternalID = unsafe.Pointer

type XMLNodeTypeCode

type XMLNodeTypeCode Index

The various XML data type identification codes that the parser uses to describe XML structures. Full Topic

const (
	KXMLNodeTypeAttribute                XMLNodeTypeCode = 3
	KXMLNodeTypeAttributeListDeclaration XMLNodeTypeCode = 15
	KXMLNodeTypeCDATASection             XMLNodeTypeCode = 7
	KXMLNodeTypeComment                  XMLNodeTypeCode = 5
	KXMLNodeTypeDocument                 XMLNodeTypeCode = 1
	KXMLNodeTypeDocumentFragment         XMLNodeTypeCode = 8
	KXMLNodeTypeDocumentType             XMLNodeTypeCode = 11
	KXMLNodeTypeElement                  XMLNodeTypeCode = 2
	KXMLNodeTypeElementTypeDeclaration   XMLNodeTypeCode = 14
	KXMLNodeTypeEntity                   XMLNodeTypeCode = 9
	KXMLNodeTypeEntityReference          XMLNodeTypeCode = 10
	KXMLNodeTypeNotation                 XMLNodeTypeCode = 13
	KXMLNodeTypeProcessingInstruction    XMLNodeTypeCode = 4
	KXMLNodeTypeText                     XMLNodeTypeCode = 6
	KXMLNodeTypeWhitespace               XMLNodeTypeCode = 12
)

type XMLParserAddChildCallBack

type XMLParserAddChildCallBack = func(parser unsafe.Pointer, parent unsafe.Pointer, child unsafe.Pointer, info unsafe.Pointer)

Callback function invoked by the parser to notify your application of parent/child relationships between XML structures. Full Topic

type XMLParserCopyDescriptionCallBack

type XMLParserCopyDescriptionCallBack = func(info unsafe.Pointer) StringRef

Callback function invoked by the parser when handling the information pointer. Full Topic

type XMLParserCreateXMLStructureCallBack

type XMLParserCreateXMLStructureCallBack = func(parser unsafe.Pointer, nodeDesc unsafe.Pointer, info unsafe.Pointer) unsafe.Pointer

Callback function invoked when the parser encounters an XML open tag. Full Topic

type XMLParserEndXMLStructureCallBack

type XMLParserEndXMLStructureCallBack = func(parser unsafe.Pointer, xmlType unsafe.Pointer, info unsafe.Pointer)

Callback function invoked by the parser to notify your application that an XML structure (and all its children) have been completely parsed. Full Topic

type XMLParserHandleErrorCallBack

type XMLParserHandleErrorCallBack = func(parser unsafe.Pointer, error XMLParserStatusCode, info unsafe.Pointer) bool

Callback function invoked by the parser to notify your application that an error has occurred. Full Topic

type XMLParserOptions

type XMLParserOptions OptionFlags

Options you can use to control the parser's treatment of an XML document. Full Topic

const (
	KXMLParserAddImpliedAttributes    XMLParserOptions = 32
	KXMLParserAllOptions              XMLParserOptions = 16777215
	KXMLParserNoOptions               XMLParserOptions = 0
	KXMLParserReplacePhysicalEntities XMLParserOptions = 4
	KXMLParserResolveExternalEntities XMLParserOptions = 16
	KXMLParserSkipMetaData            XMLParserOptions = 2
	KXMLParserSkipWhitespace          XMLParserOptions = 8
	KXMLParserValidateDocument        XMLParserOptions = 1
)

type XMLParserReleaseCallBack

type XMLParserReleaseCallBack = func(info unsafe.Pointer)

Callback function invoked by the parser when it wants to release a reference to the information pointer. Full Topic

type XMLParserResolveExternalEntityCallBack

type XMLParserResolveExternalEntityCallBack = func(parser unsafe.Pointer, extID *XMLExternalID, info unsafe.Pointer) DataRef

Callback function invoked by the parser to notify your application that an external entity has been referenced. Full Topic

type XMLParserRetainCallBack

type XMLParserRetainCallBack = func(info unsafe.Pointer) unsafe.Pointer

Callback function invoked by the parser when it needs another reference to the information pointer. Full Topic

type XMLParserStatusCode

type XMLParserStatusCode Index

The various status and error flags that can be returned by the parser. Full Topic

const (
	KXMLErrorElementlessDocument            XMLParserStatusCode = 11
	KXMLErrorEncodingConversionFailure      XMLParserStatusCode = 3
	KXMLErrorMalformedCDSect                XMLParserStatusCode = 7
	KXMLErrorMalformedCharacterReference    XMLParserStatusCode = 13
	KXMLErrorMalformedCloseTag              XMLParserStatusCode = 8
	KXMLErrorMalformedComment               XMLParserStatusCode = 12
	KXMLErrorMalformedDTD                   XMLParserStatusCode = 5
	KXMLErrorMalformedDocument              XMLParserStatusCode = 10
	KXMLErrorMalformedName                  XMLParserStatusCode = 6
	KXMLErrorMalformedParsedCharacterData   XMLParserStatusCode = 14
	KXMLErrorMalformedProcessingInstruction XMLParserStatusCode = 4
	KXMLErrorMalformedStartTag              XMLParserStatusCode = 9
	KXMLErrorNoData                         XMLParserStatusCode = 15
	KXMLErrorUnexpectedEOF                  XMLParserStatusCode = 1
	KXMLErrorUnknownEncoding                XMLParserStatusCode = 2
	KXMLStatusParseInProgress               XMLParserStatusCode = -1
	KXMLStatusParseNotBegun                 XMLParserStatusCode = -2
	KXMLStatusParseSuccessful               XMLParserStatusCode = 0
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL