github.com
rclarey
torrent
bencode.ts
master
https://raw.githubusercontent.com/rclarey/torrent/master/bencode.ts
Copyimport * as torrent from "https://raw.githubusercontent.com/rclarey/torrent/master/bencode.ts";
import * as torrent from "https://raw.githubusercontent.com/rclarey/torrent/master/bencode.ts";
Decode data from a byte array into native data types
data
special case of bdecode when we are expecting a top level key files whose value is a map of infohashes to file info
bdecode
files
Encode data into a byte array suitable for transmitting
Data that is able to be bencoded