object_probe_index

package
v0.0.0-...-791c77c Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DigitWidth = 1
	PageCount  = 1 << (DigitWidth * 4)
)
View Source
const RowSize = sha.ByteSize + 1 + 8 + 8

Variables

This section is empty.

Functions

func MakeNoDuplicates

func MakeNoDuplicates(s env_repo.Env, path string) (e *object_probe_index, err error)

func MakePermitDuplicates

func MakePermitDuplicates(s env_repo.Env, path string) (e *object_probe_index, err error)

Types

type Index

type Index interface {
	GetObjectProbeIndex() Index

	PrintAll(env_ui.Env) error
	errors.Flusher
	// contains filtered or unexported methods
}

type Loc

type Loc struct {
	Page uint8
	Range
}

func (Loc) IsEmpty

func (l Loc) IsEmpty() bool

func (*Loc) ReadFrom

func (l *Loc) ReadFrom(r io.Reader) (n int64, err error)

func (Loc) String

func (l Loc) String() string

func (*Loc) WriteTo

func (l *Loc) WriteTo(w io.Writer) (n int64, err error)

type Metadata

type Metadata = object_metadata.Metadata

type Range

type Range struct {
	Offset, ContentLength int64
}

func (Range) IsEmpty

func (l Range) IsEmpty() bool

func (*Range) ReadFrom

func (l *Range) ReadFrom(r io.Reader) (n int64, err error)

func (*Range) Size

func (l *Range) Size() int

func (Range) String

func (l Range) String() string

func (*Range) WriteTo

func (l *Range) WriteTo(w io.Writer) (n int64, err error)

type Sha

type Sha = sha.Sha

Jump to

Keyboard shortcuts

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