reader

package
v0.1.103 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 0 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