Documentation
¶
Overview ¶
Package ats provides a fluent Go API over the macOS ATS 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
- type ATSFontFamilyIterator
- type ATSFontFamilyIterator_
- type ATSFontFilter
- type ATSFontFilterSelector
- type ATSFontIterator
- type ATSFontIterator_
- type ATSFontMetrics
- type ATSFontNotificationInfoRef
- type ATSFontNotificationInfoRef_
- type ATSFontNotificationRef
- type ATSFontNotificationRef_
- type ATSFontNotifyAction
- type ATSFontNotifyOption
- type ATSFontQueryMessageID
- type ATSFontQuerySourceContext
- type ATSGlyphIdealMetrics
- type ATSGlyphScreenMetrics
- type ATSJustWidthDeltaEntryOverride
- type ATSLayoutRecord
- type ATSTrapezoid
- type ATSUCurvePath
- type ATSUCurvePaths
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type FMFontFamilyInstance
- type FMFontFamilyInstanceIterator
- type FMFontFamilyIterator
- type FMFontIterator
- type FilesecProperty
- type Flag
- type Idtype
- type IpcInfoObjectType
- type LaunchDataType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type OSClockid
- type Perm
- type PtrauthKey
- type QosClass
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
const ( KATSBoldQDStretch = 98304 KATSCubicCurveType = 1 KATSDeletedGlyphcode = 65535 KATSFontAutoActivationAsk = 4 KATSFontAutoActivationDefault = 0 KATSFontAutoActivationDisabled = 1 KATSFontAutoActivationEnabled = 2 KATSFontContainerRefUnspecified = 0 KATSFontContextGlobal = 1 KATSFontContextLocal = 2 KATSFontContextUnspecified = 0 KATSFontFamilyRefUnspecified = 0 KATSFontFilterCurrentVersion = 0 KATSFontFormatUnspecified = 0 KATSFontRefUnspecified = 0 KATSGenerationUnspecified = 0 KATSGlyphInfoAppleReserved = 536608744 KATSGlyphInfoByteSizeMask = 7 KATSGlyphInfoHasImposedWidth = 16 KATSGlyphInfoIsAttachment = 2147483648 KATSGlyphInfoIsLTHanger = 1073741824 KATSGlyphInfoIsRBHanger = 536870912 KATSGlyphInfoIsWhiteSpace = 262144 KATSGlyphInfoTerminatorGlyph = 524288 KATSInvalidFontAccess = -982 KATSInvalidFontContainerAccess = -985 KATSInvalidFontFamilyAccess = -981 KATSInvalidFontTableAccess = -984 KATSInvalidGlyphAccess = -986 KATSItalicQDSkew = 16384 KATSIterationCompleted = -980 KATSIterationScopeModified = -983 KATSLineAppleReserved = 4242538496 KATSLineApplyAntiAliasing = 2048 KATSLineBreakToNearestCharacter = 33554432 KATSLineDisableAllBaselineAdjustments = 524288 KATSLineDisableAllGlyphMorphing = 131072 KATSLineDisableAllJustification = 65536 KATSLineDisableAllKerningAdjustments = 262144 KATSLineDisableAllLayoutOperations = 2031616 KATSLineDisableAllTrackingAdjustments = 1048576 KATSLineDisableAutoAdjustDisplayPos = 16384 KATSLineDisableNegativeJustification = 8192 KATSLineFillOutToWidth = 256 KATSLineFractDisable = 64 KATSLineHasNoHangers = 2 KATSLineHasNoOpticalAlignment = 4 KATSLineIgnoreFontLeading = 1024 KATSLineImposeNoAngleForEnds = 128 KATSLineIsDisplayOnly = 1 KATSLineKeepSpacesOutOfMargin = 8 KATSLineLastNoJustification = 32 KATSLineNoAntiAliasing = 4096 KATSLineNoLayoutOptions = 0 KATSLineNoSpecialJustification = 16 KATSLineTabAdjustEnabled = 512 KATSLineUseDeviceMetrics = 16777216 KATSLineUseQDRendering = 32768 KATSNoTracking = -2147483648 KATSOptionFlagsActivateDisabled = 32 KATSOptionFlagsComposeFontPostScriptName = 1 KATSOptionFlagsDefault = 0 KATSOptionFlagsDefaultScope = 0 KATSOptionFlagsDoNotNotify = 128 KATSOptionFlagsIncludeDisabledMask = 128 KATSOptionFlagsIterateByPrecedenceMask = 32 KATSOptionFlagsIterationScopeMask = 28672 KATSOptionFlagsProcessSubdirectories = 64 KATSOptionFlagsRecordPersistently = 262144 KATSOptionFlagsRestrictedScope = 8192 KATSOptionFlagsUnRestrictedScope = 4096 KATSOptionFlagsUseDataFork = 768 KATSOptionFlagsUseDataForkAsResourceFork = 256 KATSOptionFlagsUseResourceFork = 512 KATSOtherCurveType = 3 KATSQuadCurveType = 2 KATSRadiansFactor = 1144 KATSStyleAppleReserved = 4294967288 KATSStyleApplyAntiAliasing = 2 KATSStyleApplyHints = 0 KATSStyleNoAntiAliasing = 4 KATSStyleNoHinting = 1 KATSStyleNoOptions = 0 KATSULayoutOperationAppleReserved = 4294967232 KATSULayoutOperationBaselineAdjustment = 8 KATSULayoutOperationCallbackStatusContinue = 1 KATSULayoutOperationCallbackStatusHandled = 0 KATSULayoutOperationJustification = 1 KATSULayoutOperationKerningAdjustment = 4 KATSULayoutOperationMorph = 2 KATSULayoutOperationNone = 0 KATSULayoutOperationPostLayoutAdjustment = 32 KATSULayoutOperationTrackingAdjustment = 16 KATSUseCaretOrigins = 0 KATSUseDeviceOrigins = 1 KATSUseFractionalOrigins = 2 KATSUseGlyphAdvance = 2147483647 KATSUseLineHeight = 2147483647 KATSUseOriginFlags = 3 KFMCurrentFilterFormat = 0 KFMFontCallbackFilterSelector = 5 KFMFontContainerFilterSelector = 2 KFMFontDirectoryFilterSelector = 6 KFMFontFamilyCallbackFilterSelector = 4 KFMFontFileRefFilterSelector = 10 KFMFontTechnologyFilterSelector = 1 KFMGenerationFilterSelector = 3 KFMPostScriptFontTechnology = 1954115633 KFMTrueTypeFontTechnology = 1953658213 KFontNoLanguage = 4294967295 KFontNoName = 4294967295 KFontNoPlatform = 4294967295 KFontNoScript = 4294967295 KInvalidFont = 0 KInvalidFontFamily = -1 KInvalidGeneration = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ATSFontFamilyIterator ¶ added in v0.18.0
ATSFontFamilyIterator is a handle for the opaque ATSFontFamilyIterator type.
func (ATSFontFamilyIterator) IsNil ¶ added in v0.18.0
func (h ATSFontFamilyIterator) IsNil() bool
IsNil reports whether ATSFontFamilyIterator is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type ATSFontFamilyIterator_ ¶
type ATSFontFamilyIterator_ struct{}
type ATSFontFilter ¶
type ATSFontFilter struct {
Version uint32
FilterSelector ATSFontFilterSelector
Filter unsafe.Pointer
}
type ATSFontFilterSelector ¶
type ATSFontFilterSelector int32
const ( KATSFontFilterSelectorUnspecified ATSFontFilterSelector = 0 KATSFontFilterSelectorGeneration ATSFontFilterSelector = 3 KATSFontFilterSelectorFontFamily ATSFontFilterSelector = 7 KATSFontFilterSelectorFontFamilyApplierFunction ATSFontFilterSelector = 8 KATSFontFilterSelectorFontApplierFunction ATSFontFilterSelector = 9 KATSFileReferenceFilterSelector ATSFontFilterSelector = 10 )
func (ATSFontFilterSelector) String ¶
func (e ATSFontFilterSelector) String() string
String returns the ATSFontFilterSelector constant's name, or its numeric form when the value is not a known constant.
type ATSFontIterator ¶ added in v0.18.0
ATSFontIterator is a handle for the opaque ATSFontIterator type.
func (ATSFontIterator) IsNil ¶ added in v0.18.0
func (h ATSFontIterator) IsNil() bool
IsNil reports whether ATSFontIterator is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type ATSFontIterator_ ¶
type ATSFontIterator_ struct{}
type ATSFontMetrics ¶
type ATSFontMetrics struct {
Version uint32
Ascent float64
Descent float64
Leading float64
AvgAdvanceWidth float64
MaxAdvanceWidth float64
MinLeftSideBearing float64
MinRightSideBearing float64
StemWidth float64
StemHeight float64
CapHeight float64
XHeight float64
ItalicAngle float64
UnderlinePosition float64
UnderlineThickness float64
}
type ATSFontNotificationInfoRef ¶ added in v0.18.0
ATSFontNotificationInfoRef is a handle for the opaque ATSFontNotificationInfoRef type.
func (ATSFontNotificationInfoRef) IsNil ¶ added in v0.18.0
func (h ATSFontNotificationInfoRef) IsNil() bool
IsNil reports whether ATSFontNotificationInfoRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type ATSFontNotificationInfoRef_ ¶
type ATSFontNotificationInfoRef_ struct{}
type ATSFontNotificationRef ¶ added in v0.18.0
ATSFontNotificationRef is a handle for the opaque ATSFontNotificationRef type.
func (ATSFontNotificationRef) IsNil ¶ added in v0.18.0
func (h ATSFontNotificationRef) IsNil() bool
IsNil reports whether ATSFontNotificationRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type ATSFontNotificationRef_ ¶
type ATSFontNotificationRef_ struct{}
type ATSFontNotifyAction ¶
type ATSFontNotifyAction int32
const ( KATSFontNotifyActionFontsChanged ATSFontNotifyAction = 1 KATSFontNotifyActionDirectoriesChanged ATSFontNotifyAction = 2 )
func (ATSFontNotifyAction) String ¶
func (e ATSFontNotifyAction) String() string
String returns the ATSFontNotifyAction constant's name, or its numeric form when the value is not a known constant.
type ATSFontNotifyOption ¶
type ATSFontNotifyOption int32
const ( KATSFontNotifyOptionDefault ATSFontNotifyOption = 0 KATSFontNotifyOptionReceiveWhileSuspended ATSFontNotifyOption = 1 )
func (ATSFontNotifyOption) String ¶
func (e ATSFontNotifyOption) String() string
String returns the ATSFontNotifyOption constant's name, or its numeric form when the value is not a known constant.
type ATSFontQueryMessageID ¶
type ATSFontQueryMessageID int32
const (
KATSQueryActivateFontMessage ATSFontQueryMessageID = 1635021665
)
func (ATSFontQueryMessageID) String ¶
func (e ATSFontQueryMessageID) String() string
String returns the ATSFontQueryMessageID constant's name, or its numeric form when the value is not a known constant.
type ATSGlyphIdealMetrics ¶
type ATSGlyphIdealMetrics struct {
Advance corefoundation.CGPoint
SideBearing corefoundation.CGPoint
OtherSideBearing corefoundation.CGPoint
}
type ATSGlyphScreenMetrics ¶
type ATSGlyphScreenMetrics struct {
DeviceAdvance corefoundation.CGPoint
TopLeft corefoundation.CGPoint
Height uint32
Width uint32
SideBearing corefoundation.CGPoint
OtherSideBearing corefoundation.CGPoint
}
type ATSLayoutRecord ¶
type ATSTrapezoid ¶
type ATSUCurvePath ¶
type ATSUCurvePath struct {
// contains filtered or unexported fields
}
The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.
func (*ATSUCurvePath) AsControlBits ¶ added in v0.18.0
func (u *ATSUCurvePath) AsControlBits() [1]uint32
AsControlBits returns the controlBits field, read from the backing bytes at offset 4.
func (*ATSUCurvePath) AsVectors ¶ added in v0.18.0
func (u *ATSUCurvePath) AsVectors() uint32
AsVectors returns the vectors field, read from the backing bytes at offset 0.
type ATSUCurvePaths ¶
type ATSUCurvePaths struct {
Contours uint32
Contour [1]ATSUCurvePath
}
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 FMFontFamilyInstance ¶
type FMFontFamilyInstanceIterator ¶
type FMFontFamilyInstanceIterator struct {
Reserved [16]uint32
}
type FMFontFamilyIterator ¶
type FMFontFamilyIterator struct {
Reserved [16]uint32
}
type FMFontIterator ¶
type FMFontIterator struct {
Reserved [16]uint32
}
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 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 )
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.
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.