Documentation
¶
Overview ¶
SPDX-License-Identifier: MIT
SPDX-License-Identifier: MIT
This loader is adapted from Reflektor's memmod Linux backend. It is kept in a separate leaf package so native-only callers do not link the Go c-shared static TLS provider. See ../../../memmod/COPYING for license details.
Index ¶
- type Module
- func (module *Module) CallExport(name string) error
- func (module *Module) CallExportWithArgs(name string, args ...uintptr) (uintptr, error)
- func (module *Module) Free()
- func (module *Module) ProcAddressByName(name string) (uintptr, error)
- func (module *Module) ProcAddressByOrdinal(ordinal uint16) (uintptr, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func LoadLibrary ¶
func (*Module) CallExport ¶
func (*Module) CallExportWithArgs ¶
CallExportWithArgs resolves and calls an exported native C/Rust function with up to three machine-word arguments and returns the value from the platform's primary return register.
func (*Module) ProcAddressByName ¶
Click to show internal directories.
Click to hide internal directories.