reader

package
v0.0.0-...-3e59c94 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PieceRange

type PieceRange struct {
	Begin, End int
}

PieceRange ...

type PositionReader

type PositionReader struct {
	Pos         int64
	Readahead   int64
	Offset      int64
	FileLength  int64
	PieceLength int64
	Pieces      int
}

PositionReader ...

func (*PositionReader) PiecesRange

func (p *PositionReader) PiecesRange() (ret PieceRange)

PiecesRange Calculates the pieces this reader wants downloaded, ignoring the cached value at r.pieces.

Jump to

Keyboard shortcuts

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