function | source
(decode input &opt indicator)
Decode input
This function is possibly called by the list and dictionary decoding functions
and so can be passed an initial indicator
.
function | source
(encode output val)
Encode val
and write it to output
This function will throw an error if val
is not a valid value for bencoding.
function | source
(reader source)
Wrap source
in an IOReader
unless it is already wrapped
The IOReader prototype is a stream reading abstraction that allows objects
to respond to a :read
function call.
function | source
(writer dest)
Wrap dest
in an IOWriter
unless it is already wrapped
The IOWriter prototype is a stream writing abstraction that allows objects
to respond to a :write
function call.