speechrecognition

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package speechrecognition provides a fluent Go API over the macOS SpeechRecognition framework.

Construction

New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.

Lifecycle

A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.

Index

Constants

View Source
const (
	KAESpeechDetected             = 1936876132
	KAESpeechDone                 = 1936880484
	KAESpeechSuite                = 1936749155
	KSRAlreadyFinished            = -5126
	KSRAlreadyListening           = -5114
	KSRAlreadyReleased            = -5125
	KSRAutoFinishingParam         = 1634101614
	KSRBadParameter               = -5105
	KSRBadSelector                = -5107
	KSRBlockBackground            = 1651270247
	KSRBlockModally               = 1651273060
	KSRBufferTooSmall             = -5108
	KSRCallBackParam              = 1667329132
	KSRCancelOnSoundOut           = 1667330927
	KSRCanned22kHzSpeechSource    = 1667314226
	KSRCantAdd                    = -5131
	KSRCantGetProperty            = -5112
	KSRCantReadLanguageObject     = -5133
	KSRCantSetDuringRecognition   = -5113
	KSRCantSetProperty            = -5111
	KSRCleanupOnClientExit        = 1668052336
	KSRComponentNotFound          = -5102
	KSRDefaultRecognitionSystemID = 0
	KSRDefaultRejectionLevel      = 50
	KSRDefaultSpeechSource        = 0
	KSREnabled                    = 1701732972
	KSRExpansionTooDeep           = -5129
	KSRFeedbackAndListeningModes  = 1717729134
	KSRFeedbackNotAvail           = -5110
	KSRForegroundOnly             = 1718054766
	KSRHasFeedbackHasListenModes  = 1
	KSRHasNoSubItems              = -5122
	KSRIdleRecognizer             = 1
	KSRInternalError              = -5101
	KSRKeyExpected                = 1801812080
	KSRKeyWord                    = 1802990180
	KSRLMObjType                  = 1819112560
	KSRLanguageModelFormat        = 1819108973
	KSRLanguageModelTooBig        = -5124
	KSRLanguageModelType          = 1819111266
	KSRListenKeyCombo             = 1818977657
	KSRListenKeyMode              = 1818979684
	KSRListenKeyName              = 1819173229
	KSRLiveDesktopSpeechSource    = 1684761718
	KSRModelMismatch              = -5116
	KSRMustCancelSearch           = 8
	KSRNoClientLanguageModel      = -5117
	KSRNoFeedbackHasListenModes   = 2
	KSRNoFeedbackNoListenModes    = 0
	KSRNoPendingUtterances        = -5118
	KSRNotARecSystem              = -5109
	KSRNotASpeechObject           = -5104
	KSRNotAvailable               = -5100
	KSRNotFinishedWithRejection   = -5128
	KSRNotImplementedYet          = -5199
	KSRNotListeningState          = -5115
	KSRNotificationParam          = 1852798057
	KSRNotifyRecognitionBeginning = 1
	KSRNotifyRecognitionDone      = 2
	KSROptional                   = 1869640812
	KSROtherRecAlreadyModal       = -5121
	KSROutOfMemory                = -5103
	KSRParamOutOfRange            = -5106
	KSRPathFormat                 = 1819111540
	KSRPathType                   = 1885434984
	KSRPendingSearch              = 16
	KSRPhraseFormat               = 1819111528
	KSRPhraseType                 = 1885893217
	KSRReadAudioFSSpec            = 1635086948
	KSRReadAudioURL               = 1635086956
	KSRRecognitionCanceled        = -5119
	KSRRecognitionDone            = -5120
	KSRRefCon                     = 1919247971
	KSRRejectable                 = 1919574636
	KSRRejectedWord               = 1919249009
	KSRRejectionLevel             = 1919574900
	KSRRepeatable                 = 1919972450
	KSRSearchInProgress           = 2
	KSRSearchStatusParam          = 1937006964
	KSRSearchWaitForAllClients    = 4
	KSRSndInSourceDisconnected    = -5132
	KSRSoundInVolume              = 1987013749
	KSRSpeedVsAccuracyParam       = 1936745828
	KSRSpelling                   = 1936745836
	KSRSubItemNotFound            = -5123
	KSRTEXTFormat                 = 1413830740
	KSRTooManyElements            = -5130
	KSRUsePushToTalk              = 1
	KSRUseToggleListen            = 0
	KSRWantsAutoFBGestures        = 1684431474
	KSRWantsResultTextDrawn       = 1954047586
	KSRWordNotFound               = -5127
	KSRWordType                   = 2003792484
	KeySRRecognizer               = 1802659171
	KeySRSpeechResult             = 1802727538
	KeySRSpeechStatus             = 1802728308
	TypeSRRecognizer              = 1953654115
	TypeSRSpeechResult            = 1953722482
)

