rangesplit

package
v0.0.0-...-c0fde58 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlignDown

func AlignDown(x int64, align int64) int64

AlignDown will align down the x by align

Types

type RangeSegment

type RangeSegment struct {
	Index  int64
	Offset int64
	Count  int
}

RangeSegment segment information for split range

type RangeSplit

type RangeSplit struct {
	// contains filtered or unexported fields
}

RangeSplit utility for split range into segments

func NewRangeSplit

func NewRangeSplit(offset int64, step int, size int64, maxsize int64) RangeSplit

NewRangeSplit is creator for RangeSplit

func (RangeSplit) AllParts

func (r RangeSplit) AllParts() chan RangeSegment

AllParts provides a channel as iterable object to range segments

Jump to

Keyboard shortcuts

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