java.lang.Object
org.klomp.snark.SnarkManager.TorrentInfo
Enclosing class:
SnarkManager

public static class SnarkManager.TorrentInfoextends Object
Result of a DHT metadata lookup — name plus combined size of data files. Size is MetaInfo.getDataLength() (excludes BEP47 padding), i.e. the sum of getLengths() for non-padding files; for single-file torrents equal to getTotalLength(). Zero if metadata unavailable.
  • Field Details

    • name

      public final String name
      Torrent display name (MetaInfo.getName()).
    • size

      public final long size
      Combined size of data files in bytes (excludes padding).
  • Constructor Details

    • TorrentInfo

      public TorrentInfo(String name, long size)
      Assemble the name and size resolved by a metadata lookup.
      Parameters:
      name - torrent display name
      size - combined size of the data files in bytes, zero if unknown
  • Method Details