Variables

This section is empty.

Functions

func DisposeSRCallBackUPP

func DisposeSRCallBackUPP(userUPP unsafe.Pointer)

DisposeSRCallBackUPP calls the SpeechRecognition framework function DisposeSRCallBackUPP.

func InvokeSRCallBackUPP

func InvokeSRCallBackUPP(param unsafe.Pointer, userUPP unsafe.Pointer)

InvokeSRCallBackUPP calls the SpeechRecognition framework function InvokeSRCallBackUPP.

func NewSRCallBackUPP

func NewSRCallBackUPP(userRoutine unsafe.Pointer) unsafe.Pointer

NewSRCallBackUPP calls the SpeechRecognition framework function NewSRCallBackUPP.

func SRAddLanguageObject

func SRAddLanguageObject(base unsafe.Pointer, addon unsafe.Pointer) int16

SRAddLanguageObject calls the SpeechRecognition framework function SRAddLanguageObject.

func SRAddText

func SRAddText(base unsafe.Pointer, text unsafe.Pointer, textLength int, refCon unsafe.Pointer) int16

SRAddText calls the SpeechRecognition framework function SRAddText.

func SRCancelRecognition

func SRCancelRecognition(recognizer unsafe.Pointer) int16

SRCancelRecognition calls the SpeechRecognition framework function SRCancelRecognition.

func SRChangeLanguageObject

func SRChangeLanguageObject(languageObject unsafe.Pointer, text unsafe.Pointer, textLength int) int16

SRChangeLanguageObject calls the SpeechRecognition framework function SRChangeLanguageObject.

func SRCloseRecognitionSystem

func SRCloseRecognitionSystem(system unsafe.Pointer) int16

SRCloseRecognitionSystem calls the SpeechRecognition framework function SRCloseRecognitionSystem.

func SRContinueRecognition

func SRContinueRecognition(recognizer unsafe.Pointer) int16

SRContinueRecognition calls the SpeechRecognition framework function SRContinueRecognition.

func SRCountItems

func SRCountItems(container SRSpeechObject) (result int16, count int64)

SRCountItems calls the SpeechRecognition framework function SRCountItems.

func SRDrawRecognizedText

func SRDrawRecognizedText(recognizer unsafe.Pointer, dispText unsafe.Pointer, dispLength int) int16

SRDrawRecognizedText calls the SpeechRecognition framework function SRDrawRecognizedText.

func SRDrawText

func SRDrawText(recognizer unsafe.Pointer, dispText unsafe.Pointer, dispLength int) int16

SRDrawText calls the SpeechRecognition framework function SRDrawText.

func SREmptyLanguageObject

func SREmptyLanguageObject(languageObject unsafe.Pointer) int16

SREmptyLanguageObject calls the SpeechRecognition framework function SREmptyLanguageObject.

func SRGetIndexedItem

func SRGetIndexedItem(container SRSpeechObject, item unsafe.Pointer, index int) int16

SRGetIndexedItem calls the SpeechRecognition framework function SRGetIndexedItem.

func SRGetLanguageModel

func SRGetLanguageModel(recognizer unsafe.Pointer, languageModel unsafe.Pointer) int16

SRGetLanguageModel calls the SpeechRecognition framework function SRGetLanguageModel.

func SRGetProperty

func SRGetProperty(srObject SRSpeechObject, selector int, property unsafe.Pointer) (result int16, propertyLen int)

