hdr

package
v0.0.0-...-75857cd Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hdr

type Hdr struct {
	File     *ast.File
	ArchSize map[string]uint64
}

func ParseFile

func ParseFile(path, source, arch string) (h Hdr, err error)

func (Hdr) GetFuncArgRetSize

func (h Hdr) GetFuncArgRetSize(f *ast.FuncDecl) (args []Var, rets []Var, sz uint64)

GetFuncArgRetSize

func (Hdr) GetFuncDecls

func (h Hdr) GetFuncDecls(hasBody bool) (fs []*ast.FuncDecl)

func (Hdr) PackageName

func (h Hdr) PackageName() string

type Var

type Var struct {
	Offset uint64
	Size   uint64
	Name   string
}

Jump to

Keyboard shortcuts

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