Decode bencoded data.

The buffer to decode

Optional start index

Optional end index

Optional encoding type (utf8, etc)

Properties

buffer: () => string | Uint8Array<ArrayBufferLike>
bytes: any
data: null | Uint8Array<ArrayBufferLike>
dictionary: () => any
encoding: null | string
find: (ch: number) => null | number
integer: () => number
list: () => any
next: () => any
position: number