SRGetProperty calls the SpeechRecognition framework function SRGetProperty.

func SRGetReference

func SRGetReference(srObject SRSpeechObject, newObjectRef unsafe.Pointer) int16

SRGetReference calls the SpeechRecognition framework function SRGetReference.

func SRIdle

func SRIdle() int16

SRIdle calls the SpeechRecognition framework function SRIdle.

func SRNewLanguageModel

func SRNewLanguageModel(system unsafe.Pointer, model unsafe.Pointer, name unsafe.Pointer, nameLength int) int16

SRNewLanguageModel calls the SpeechRecognition framework function SRNewLanguageModel.

func SRNewLanguageObjectFromDataFile

func SRNewLanguageObjectFromDataFile(system unsafe.Pointer, languageObject unsafe.Pointer, fRefNum int16) int16

SRNewLanguageObjectFromDataFile calls the SpeechRecognition framework function SRNewLanguageObjectFromDataFile.

func SRNewLanguageObjectFromHandle

func SRNewLanguageObjectFromHandle(system unsafe.Pointer, languageObject unsafe.Pointer) (result int16, lObjHandle string)

SRNewLanguageObjectFromHandle calls the SpeechRecognition framework function SRNewLanguageObjectFromHandle.

func SRNewPath

func SRNewPath(system unsafe.Pointer, path unsafe.Pointer) int16

SRNewPath calls the SpeechRecognition framework function SRNewPath.

func SRNewPhrase

func SRNewPhrase(system unsafe.Pointer, phrase unsafe.Pointer, text unsafe.Pointer, textLength int) int16

SRNewPhrase calls the SpeechRecognition framework function SRNewPhrase.

func SRNewRecognizer

func SRNewRecognizer(system unsafe.Pointer, recognizer unsafe.Pointer, sourceID int) int16

SRNewRecognizer calls the SpeechRecognition framework function SRNewRecognizer.

func SRNewWord

func SRNewWord(system unsafe.Pointer, word unsafe.Pointer, text unsafe.Pointer, textLength int) int16

SRNewWord calls the SpeechRecognition framework function SRNewWord.

func SROpenRecognitionSystem

func SROpenRecognitionSystem(system unsafe.Pointer, systemID int) int16

SROpenRecognitionSystem calls the SpeechRecognition framework function SROpenRecognitionSystem.

func SRProcessBegin

func SRProcessBegin(recognizer unsafe.Pointer, failed uint8) int16

SRProcessBegin calls the SpeechRecognition framework function SRProcessBegin.

func SRProcessEnd

func SRProcessEnd(recognizer unsafe.Pointer, failed uint8) int16

SRProcessEnd calls the SpeechRecognition framework function SRProcessEnd.

func SRPutLanguageObjectIntoDataFile

func SRPutLanguageObjectIntoDataFile(languageObject unsafe.Pointer, fRefNum int16) int16

SRPutLanguageObjectIntoDataFile calls the SpeechRecognition framework function SRPutLanguageObjectIntoDataFile.

func SRPutLanguageObjectIntoHandle

func SRPutLanguageObjectIntoHandle(languageObject unsafe.Pointer) (result int16, lobjHandle string)

SRPutLanguageObjectIntoHandle calls the SpeechRecognition framework function SRPutLanguageObjectIntoHandle.

func SRReleaseObject

func SRReleaseObject(srObject SRSpeechObject) int16

SRReleaseObject calls the SpeechRecognition framework function SRReleaseObject.

func SRRemoveIndexedItem

func SRRemoveIndexedItem(container SRSpeechObject, index int) int16

SRRemoveIndexedItem calls the SpeechRecognition framework function SRRemoveIndexedItem.

func SRRemoveLanguageObject

func SRRemoveLanguageObject(base unsafe.Pointer, toRemove unsafe.Pointer) int16

SRRemoveLanguageObject calls the SpeechRecognition framework function SRRemoveLanguageObject.

func SRSetIndexedItem

func SRSetIndexedItem(container SRSpeechObject, item SRSpeechObject, index int) int16

