blob: 37205bcdb2a685433d116786ce0f24f705d0f75f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
declare(strict_types=1);
namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Modules;
use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr;
abstract readonly class DataMode
{
final public static function Passive(): DataModes\Passive
{
return new DataModes\Passive();
}
/**
* @param list<Instr> $offset
*/
final public static function Active(
int $memory,
array $offset,
): DataModes\Active {
return new DataModes\Active($memory, $offset);
}
}
|