bencode.pl

bencode(?Term, ?Codes) is semidet
True if Codes is the bencoding of Term. In Term, atoms represent byte strings. Lists of Key-Value pairs, sorted by Key represent dictionaries. Integers and lists represent themselves.