1 | <?php namespace Cornford\Bencoded; |
||
5 | class Bencoded implements BencodedInterface |
||
6 | { |
||
7 | /** |
||
8 | * BDecode content. |
||
9 | * |
||
10 | * @param string $content |
||
11 | * |
||
12 | * @throws Exceptions\InvalidBencodedDelimiterException |
||
13 | * |
||
14 | * @return mixed |
||
15 | */ |
||
16 | public function decode($content) |
||
20 | |||
21 | /** |
||
22 | * BEncode content. |
||
23 | * |
||
24 | * @param mixed $content |
||
25 | * |
||
26 | * @throws Exceptions\InvalidEncodeInputException |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | public function encode($content) |
||
34 | } |
||
35 |