extent

package
v0.0.0-...-9948f64 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extent

type Extent struct {
	Start, End uint64
}

func Parse

func Parse(str string) (*Extent, error)

func (*Extent) Merge

func (e *Extent) Merge(other *Extent) *Extent

func (*Extent) Remove

func (e *Extent) Remove(remove *Extent) []*Extent

func (Extent) String

func (e Extent) String() string

type Extents

type Extents []*Extent

func (Extents) Len

func (e Extents) Len() int

func (Extents) Less

func (e Extents) Less(i, j int) bool

func (Extents) Merge

func (e Extents) Merge() Extents

Extents must be sorted

func (Extents) String

func (e Extents) String() string

func (Extents) Swap

func (e Extents) Swap(i, j int)

Jump to

Keyboard shortcuts

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