linuxmem

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

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

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 LoadLibrary(data []byte) (*Module, error)

func (*Module) CallExport

func (module *Module) CallExport(name string) error

func (*Module) CallExportWithArgs

func (module *Module) CallExportWithArgs(name string, args ...uintptr) (uintptr, error)

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) Free

func (module *Module) Free()

func (*Module) ProcAddressByName

func (module *Module) ProcAddressByName(name string) (uintptr, error)

func (*Module) ProcAddressByOrdinal

func (module *Module) ProcAddressByOrdinal(ordinal uint16) (uintptr, error)

Jump to

Keyboard shortcuts

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