1 | <?php |
||
12 | class IpSerializer |
||
13 | { |
||
14 | /** |
||
15 | * @param Parser $parser |
||
16 | * @return Ipv4|Ipv6|Onion |
||
17 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
18 | * @throws \Exception |
||
19 | */ |
||
20 | public function fromParser(Parser $parser) |
||
43 | |||
44 | /** |
||
45 | * @param $data |
||
46 | * @return Ipv4|Ipv6|Onion |
||
47 | */ |
||
48 | public function parse($data) |
||
52 | |||
53 | /** |
||
54 | * @param IpInterface $address |
||
55 | * @return \BitWasp\Buffertools\Buffer |
||
56 | */ |
||
57 | public function serialize(IpInterface $address) |
||
61 | } |
||
62 |