datamap

package
v0.0.0-...-118e361 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataMap

type DataMap struct {
	Routes []*RouteNode
}

func New

func New(layoutMap any) (*DataMap, error)

New generates a DataMap from the given struct. Given argument must be a pointer to a struct. The struct fields must be tagged with `offsetof` or `sizeof` tags. The pointer is needed to be able to set the fields.

func (*DataMap) ReadFromDWARF

func (dataMap *DataMap) ReadFromDWARF(ef *elf.File) error

type Extractor

type Extractor struct {
	Source string
	Op     Operation
	Static bool
	// contains filtered or unexported fields
}

func (*Extractor) Set

func (d *Extractor) Set(value int64) error

type Operation

type Operation int
const (
	OpOffsetOf Operation = iota
	OpSizeOf
)

func (Operation) String

func (o Operation) String() string

type RouteNode

type RouteNode struct {
	Next *RouteNode

	Type       string
	Extractors []*Extractor
	// contains filtered or unexported fields
}

func (*RouteNode) IsLeaf

func (rn *RouteNode) IsLeaf() bool

func (*RouteNode) Key

func (rn *RouteNode) Key() string

func (*RouteNode) Leaf

func (rn *RouteNode) Leaf() *RouteNode

Jump to

Keyboard shortcuts

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