Lines Matching refs:x
9 $x = FFI::type("uint8_t");
10 var_dump($x->getKind() === $x::TYPE_UINT8);
11 var_dump($x->getSize());
12 var_dump($x->getAlignment());
14 $x = FFI::type("enum __attribute__((packed)) {a2, b2}");
15 var_dump($x->getKind() === $x::TYPE_ENUM);
16 var_dump($x->getEnumKind() === $x::TYPE_UINT8);
18 $x = FFI::type("char[5]");
19 var_dump($x->getKind() === $x::TYPE_ARRAY);
20 var_dump($x->getSize());
21 var_dump($x->getArrayElementType()->getKind() === $x::TYPE_CHAR);
22 var_dump($x->getArrayLength());
24 $x = FFI::type("void*");
25 var_dump($x->getKind() === $x::TYPE_POINTER);
26 var_dump($x->getPointerType()->getKind() === $x::TYPE_VOID);
28 $x = FFI::type("struct {double x; double y;}");
29 var_dump($x->getKind() === $x::TYPE_STRUCT);
30 var_dump(($x->getAttributes() & $x::ATTR_UNION) != 0);
31 var_dump($x->getStructFieldNames());
32 var_dump($x->getStructFieldOffset("x"));
33 var_dump($x->getStructFieldOffset("y"));
34 var_dump($x->getStructFieldType("x")->getKind() == $x::TYPE_DOUBLE);
35 var_dump($x->getStructFieldType("y")->getKind() == $x::TYPE_DOUBLE);
37 $x = FFI::type("union {double x; double y;}");
38 var_dump($x->getKind() === $x::TYPE_STRUCT);
39 var_dump(($x->getAttributes() & $x::ATTR_UNION) != 0);
40 var_dump($x->getStructFieldNames());
41 var_dump($x->getStructFieldOffset("x"));
42 var_dump($x->getStructFieldOffset("y"));
43 var_dump($x->getStructFieldType("x")->getKind() == $x::TYPE_DOUBLE);
44 var_dump($x->getStructFieldType("y")->getKind() == $x::TYPE_DOUBLE);
46 $x = FFI::type("void (*)(double,int32_t)");
47 var_dump($x->getKind() === $x::TYPE_POINTER);
48 var_dump($x->getPointerType()->getKind() === $x::TYPE_FUNC);
49 var_dump($x->getPointerType()->getFuncReturnType()->getKind() === $x::TYPE_VOID);
50 var_dump($x->getPointerType()->getFuncParameterCount());
51 var_dump($x->getPointerType()->getFuncParameterType(0)->getKind() === $x::TYPE_DOUBLE);
52 var_dump($x->getPointerType()->getFuncParameterType(1)->getKind() === $x::TYPE_SINT32);
79 string(1) "x"
93 string(1) "x"