package
1.58.0
Repository: https://github.com/anacrolix/torrent.git
Documentation: pkg.go.dev

# README

A library for manipulating ".torrent" files.

# Functions

Choose a good piecelength.
Returns the padding hash for the hash layer corresponding to a piece.
Load a MetaInfo from an io.Reader.
Convenience function for loading a MetaInfo from a file.
ParseMagnetUri parses Magnet-formatted URIs into a Magnet instance.
ParseMagnetUri parses Magnet-formatted URIs into a Magnet instance.

# Constants

The Info.Name field is "advisory".

# Variables

Deprecated: Use ParseMagnetUri.

# Structs

See BEP 47.
Information specific to a single file inside the MetaInfo structure.
The fields here don't need bencode tags as the marshalling is done manually.
The info dictionary.
Magnet link components.
Magnet link components.
Also known as a torrent file.
Uniquely identifies a piece.

# Type aliases