1 | <?php |
||
13 | class TransactionOutputSerializer |
||
14 | { |
||
15 | /** |
||
16 | * @var \BitWasp\Buffertools\Types\Uint64 |
||
17 | */ |
||
18 | private $uint64le; |
||
19 | |||
20 | /** |
||
21 | * @var \BitWasp\Buffertools\Types\VarString |
||
22 | */ |
||
23 | private $varstring; |
||
24 | |||
25 | 1336 | public function __construct() |
|
30 | |||
31 | /** |
||
32 | * @param TransactionOutputInterface $output |
||
33 | * @return BufferInterface |
||
34 | */ |
||
35 | 1304 | public function serialize(TransactionOutputInterface $output) |
|
42 | |||
43 | /** |
||
44 | * @param Parser $parser |
||
45 | * @return TransactionOutput |
||
46 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
47 | */ |
||
48 | 66 | public function fromParser(Parser $parser) |
|
55 | |||
56 | /** |
||
57 | * @param string $string |
||
58 | * @return TransactionOutput |
||
59 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
60 | */ |
||
61 | 2 | public function parse($string) |
|
65 | } |
||
66 |