Handbook
Glossary
bencode> ( bencode -- obj )
Vocabulary
bencode
Inputs
bencode
a
string
Outputs
obj
an
object
Word description
Decodes an object using the bencode algorithm.
Definition
IN:
bencode
GENERIC:
bencode>
( bencode -- obj )
Methods
USING:
bencode
byte-arrays
io.encodings.binary
io.streams.byte-array
;
M:
byte-array
bencode>
binary
[
read-bencode
]
with-byte-reader
;
USING:
bencode
io.streams.string
strings
;
M:
string
bencode>
[
read-bencode
]
with-string-reader
;