Expand description
Deterministic payload discovery for torrent creation.
Structs§
- Cancellation
Token - Cooperative cancellation handle shared with long-running core operations.
- Create
Metrics - Per-phase elapsed time for creation.
- Create
Options - Reproducible v1 creation options.
- Create
Options Builder - Builder for
CreateOptions. - Create
Result - Canonical creation result.
- Creator
- Torrent creator over one payload path.
- Hash
Progress - Monotonic progress snapshot for sequential hashing.
- Manifest
Entry - Metadata needed to stream a payload file later without keeping it open.
- Manifest
Options - Options controlling deterministic payload discovery.
- Manifest
Options Builder - Builder for
ManifestOptions. - NoProgress
- Zero-overhead progress sink for callers that do not need updates.
- Parallel
Hash Options - Bounded per-operation v1 hashing pipeline settings.
- Payload
Manifest - Deterministically sorted payload snapshot.
- V1Hash
Result - Ordered SHA-1 piece hashes and hashing metrics.
- V2Hash
Result - Per-file BEP 52 Merkle result.
Enums§
- Create
Mode - Torrent protocol representation to create.
- Durability
Policy - Durability requested after atomic destination publication.
- Empty
Directory Policy - Policy for empty directories, which cannot be represented in metainfo.
- Empty
File Policy - Policy for zero-length files.
- Hash
Threads - Per-operation v1 hashing worker selection.
- Hidden
Policy - Policy for dot-prefixed path components.
- Overwrite
Policy - Destination replacement policy for atomic creation.
- Piece
Length - Automatic or caller-selected piece length.
- Piece
Length Mode - Protocol constraints applied to an explicit piece length.
- Root
Name - How the torrent root name is selected.
- Special
File Policy - Policy for sockets, devices, FIFOs, and other non-file entries.
- Symlink
Policy - Policy for symbolic links.
Constants§
- PIECE_
LENGTH_ POLICY_ ID - Stable identifier for the automatic piece-length selection table.
- V2_
BLOCK_ LENGTH - BEP 52 leaf block length in bytes.
Traits§
- Progress
Sink - Presentation-free observer for hashing progress.
Functions§
- automatic_
piece_ length - Selects a stable automatic piece length for total payload bytes.
- hash_
v1_ parallel - Bounded parallel v1 piece hashing with ordered collection.
- hash_
v1_ sequential - Sequential correctness oracle for v1 piece hashing.
- hash_
v2_ file_ sequential - Hashes one file into a BEP 52 pieces root and optional piece layer.
- scan_
manifest - Scans a file or directory into a deterministic manifest.
- sort_
manifest_ entries - Sorts entries and rejects duplicate torrent paths.
- v2_
zero_ hash - Returns the BEP 52 all-zero subtree hash at
levelabove leaves. - validate_
piece_ length - Validates a caller-selected piece length.
- write_
atomic - Atomically writes bytes using BTPC’s overwrite and durability policies.