data

package
v0.0.0-...-5a3fdb9 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Range

type Range struct {
	Begin uint64
	End   uint64
}

func Make

func Make(begin uint64, end uint64) Range

func Sub

func Sub(seg1 Range, seg2 Range) []Range

type Region

type Region struct {
	Segments []Range
}

func MakeRegion

func MakeRegion(r Range) Region

func (Region) Begin

func (region Region) Begin() uint64

func (*Region) IsEmpty

func (region *Region) IsEmpty() bool

func (*Region) ShrinkEnd

func (region *Region) ShrinkEnd(size uint64)

func (*Region) Sub

func (region *Region) Sub(seg Range)

Jump to

Keyboard shortcuts

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