SRSetIndexedItem calls the SpeechRecognition framework function SRSetIndexedItem.

func SRSetLanguageModel

func SRSetLanguageModel(recognizer unsafe.Pointer, languageModel unsafe.Pointer) int16

SRSetLanguageModel calls the SpeechRecognition framework function SRSetLanguageModel.

func SRSetProperty

func SRSetProperty(srObject SRSpeechObject, selector int, property unsafe.Pointer, propertyLen int) int16

SRSetProperty calls the SpeechRecognition framework function SRSetProperty.

func SRSpeakAndDrawText

func SRSpeakAndDrawText(recognizer unsafe.Pointer, text unsafe.Pointer, textLength int) int16

SRSpeakAndDrawText calls the SpeechRecognition framework function SRSpeakAndDrawText.

func SRSpeakText

func SRSpeakText(recognizer unsafe.Pointer, speakText unsafe.Pointer, speakLength int) int16

SRSpeakText calls the SpeechRecognition framework function SRSpeakText.

func SRSpeechBusy

func SRSpeechBusy(recognizer unsafe.Pointer) uint8

SRSpeechBusy calls the SpeechRecognition framework function SRSpeechBusy.

func SRStartListening

func SRStartListening(recognizer unsafe.Pointer) int16

SRStartListening calls the SpeechRecognition framework function SRStartListening.

func SRStopListening

func SRStopListening(recognizer unsafe.Pointer) int16

SRStopListening calls the SpeechRecognition framework function SRStopListening.

func SRStopSpeech

func SRStopSpeech(recognizer unsafe.Pointer) int16

SRStopSpeech calls the SpeechRecognition framework function SRStopSpeech.

Types

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

type DispatchAutoreleaseFrequency added in v0.17.0

type DispatchAutoreleaseFrequency uint64
const (
	DispatchAutoreleaseFrequencyInherit  DispatchAutoreleaseFrequency = 0
	DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1
	DispatchAutoreleaseFrequencyNever    DispatchAutoreleaseFrequency = 2
)

func (DispatchAutoreleaseFrequency) String added in v0.17.0

String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.

type DispatchBlockFlags added in v0.17.0

type DispatchBlockFlags uint64

Bitmask — values may be combined with |.

const (
	DispatchBlockFlagsBarrier         DispatchBlockFlags = 1
	DispatchBlockFlagsDetached        DispatchBlockFlags = 2
	DispatchBlockFlagsAssignCurrent   DispatchBlockFlags = 4
	DispatchBlockFlagsNoQosClass      DispatchBlockFlags = 8
	DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16
	DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32
)

func (DispatchBlockFlags) String added in v0.17.0

func (e DispatchBlockFlags) String() string

String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.

type EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID constant's name, or its numeric form when the value is not a known constant.

type FilesecProperty added in v0.17.0

type FilesecProperty int32
const (
	FilesecPropertyOwner        FilesecProperty = 1
	FilesecPropertyGroup        FilesecProperty = 2
	FilesecPropertyUUID         FilesecProperty = 3
	FilesecPropertyMode         FilesecProperty = 4
	FilesecPropertyACL          FilesecProperty = 5
	FilesecPropertyGrpuuid      FilesecProperty = 6
	FilesecPropertyACLRaw       FilesecProperty = 100
	FilesecPropertyACLAllocsize FilesecProperty = 101
)

func (FilesecProperty) String added in v0.17.0

func (e FilesecProperty) String() string

String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.

type Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

type IpcInfoObjectType added in v0.17.0

