addr

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	Blkno common.Bnum
	Off   uint64 // offset in bits
}

Addr identifies the start of a disk object.

Blkno is the block number containing the object, and Off is the location of the object within the block (expressed as a bit offset). The size of the object is determined by the context in which Addr is used.

func MkAddr

func MkAddr(blkno common.Bnum, off uint64) Addr

func MkBitAddr

func MkBitAddr(start common.Bnum, n uint64) Addr

func (Addr) Flatid

func (a Addr) Flatid() uint64

Jump to

Keyboard shortcuts

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