Documentation
¶
Overview ¶
Package ioaccelerator provides Go bindings for the ioaccelerator framework.
Key Types ¶
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- func BindFunc(fptr any, name string) (err error)
- func SymbolAddress(name string) (uintptr, error)
- type CFRuntimeBase
- type IIOAccelMTLEvent
- type IOAccelDevice
- type IOAccelDeviceRef
- type IOAccelDirtyResourceCommand
- type IOAccelDirtyResourceCommandRef
- type IOAccelKernelCommandSignalOrWaitEventArgs
- type IOAccelMTLEvent
- func (i IOAccelMTLEvent) Autorelease() IOAccelMTLEvent
- func (i IOAccelMTLEvent) EncodeKernelSignalEventCommandArgsValue(args *IOAccelKernelCommandSignalOrWaitEventArgs, value uint64) uint32
- func (i IOAccelMTLEvent) EncodeKernelWaitEventCommandArgs(args *IOAccelKernelCommandSignalOrWaitEventArgs) uint32
- func (i IOAccelMTLEvent) EncodeKernelWaitEventCommandArgsValue(args *IOAccelKernelCommandSignalOrWaitEventArgs, value uint64) uint32
- func (i IOAccelMTLEvent) EncodeKernelWaitEventCommandArgsValueTimeout(args *IOAccelKernelCommandSignalOrWaitEventArgs, value uint64, timeout uint32) uint32
- func (i IOAccelMTLEvent) Init() IOAccelMTLEvent
- func (i IOAccelMTLEvent) InitWithShared(shared *IOAccelShared) IOAccelMTLEvent
- func (i IOAccelMTLEvent) InitWithSharedOptions(shared *IOAccelShared, options uint64) IOAccelMTLEvent
- func (i IOAccelMTLEvent) SupportsRollback() bool
- type IOAccelMTLEventClass
- type IOAccelShared
- type IOAcceldirtyRingRO
- type IOAcceldirtyRingRORef
- type IOAcceldirtyRingRW
- type IOAcceldirtyRingRWRef
- type OSUnfairLockS
- type Os_unfair_lock_s
- type SShmemlog
- type SShmemlogRef
- type S_shmemlog_
- type ShmemlogList
- type Shmemlog_list
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindFunc ¶
BindFunc binds the ioaccelerator symbol name into fptr, which must be a pointer to a func variable.
The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.
func SymbolAddress ¶
SymbolAddress returns the address of name in ioaccelerator, whether or not this package generated a binding for it.
What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.
The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.
Types ¶
type IIOAccelMTLEvent ¶
type IIOAccelMTLEvent interface {
objectivec.IObject
EncodeKernelSignalEventCommandArgsValue(args *IOAccelKernelCommandSignalOrWaitEventArgs, value uint64) uint32
EncodeKernelWaitEventCommandArgs(args *IOAccelKernelCommandSignalOrWaitEventArgs) uint32
EncodeKernelWaitEventCommandArgsValue(args *IOAccelKernelCommandSignalOrWaitEventArgs, value uint64) uint32
EncodeKernelWaitEventCommandArgsValueTimeout(args *IOAccelKernelCommandSignalOrWaitEventArgs, value uint64, timeout uint32) uint32
SupportsRollback() bool
}
An interface definition for the IOAccelMTLEvent class.
Methods ¶
- IIOAccelMTLEvent.EncodeKernelSignalEventCommandArgsValue
- IIOAccelMTLEvent.EncodeKernelWaitEventCommandArgs
- IIOAccelMTLEvent.EncodeKernelWaitEventCommandArgsValue
- IIOAccelMTLEvent.EncodeKernelWaitEventCommandArgsValueTimeout
- IIOAccelMTLEvent.SupportsRollback
- IIOAccelMTLEvent.InitWithShared
- IIOAccelMTLEvent.InitWithSharedOptions
type IOAccelDeviceRef ¶
type IOAccelDeviceRef = _undefined
type IOAccelDirtyResourceCommand ¶
type IOAccelDirtyResourceCommand struct {
}
IOAccelDirtyResourceCommand
type IOAccelDirtyResourceCommandRef ¶
type IOAccelDirtyResourceCommandRef = _undefined
type IOAccelKernelCommandSignalOrWaitEventArgs ¶
type IOAccelKernelCommandSignalOrWaitEventArgs struct {
Field1 uint32
Field2 uint16
Field3 uint16
Field4 uint64
}
IOAccelKernelCommandSignalOrWaitEventArgs
type IOAccelMTLEvent ¶
type IOAccelMTLEvent struct {
objectivec.Object
}
Methods ¶
- IOAccelMTLEvent.EncodeKernelSignalEventCommandArgsValue
- IOAccelMTLEvent.EncodeKernelWaitEventCommandArgs
- IOAccelMTLEvent.EncodeKernelWaitEventCommandArgsValue
- IOAccelMTLEvent.EncodeKernelWaitEventCommandArgsValueTimeout
- IOAccelMTLEvent.SupportsRollback
- IOAccelMTLEvent.InitWithShared
- IOAccelMTLEvent.InitWithSharedOptions
func IOAccelMTLEventFromID ¶
func IOAccelMTLEventFromID(id objc.ID) IOAccelMTLEvent
IOAccelMTLEventFromID constructs a IOAccelMTLEvent from an objc.ID.
func NewIOAccelMTLEvent ¶
func NewIOAccelMTLEvent() IOAccelMTLEvent
NewIOAccelMTLEvent creates a new IOAccelMTLEvent instance.
func NewIOAccelMTLEventWithShared ¶
func NewIOAccelMTLEventWithShared(shared *IOAccelShared) IOAccelMTLEvent
func NewIOAccelMTLEventWithSharedOptions ¶
func NewIOAccelMTLEventWithSharedOptions(shared *IOAccelShared, options uint64) IOAccelMTLEvent
func (IOAccelMTLEvent) Autorelease ¶
func (i IOAccelMTLEvent) Autorelease() IOAccelMTLEvent
Autorelease adds the receiver to the current autorelease pool.
func (IOAccelMTLEvent) EncodeKernelSignalEventCommandArgsValue ¶
func (i IOAccelMTLEvent) EncodeKernelSignalEventCommandArgsValue(args *IOAccelKernelCommandSignalOrWaitEventArgs, value uint64) uint32
func (IOAccelMTLEvent) EncodeKernelWaitEventCommandArgs ¶
func (i IOAccelMTLEvent) EncodeKernelWaitEventCommandArgs(args *IOAccelKernelCommandSignalOrWaitEventArgs) uint32
func (IOAccelMTLEvent) EncodeKernelWaitEventCommandArgsValue ¶
func (i IOAccelMTLEvent) EncodeKernelWaitEventCommandArgsValue(args *IOAccelKernelCommandSignalOrWaitEventArgs, value uint64) uint32
func (IOAccelMTLEvent) EncodeKernelWaitEventCommandArgsValueTimeout ¶
func (i IOAccelMTLEvent) EncodeKernelWaitEventCommandArgsValueTimeout(args *IOAccelKernelCommandSignalOrWaitEventArgs, value uint64, timeout uint32) uint32
func (IOAccelMTLEvent) Init ¶
func (i IOAccelMTLEvent) Init() IOAccelMTLEvent
Init initializes the instance.
func (IOAccelMTLEvent) InitWithShared ¶
func (i IOAccelMTLEvent) InitWithShared(shared *IOAccelShared) IOAccelMTLEvent
func (IOAccelMTLEvent) InitWithSharedOptions ¶
func (i IOAccelMTLEvent) InitWithSharedOptions(shared *IOAccelShared, options uint64) IOAccelMTLEvent
func (IOAccelMTLEvent) SupportsRollback ¶
func (i IOAccelMTLEvent) SupportsRollback() bool
type IOAccelMTLEventClass ¶
type IOAccelMTLEventClass struct {
// contains filtered or unexported fields
}
func GetIOAccelMTLEventClass ¶
func GetIOAccelMTLEventClass() IOAccelMTLEventClass
GetIOAccelMTLEventClass returns the class object for IOAccelMTLEvent.
func (IOAccelMTLEventClass) Alloc ¶
func (ic IOAccelMTLEventClass) Alloc() IOAccelMTLEvent
Alloc allocates memory for a new instance of the class.
func (IOAccelMTLEventClass) Class ¶
func (ic IOAccelMTLEventClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type IOAcceldirtyRingRORef ¶
type IOAcceldirtyRingRORef = _undefined
type IOAcceldirtyRingRWRef ¶
type IOAcceldirtyRingRWRef = _undefined
type Os_unfair_lock_s ¶
type Os_unfair_lock_s = OSUnfairLockS
Os_unfair_lock_s is a type alias for OSUnfairLockS for use in objc.Send[T] calls.
type SShmemlogRef ¶
type SShmemlogRef uintptr
type S_shmemlog_ ¶
type S_shmemlog_ = SShmemlog
S_shmemlog_ is a type alias for SShmemlog for use in objc.Send[T] calls.
type Shmemlog_list ¶
type Shmemlog_list = ShmemlogList
Shmemlog_list is a type alias for ShmemlogList for use in objc.Send[T] calls.