rangeutils

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 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 `json:"start_index"`
	EndIndex   uint64 `json:"end_index"`
}

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