1 | <?php |
||
10 | abstract class AbstractUint extends AbstractType implements UintInterface |
||
11 | { |
||
12 | /** |
||
13 | * @param int $byteOrder |
||
14 | */ |
||
15 | 90 | public function __construct(int $byteOrder = ByteOrder::BE) |
|
19 | |||
20 | /** |
||
21 | * @param int|string $integer - decimal integer |
||
22 | * @return string |
||
23 | */ |
||
24 | 100 | public function writeBits($integer): string |
|
33 | |||
34 | /** |
||
35 | * @param Parser $parser |
||
36 | * @return int|string |
||
37 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
38 | * @throws \Exception |
||
39 | */ |
||
40 | 102 | public function readBits(Parser $parser) |
|
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | * @see \BitWasp\Buffertools\Types\TypeInterface::write() |
||
62 | */ |
||
63 | 100 | public function write($integer): string |
|
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | * @see \BitWasp\Buffertools\Types\TypeInterface::read() |
||
87 | */ |
||
88 | 102 | public function read(Parser $binary) |
|
92 | } |
||
93 |