rangeutils

package
v2.0.0-alpha-inner-test Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 3 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 {
	StartIndex uint64
	EndIndex   uint64
}

func GetBreakRange

func GetBreakRange(breakPoint int64, sourceFileLength int64) (*Range, error)

func ParseHTTPRange

func ParseHTTPRange(rangeStr string) (r *Range, err error)

ParseRange parses Range according to range string. rangeStr: "bytes=start-end"

func ParseRange

func ParseRange(rangeStr string) (r *Range, err error)

ParseRange parses Range according to range string. rangeStr: "start-end"

func (Range) String

func (r Range) String() string

Jump to

Keyboard shortcuts

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