Documentation
¶
Overview ¶
Package forcefeedback provides a fluent Go API over the macOS ForceFeedback 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
- func FFCreateDevice(hidDevice int, pDeviceReference unsafe.Pointer) unsafe.Pointer
- func FFDeviceCreateEffect(deviceReference FFDeviceObjectReference, uuidRef corefoundation.CFUUIDRef, ...) unsafe.Pointer
- func FFDeviceEscape(deviceReference FFDeviceObjectReference, pFFEffectEscape unsafe.Pointer) unsafe.Pointer
- func FFDeviceGetForceFeedbackCapabilities(deviceReference FFDeviceObjectReference, pFFCapabilities unsafe.Pointer) unsafe.Pointer
- func FFDeviceGetForceFeedbackProperty(deviceReference FFDeviceObjectReference, property int, pValue unsafe.Pointer, ...) unsafe.Pointer
- func FFDeviceGetForceFeedbackState(deviceReference FFDeviceObjectReference) (result unsafe.Pointer, pFFState int)
- func FFDeviceReleaseEffect(deviceReference FFDeviceObjectReference, ...) unsafe.Pointer
- func FFDeviceSendForceFeedbackCommand(deviceReference FFDeviceObjectReference, flags int) unsafe.Pointer
- func FFDeviceSetCooperativeLevel(deviceReference FFDeviceObjectReference, taskIdentifier unsafe.Pointer, ...) unsafe.Pointer
- func FFDeviceSetForceFeedbackProperty(deviceReference FFDeviceObjectReference, property int, pValue unsafe.Pointer) unsafe.Pointer
- func FFEffectDownload(effectReference FFEffectObjectReference) unsafe.Pointer
- func FFEffectEscape(effectReference FFEffectObjectReference, pFFEffectEscape unsafe.Pointer) unsafe.Pointer
- func FFEffectGetEffectStatus(effectReference FFEffectObjectReference) (result unsafe.Pointer, pFlags int)
- func FFEffectGetParameters(effectReference FFEffectObjectReference, pFFEffect unsafe.Pointer, flags int) unsafe.Pointer
- func FFEffectSetParameters(effectReference FFEffectObjectReference, pFFEffect unsafe.Pointer, flags int) unsafe.Pointer
- func FFEffectStart(effectReference FFEffectObjectReference, iterations int, flags int) unsafe.Pointer
- func FFEffectStop(effectReference FFEffectObjectReference) unsafe.Pointer
- func FFEffectUnload(effectReference FFEffectObjectReference) unsafe.Pointer
- func FFIsForceFeedback(hidDevice int) unsafe.Pointer
- func FFReleaseDevice(deviceReference FFDeviceObjectReference) unsafe.Pointer
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type FFCAPABILITIES
- type FFCONDITION
- type FFCONSTANTFORCE
- type FFCUSTOMFORCE
- type FFDHIDDEN
- type FFDeviceObjectReference
- type FFEFFECT
- type FFEFFESCAPE
- type FFEHIDDEN
- type FFENVELOPE
- type FFEffectObjectReference
- type FFPERIODIC
- type FFRAMPFORCE
- type FilesecProperty
- type Flag
- type Idtype
- type IpcInfoObjectType
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type OSClockid
- type Perm
- type PtrauthKey
- type QosClass
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
Constants ¶
const ( FFCAP_ET_CONSTANTFORCE = 1 FFCAP_ET_CUSTOMFORCE = 2048 FFCAP_ET_DAMPER = 256 FFCAP_ET_FRICTION = 1024 FFCAP_ET_INERTIA = 512 FFCAP_ET_RAMPFORCE = 2 FFCAP_ET_SAWTOOTHDOWN = 64 FFCAP_ET_SAWTOOTHUP = 32 FFCAP_ET_SINE = 8 FFCAP_ET_SPRING = 128 FFCAP_ET_SQUARE = 4 FFCAP_ET_TRIANGLE = 16 FFCAP_ST_KINESTHETIC = 1 FFCAP_ST_VIBRATION = 2 FFEB_NOTRIGGER = 4294967295 FFEFF_CARTESIAN = 16 FFEFF_POLAR = 32 FFEFF_SPHERICAL = 64 FFEGES_EMULATED = 2 FFEGES_NOTPLAYING = 0 FFEGES_PLAYING = 1 FFEP_ALLPARAMS = 1023 FFEP_AXES = 32 FFEP_DIRECTION = 64 FFEP_DURATION = 1 FFEP_ENVELOPE = 128 FFEP_GAIN = 4 FFEP_NODOWNLOAD = 2147483648 FFEP_NORESTART = 1073741824 FFEP_SAMPLEPERIOD = 2 FFEP_START = 536870912 FFEP_STARTDELAY = 512 FFEP_TRIGGERBUTTON = 8 FFEP_TRIGGERREPEATINTERVAL = 16 FFEP_TYPESPECIFICPARAMS = 256 FFES_NODOWNLOAD = 2147483648 FFES_SOLO = 1 FFGFFS_ACTUATORSOFF = 32 FFGFFS_ACTUATORSON = 16 FFGFFS_DEVICELOST = 2147483648 FFGFFS_EMPTY = 1 FFGFFS_PAUSED = 4 FFGFFS_POWEROFF = 128 FFGFFS_POWERON = 64 FFGFFS_SAFETYSWITCHOFF = 512 FFGFFS_SAFETYSWITCHON = 256 FFGFFS_STOPPED = 2 FFGFFS_USERFFSWITCHOFF = 2048 FFGFFS_USERFFSWITCHON = 1024 FFPROP_AUTOCENTER = 3 FFPROP_FFGAIN = 1 FFSCL_BACKGROUND = 8 FFSCL_EXCLUSIVE = 1 FFSCL_FOREGROUND = 4 FFSCL_NONEXCLUSIVE = 2 FFSFFC_CONTINUE = 8 FFSFFC_PAUSE = 4 FFSFFC_RESET = 1 FFSFFC_SETACTUATORSOFF = 32 FFSFFC_SETACTUATORSON = 16 FFSFFC_STOPALL = 2 KFFAPIMajorRev = 1 KFFAPIMinorAndBugRev = 0 KFFAPINonRelRev = 0 KFFAPIStage = 128 )
Variables ¶
This section is empty.
Functions ¶
func FFCreateDevice ¶
FFCreateDevice calls the ForceFeedback framework function FFCreateDevice.
func FFDeviceCreateEffect ¶
func FFDeviceCreateEffect(deviceReference FFDeviceObjectReference, uuidRef corefoundation.CFUUIDRef, pEffectDefinition unsafe.Pointer, pEffectReference unsafe.Pointer) unsafe.Pointer
FFDeviceCreateEffect calls the ForceFeedback framework function FFDeviceCreateEffect.
func FFDeviceEscape ¶
func FFDeviceEscape(deviceReference FFDeviceObjectReference, pFFEffectEscape unsafe.Pointer) unsafe.Pointer
FFDeviceEscape calls the ForceFeedback framework function FFDeviceEscape.
func FFDeviceGetForceFeedbackCapabilities ¶
func FFDeviceGetForceFeedbackCapabilities(deviceReference FFDeviceObjectReference, pFFCapabilities unsafe.Pointer) unsafe.Pointer
FFDeviceGetForceFeedbackCapabilities calls the ForceFeedback framework function FFDeviceGetForceFeedbackCapabilities.
func FFDeviceGetForceFeedbackProperty ¶
func FFDeviceGetForceFeedbackProperty(deviceReference FFDeviceObjectReference, property int, pValue unsafe.Pointer, valueSize uint64) unsafe.Pointer
FFDeviceGetForceFeedbackProperty calls the ForceFeedback framework function FFDeviceGetForceFeedbackProperty.
func FFDeviceGetForceFeedbackState ¶
func FFDeviceGetForceFeedbackState(deviceReference FFDeviceObjectReference) (result unsafe.Pointer, pFFState int)
FFDeviceGetForceFeedbackState calls the ForceFeedback framework function FFDeviceGetForceFeedbackState.
func FFDeviceReleaseEffect ¶
func FFDeviceReleaseEffect(deviceReference FFDeviceObjectReference, effectReference FFEffectObjectReference) unsafe.Pointer
FFDeviceReleaseEffect calls the ForceFeedback framework function FFDeviceReleaseEffect.
func FFDeviceSendForceFeedbackCommand ¶
func FFDeviceSendForceFeedbackCommand(deviceReference FFDeviceObjectReference, flags int) unsafe.Pointer
FFDeviceSendForceFeedbackCommand calls the ForceFeedback framework function FFDeviceSendForceFeedbackCommand.
func FFDeviceSetCooperativeLevel ¶
func FFDeviceSetCooperativeLevel(deviceReference FFDeviceObjectReference, taskIdentifier unsafe.Pointer, flags int) unsafe.Pointer
FFDeviceSetCooperativeLevel calls the ForceFeedback framework function FFDeviceSetCooperativeLevel.
func FFDeviceSetForceFeedbackProperty ¶
func FFDeviceSetForceFeedbackProperty(deviceReference FFDeviceObjectReference, property int, pValue unsafe.Pointer) unsafe.Pointer
FFDeviceSetForceFeedbackProperty calls the ForceFeedback framework function FFDeviceSetForceFeedbackProperty.
func FFEffectDownload ¶
func FFEffectDownload(effectReference FFEffectObjectReference) unsafe.Pointer
FFEffectDownload calls the ForceFeedback framework function FFEffectDownload.
func FFEffectEscape ¶
func FFEffectEscape(effectReference FFEffectObjectReference, pFFEffectEscape unsafe.Pointer) unsafe.Pointer
FFEffectEscape calls the ForceFeedback framework function FFEffectEscape.
func FFEffectGetEffectStatus ¶
func FFEffectGetEffectStatus(effectReference FFEffectObjectReference) (result unsafe.Pointer, pFlags int)
FFEffectGetEffectStatus calls the ForceFeedback framework function FFEffectGetEffectStatus.
func FFEffectGetParameters ¶
func FFEffectGetParameters(effectReference FFEffectObjectReference, pFFEffect unsafe.Pointer, flags int) unsafe.Pointer
FFEffectGetParameters calls the ForceFeedback framework function FFEffectGetParameters.
func FFEffectSetParameters ¶
func FFEffectSetParameters(effectReference FFEffectObjectReference, pFFEffect unsafe.Pointer, flags int) unsafe.Pointer
FFEffectSetParameters calls the ForceFeedback framework function FFEffectSetParameters.
func FFEffectStart ¶
func FFEffectStart(effectReference FFEffectObjectReference, iterations int, flags int) unsafe.Pointer
FFEffectStart calls the ForceFeedback framework function FFEffectStart.
func FFEffectStop ¶
func FFEffectStop(effectReference FFEffectObjectReference) unsafe.Pointer
FFEffectStop calls the ForceFeedback framework function FFEffectStop.
func FFEffectUnload ¶
func FFEffectUnload(effectReference FFEffectObjectReference) unsafe.Pointer
FFEffectUnload calls the ForceFeedback framework function FFEffectUnload.
func FFIsForceFeedback ¶
FFIsForceFeedback calls the ForceFeedback framework function FFIsForceFeedback.
func FFReleaseDevice ¶
func FFReleaseDevice(deviceReference FFDeviceObjectReference) unsafe.Pointer
FFReleaseDevice calls the ForceFeedback framework function FFReleaseDevice.
Types ¶
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
func (e DispatchAutoreleaseFrequency) String() string
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 FFCAPABILITIES ¶
type FFCAPABILITIES struct {
FfSpecVer unsafe.Pointer
SupportedEffects uint32
EmulatedEffects uint32
SubType uint32
NumFfAxes uint32
FfAxes [32]uint8
StorageCapacity uint32
PlaybackCapacity uint32
FirmwareVer unsafe.Pointer
HardwareVer unsafe.Pointer
DriverVer unsafe.Pointer
}
Used by the FFDeviceGetForceFeedbackCapabilities method to retrieve device force-feedback capabilities.
type FFCONDITION ¶
type FFCONDITION struct {
LOffset int32
LPositiveCoefficient int32
LNegativeCoefficient int32
DwPositiveSaturation uint32
DwNegativeSaturation uint32
LDeadBand int32
}
A structure containing type-specific information for certain effects.
type FFCONSTANTFORCE ¶
type FFCONSTANTFORCE struct {
LMagnitude int32
}
Contains type-specific information for the CONSTANTFORCE effect.
type FFCUSTOMFORCE ¶
type FFCUSTOMFORCE struct {
CChannels uint32
DwSamplePeriod uint32
CSamples uint32
RglForceData unsafe.Pointer
}
Contains type-specific information for the CUSTOMFORCE effect.
type FFDeviceObjectReference ¶ added in v0.18.0
FFDeviceObjectReference is a handle for the opaque FFDeviceObjectReference type.
func (FFDeviceObjectReference) IsNil ¶ added in v0.18.0
func (h FFDeviceObjectReference) IsNil() bool
IsNil reports whether FFDeviceObjectReference is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type FFEFFECT ¶
type FFEFFECT struct {
DwSize uint32
DwFlags uint32
DwDuration uint32
DwSamplePeriod uint32
DwGain uint32
DwTriggerButton uint32
DwTriggerRepeatInterval uint32
CAxes uint32
RgdwAxes unsafe.Pointer
RglDirection unsafe.Pointer
LpEnvelope unsafe.Pointer
CbTypeSpecificParams uint32
LpvTypeSpecificParams unsafe.Pointer
DwStartDelay uint32
}
UsUsed by the FFDeviceCreateEffect method to initialize a new effect object. It is also used by the FFEffectSetParameters and FFEffectGetParameters functions.
type FFEFFESCAPE ¶
type FFEFFESCAPE struct {
DwSize uint32
DwCommand uint32
LpvInBuffer unsafe.Pointer
CbInBuffer uint32
LpvOutBuffer unsafe.Pointer
CbOutBuffer uint32
}
The FFEFFESCAPE structure passes hardware-specific data directly to the Force Feedback plugIn.
type FFENVELOPE ¶
type FFENVELOPE struct {
DwSize uint32
DwAttackLevel uint32
DwAttackTime uint32
DwFadeLevel uint32
DwFadeTime uint32
}
Used by the FFEFFECT structure to specify the optional envelope parameters for an effect.
type FFEffectObjectReference ¶ added in v0.18.0
FFEffectObjectReference is a handle for the opaque FFEffectObjectReference type.
func (FFEffectObjectReference) IsNil ¶ added in v0.18.0
func (h FFEffectObjectReference) IsNil() bool
IsNil reports whether FFEffectObjectReference is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type FFPERIODIC ¶
A structure containing type-specific information for certain effects.
type FFRAMPFORCE ¶
Contains type-specific information for the RAMPFORCE effect.
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 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 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 )
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 )
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 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
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.