Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

bdecodeBytestringMap

import { bdecodeBytestringMap } from "https://raw.githubusercontent.com/rclarey/torrent/master/mod.ts";

special case of bdecode when we are expecting a top level key files whose value is a map of infohashes to file info

function bdecodeBytestringMap(data: Uint8Array): Map<Uint8Array, Bencodeable> | {
failureReason: string;
}
;
§
bdecodeBytestringMap(data: Uint8Array): Map<Uint8Array, Bencodeable> | {
failureReason: string;
}
[src]

§Parameters

§
data: Uint8Array
[src]

§Return Type

§
Map<Uint8Array, Bencodeable> | {
failureReason: string;
}
[src]