type IpcInfoObjectType uint32
const (
	IpcInfoObjectTypeNone               IpcInfoObjectType = 0
	IpcInfoObjectTypeThreadControl      IpcInfoObjectType = 1
	IpcInfoObjectTypeTaskControl        IpcInfoObjectType = 2
	IpcInfoObjectTypeHost               IpcInfoObjectType = 3
	IpcInfoObjectTypeHostPriv           IpcInfoObjectType = 4
	IpcInfoObjectTypeProcessor          IpcInfoObjectType = 5
	IpcInfoObjectTypeProcessorSet       IpcInfoObjectType = 6
	IpcInfoObjectTypeProcessorSetName   IpcInfoObjectType = 7
	IpcInfoObjectTypeTimer              IpcInfoObjectType = 8
	IpcInfoObjectTypePortSubstOnce      IpcInfoObjectType = 9
	IpcInfoObjectTypeMig                IpcInfoObjectType = 10
	IpcInfoObjectTypeMemoryObject       IpcInfoObjectType = 11
	IpcInfoObjectTypeXmmPager           IpcInfoObjectType = 12
	IpcInfoObjectTypeXmmKernel          IpcInfoObjectType = 13
	IpcInfoObjectTypeXmmReply           IpcInfoObjectType = 14
	IpcInfoObjectTypeUndReply           IpcInfoObjectType = 15
	IpcInfoObjectTypeHostNotify         IpcInfoObjectType = 16
	IpcInfoObjectTypeHostSecurity       IpcInfoObjectType = 17
	IpcInfoObjectTypeLedger             IpcInfoObjectType = 18
	IpcInfoObjectTypeMainDevice         IpcInfoObjectType = 19
	IpcInfoObjectTypeTaskName           IpcInfoObjectType = 20
	IpcInfoObjectTypeSubsystem          IpcInfoObjectType = 21
	IpcInfoObjectTypeIODoneQueue        IpcInfoObjectType = 22
	IpcInfoObjectTypeSemaphore          IpcInfoObjectType = 23
	IpcInfoObjectTypeLockSet            IpcInfoObjectType = 24
	IpcInfoObjectTypeClock              IpcInfoObjectType = 25
	IpcInfoObjectTypeClockCtrl          IpcInfoObjectType = 26
	IpcInfoObjectTypeIokitIdent         IpcInfoObjectType = 27
	IpcInfoObjectTypeNamedEntry         IpcInfoObjectType = 28
	IpcInfoObjectTypeIokitConnect       IpcInfoObjectType = 29
	IpcInfoObjectTypeIokitObject        IpcInfoObjectType = 30
	IpcInfoObjectTypeUpl                IpcInfoObjectType = 31
	IpcInfoObjectTypeMemObjControl      IpcInfoObjectType = 32
	IpcInfoObjectTypeAuSessionport      IpcInfoObjectType = 33
	IpcInfoObjectTypeFileport           IpcInfoObjectType = 34
	IpcInfoObjectTypeLabelh             IpcInfoObjectType = 35
	IpcInfoObjectTypeTaskResume         IpcInfoObjectType = 36
	IpcInfoObjectTypeVoucher            IpcInfoObjectType = 37
	IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38
	IpcInfoObjectTypeWorkInterval       IpcInfoObjectType = 39
	IpcInfoObjectTypeUxHandler          IpcInfoObjectType = 40
	IpcInfoObjectTypeUextObject         IpcInfoObjectType = 41
	IpcInfoObjectTypeArcadeReg          IpcInfoObjectType = 42
	IpcInfoObjectTypeEventlink          IpcInfoObjectType = 43
	IpcInfoObjectTypeTaskInspect        IpcInfoObjectType = 44
	IpcInfoObjectTypeTaskRead           IpcInfoObjectType = 45
	IpcInfoObjectTypeThreadInspect      IpcInfoObjectType = 46
	IpcInfoObjectTypeThreadRead         IpcInfoObjectType = 47
	IpcInfoObjectTypeSuidCred           IpcInfoObjectType = 48
	IpcInfoObjectTypeHypervisor         IpcInfoObjectType = 49
	IpcInfoObjectTypeTaskIDToken        IpcInfoObjectType = 50
	IpcInfoObjectTypeTaskFatal          IpcInfoObjectType = 51
	IpcInfoObjectTypeKcdata             IpcInfoObjectType = 52
	IpcInfoObjectTypeExclavesResource   IpcInfoObjectType = 53
	IpcInfoObjectTypeThreadResume       IpcInfoObjectType = 54
	IpcInfoObjectTypeUnknown            IpcInfoObjectType = 4294967295
)

func (IpcInfoObjectType) String added in v0.17.0

