| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 23 | class Pointer |
||
| 24 | { |
||
| 25 | /** @param class-string<T> $type */ |
||
|
|
|||
| 26 | public function __construct( |
||
| 31 | } |
||
| 32 | |||
| 33 | public function indexedAt(int $n): Pointer |
||
| 34 | { |
||
| 35 | return new Pointer( |
||
| 36 | $this->type, |
||
| 37 | $this->address + $n * $this->size, |
||
| 38 | $this->size, |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getCTypeNameOfType(): string |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @template TType of \Reli\Lib\Process\Pointer\Dereferencable |
||
| 49 | * @param class-string<TType> $type |
||
| 50 | * @param CPointer $c_pointer |
||
| 51 | * @return Pointer<TType> |
||
| 52 | */ |
||
| 53 | public static function fromCData( |
||
| 64 | ); |
||
| 65 | } |
||
| 67 |