fast

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package fast provides an algorithm for generating fast set. See http://www.bittorrent.org/beps/bep_0006.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFastSet

func GenerateFastSet(k int, numPieces uint32, infoHash [20]byte, ip net.IP) []uint32

GenerateFastSet returns a slice of k items that contains the piece indexes of the torrent with infoHash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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