mmio

package
v0.0.0-...-cc0dadb Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mmio

type Mmio interface {
	bytes.Raw
	bytes.Reader
	bytes.Writer
	Sync() error
	Close() error
	Slice(offset int, size int) Mmio
	LittleEndian() Mmio
	BigEndian() Mmio
}

Mmio memory map a region

func MockOpenRO

func MockOpenRO(source *[]byte, offset int, size int) (Mmio, error)

MockOpenRO open read only

func MockOpenRW

func MockOpenRW(source *[]byte, offset int, size int) (Mmio, error)

MockOpenRW open read write

func OpenRO

func OpenRO(path string, offset int, size int) (Mmio, error)

OpenRO open region readonly

func OpenRW

func OpenRW(path string, offset int, size int) (Mmio, error)

OpenRW open region read write

Jump to

Keyboard shortcuts

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