block

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Range

type Range struct {
	StartBlock        uint64
	ExclusiveEndBlock uint64
}

func (*Range) Contains

func (r *Range) Contains(blockRef bstream.BlockRef) bool

func (*Range) Equals

func (r *Range) Equals(other *Range) bool

func (*Range) IsNext

func (r *Range) IsNext(next *Range, size uint64) bool

func (*Range) MarshalLogObject

func (r *Range) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*Range) Next

func (r *Range) Next(size uint64) *Range

func (*Range) Previous

func (r *Range) Previous(size uint64) *Range

func (*Range) Size

func (r *Range) Size() uint64

func (*Range) Split

func (r *Range) Split(chunkSize uint64) []*Range

func (*Range) String

func (r *Range) String() string

type Ranges

type Ranges []*Range

func (Ranges) Len

func (r Ranges) Len() int

func (Ranges) Less

func (r Ranges) Less(i, j int) bool

func (Ranges) String

func (r Ranges) String() string

func (Ranges) Swap

func (r Ranges) Swap(i, j int)

Jump to

Keyboard shortcuts

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