Data types: bencoding Christoph Kappestein (contact me)
This class can be used to serialize and unserialize values in bencode format.
It can take a variable value and encode it as a string that describes its type and value in the bencode format. It supports encoding strings integers and arrays.
The class can also do the opposite, i.e. take a string in the bencode format and restore the original variable value.