[bittorrent] Metainfo Integers
dwknight at depthstrike.com
Wed Jul 21 13:32:28 EDT 2010
The BEncode format considers the possibility of non-torrent applications
for storage. There is the potential for other applications to need
negative values to be stored as integers.
Unsigned integers of varying lengths are possible, even beyond 64-bit.
Be prepared to adjust accordingy.
On 21/07/2010 1:04 PM, Roger Pau Monné wrote:
> I'm sorry to bother the list with this noob question, but I've read at
> http://wiki.theory.org/BitTorrentSpecification that integers in
> bittorrent metainfo bencoded files (.torrent) can be 64bit signed
> integers, why are they signed? Since it's only used for piece lenght,
> number of pieces... It is correct to treat them as 64bit unsigned
> integers? Or I am missing something.
> Thanks for the help, Roger
> BitTorrent mailing list
> BitTorrent at lists.ibiblio.org
More information about the BitTorrent