func (e IpcInfoObjectType) String() string

String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.

type LaunchDataType added in v0.17.0

type LaunchDataType int32
const (
	LaunchDataTypeDictionary LaunchDataType = 1
	LaunchDataTypeArray      LaunchDataType = 2
	LaunchDataTypeFd         LaunchDataType = 3
	LaunchDataTypeInteger    LaunchDataType = 4
	LaunchDataTypeReal       LaunchDataType = 5
	LaunchDataTypeBool       LaunchDataType = 6
	LaunchDataTypeString     LaunchDataType = 7
	LaunchDataTypeOpaque     LaunchDataType = 8
	LaunchDataTypeErrno      LaunchDataType = 9
	LaunchDataTypeMachport   LaunchDataType = 10
)

func (LaunchDataType) String added in v0.17.0

func (e LaunchDataType) String() string

String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.

type MDLabelDomain

type MDLabelDomain int32

These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.

type MDQueryOptionFlags

type MDQueryOptionFlags int32
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int32
const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlags added in v0.17.0

type MachVMRangeFlags uint64

Bitmask — values may be combined with |.

const (
	MachVMRangeFlagsNone MachVMRangeFlags = 0
)

func (MachVMRangeFlags) String added in v0.17.0

func (e MachVMRangeFlags) String() string

String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlavor added in v0.17.0

type MachVMRangeFlavor uint32
const (
	MachVMRangeFlavorInvalid MachVMRangeFlavor = 0
	MachVMRangeFlavorV1      MachVMRangeFlavor = 1
)

func (MachVMRangeFlavor) String added in v0.17.0

func (e MachVMRangeFlavor) String() string

String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeTag added in v0.17.0

type MachVMRangeTag uint16
const (
	MachVMRangeTagDefault MachVMRangeTag = 0
	MachVMRangeTagData    MachVMRangeTag = 1
	MachVMRangeTagFixed   MachVMRangeTag = 2
)

func (MachVMRangeTag) String added in v0.17.0

func (e MachVMRangeTag) String() string

String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.

type MpoFlags added in v0.17.0

type MpoFlags uint32

Bitmask — values may be combined with |.

