data_structures

package
v0.0.0-...-bed064d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2016 License: GPL-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BB

type BB struct {
	Rng       Range
	Transfers []uint64
}

func NewBB

func NewBB(from uint64, to uint64, transfers []uint64) *BB

type MappedRegion

type MappedRegion struct {
	Data   []byte
	Flags  PageFlags
	Range  Range
	Loaded bool
}

func NewMappedRegion

func NewMappedRegion(data []byte, flags PageFlags, rng Range) *MappedRegion

type PageFlags

type PageFlags uint
const (
	X PageFlags = 1
	R PageFlags = 2
	W PageFlags = 4
)

type Range

type Range struct {
	From, To uint64
}

func NewRange

func NewRange(from, to uint64) Range

func (*Range) Include

func (s *Range) Include(addr uint64) bool

func (*Range) Intersects

func (s *Range) Intersects(from, to uint64) bool

func (*Range) IntersectsRange

func (s *Range) IntersectsRange(other Range) bool

func (*Range) IsEmpty

func (s *Range) IsEmpty() bool

func (*Range) Length

func (s *Range) Length() uint64

type Symbol

type Symbol struct {
	Name string
	Type SymbolType
}

func NewSymbol

func NewSymbol(name string, symtype SymbolType) *Symbol

type SymbolType

type SymbolType uint
const (
	FUNC        SymbolType = 1
	DATA        SymbolType = 2
	FILE        SymbolType = 3
	THREADLOCAL SymbolType = 4
	SECTION     SymbolType = 5
	UNKNOWN     SymbolType = 6
)

Jump to

Keyboard shortcuts

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