const (
	MpoFlagsPort                        MpoFlags = 0
	MpoFlagsServicePort                 MpoFlags = 1024
	MpoFlagsConnectionPort              MpoFlags = 2048
	MpoFlagsReplyPort                   MpoFlags = 4096
	MpoFlagsWeakReplyPort               MpoFlags = 16384
	MpoFlagsNotificationPort            MpoFlags = 17408
	MpoFlagsExceptionPort               MpoFlags = 32768
	MpoFlagsConnectionPortWithPortArray MpoFlags = 65536
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type OpaqueSRSpeechObject

type OpaqueSRSpeechObject struct{}

type Perm added in v0.17.0

type Perm int32
const (
	PermReadData           Perm = 2
	PermListDirectory      Perm = 2
	PermWriteData          Perm = 4
	PermAddFile            Perm = 4
	PermExecute            Perm = 8
	PermSearch             Perm = 8
	PermDelete             Perm = 16
	PermAppendData         Perm = 32
	PermAddSubdirectory    Perm = 32
	PermDeleteChild        Perm = 64
	PermReadAttributes     Perm = 128
	PermWriteAttributes    Perm = 256
	PermReadExtattributes  Perm = 512
	PermWriteExtattributes Perm = 1024
	PermReadSecurity       Perm = 2048
	PermWriteSecurity      Perm = 4096
	PermChangeOwner        Perm = 8192
	PermSynchronize        Perm = 1048576
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

type PtrauthKey added in v0.17.0

type PtrauthKey int32
const (
	Ptrauth_key_none                     PtrauthKey = -1
	Ptrauth_key_asia                     PtrauthKey = 0
	Ptrauth_key_asib                     PtrauthKey = 1
	Ptrauth_key_asda                     PtrauthKey = 2
	Ptrauth_key_asdb                     PtrauthKey = 3
	Ptrauth_key_process_independent_code PtrauthKey = 0
	Ptrauth_key_process_dependent_code   PtrauthKey = 1
	Ptrauth_key_process_independent_data PtrauthKey = 2
	Ptrauth_key_process_dependent_data   PtrauthKey = 3
	Ptrauth_key_return_address           PtrauthKey = 1
	Ptrauth_key_frame_pointer            PtrauthKey = 3
	Ptrauth_key_function_pointer         PtrauthKey = 0
	Ptrauth_key_block_function           PtrauthKey = 0
	Ptrauth_key_cxx_vtable_pointer       PtrauthKey = 2
	Ptrauth_key_method_list_pointer      PtrauthKey = 2
	Ptrauth_key_objc_isa_pointer         PtrauthKey = 2
	Ptrauth_key_objc_super_pointer       PtrauthKey = 2
	Ptrauth_key_objc_sel_pointer         PtrauthKey = 3
	Ptrauth_key_objc_class_ro_pointer    PtrauthKey = 2
	Ptrauth_key_block_descriptor_pointer PtrauthKey = 2
	Ptrauth_key_init_fini_pointer        PtrauthKey = 0
)

func (PtrauthKey) String added in v0.17.0

func (e PtrauthKey) String() string

String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.

type QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type SRCallBackParam

type SRCallBackParam struct {
	CallBack unsafe.Pointer
	RefCon   unsafe.Pointer
}

type SRCallBackStruct

type SRCallBackStruct struct {
	What     uint32
	Message  int
	Instance unsafe.Pointer
	Status   int16
	Flags    int16
	RefCon   unsafe.Pointer
}

type SRSpeechObject added in v0.18.0

type SRSpeechObject struct{ obj.Object }

SRSpeechObject is a handle for the opaque SRSpeechObject type.

func (SRSpeechObject) IsNil added in v0.18.0

func (h SRSpeechObject) IsNil() bool

IsNil reports whether SRSpeechObject is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type constant's name, or its numeric form when the value is not a known constant.

type VirtualMemoryGuardExceptionCode added in v0.17.0

type VirtualMemoryGuardExceptionCode uint32
const (
	KGUARD_EXC_DEALLOC_GAP                   VirtualMemoryGuardExceptionCode = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        VirtualMemoryGuardExceptionCode = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         VirtualMemoryGuardExceptionCode = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    VirtualMemoryGuardExceptionCode = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    VirtualMemoryGuardExceptionCode = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         VirtualMemoryGuardExceptionCode = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         VirtualMemoryGuardExceptionCode = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  VirtualMemoryGuardExceptionCode = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    VirtualMemoryGuardExceptionCode = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              VirtualMemoryGuardExceptionCode = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        VirtualMemoryGuardExceptionCode = 99
	KGUARD_EXC_SEC_COPY_DENIED               VirtualMemoryGuardExceptionCode = 100
	KGUARD_EXC_SEC_SHARING_DENIED            VirtualMemoryGuardExceptionCode = 101
	KGUARD_EXC_MTE_SYNC_FAULT                VirtualMemoryGuardExceptionCode = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          VirtualMemoryGuardExceptionCode = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          VirtualMemoryGuardExceptionCode = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204
)

func (VirtualMemoryGuardExceptionCode) String added in v0.17.0

String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.

type XpcListenerCreateFlags added in v0.17.0

type XpcListenerCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcListenerCreateFlagsNone            XpcListenerCreateFlags = 0
	XpcListenerCreateFlagsInactive        XpcListenerCreateFlags = 1
	XpcListenerCreateFlagsForceMach       XpcListenerCreateFlags = 2
	XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4
)

func (XpcListenerCreateFlags) String added in v0.17.0

func (e XpcListenerCreateFlags) String() string

String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.

type XpcSessionCreateFlags added in v0.17.0

type XpcSessionCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcSessionCreateFlagsNone           XpcSessionCreateFlags = 0
	XpcSessionCreateFlagsInactive       XpcSessionCreateFlags = 1
	XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2
)

func (XpcSessionCreateFlags) String added in v0.17.0

func (e XpcSessionCreateFlags) String() string

String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.

Jump to

Keyboard shortcuts

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