Lines Matching full:builder
687 * @param FlatBufferBuilder $builder
690 public static function startMonster(FlatBufferBuilder $builder) argument
692 $builder->StartObject(49);
696 * @param FlatBufferBuilder $builder
699 …public static function createMonster(FlatBufferBuilder $builder, $pos, $mana, $hp, $name, $invento… argument
701 $builder->startObject(49);
702 self::addPos($builder, $pos);
703 self::addMana($builder, $mana);
704 self::addHp($builder, $hp);
705 self::addName($builder, $name);
706 self::addInventory($builder, $inventory);
707 self::addColor($builder, $color);
708 self::addTestType($builder, $test_type);
709 self::addTest($builder, $test);
710 self::addTest4($builder, $test4);
711 self::addTestarrayofstring($builder, $testarrayofstring);
712 self::addTestarrayoftables($builder, $testarrayoftables);
713 self::addEnemy($builder, $enemy);
714 self::addTestnestedflatbuffer($builder, $testnestedflatbuffer);
715 self::addTestempty($builder, $testempty);
716 self::addTestbool($builder, $testbool);
717 self::addTesthashs32Fnv1($builder, $testhashs32_fnv1);
718 self::addTesthashu32Fnv1($builder, $testhashu32_fnv1);
719 self::addTesthashs64Fnv1($builder, $testhashs64_fnv1);
720 self::addTesthashu64Fnv1($builder, $testhashu64_fnv1);
721 self::addTesthashs32Fnv1a($builder, $testhashs32_fnv1a);
722 self::addTesthashu32Fnv1a($builder, $testhashu32_fnv1a);
723 self::addTesthashs64Fnv1a($builder, $testhashs64_fnv1a);
724 self::addTesthashu64Fnv1a($builder, $testhashu64_fnv1a);
725 self::addTestarrayofbools($builder, $testarrayofbools);
726 self::addTestf($builder, $testf);
727 self::addTestf2($builder, $testf2);
728 self::addTestf3($builder, $testf3);
729 self::addTestarrayofstring2($builder, $testarrayofstring2);
730 self::addTestarrayofsortedstruct($builder, $testarrayofsortedstruct);
731 self::addFlex($builder, $flex);
732 self::addTest5($builder, $test5);
733 self::addVectorOfLongs($builder, $vector_of_longs);
734 self::addVectorOfDoubles($builder, $vector_of_doubles);
735 self::addParentNamespaceTest($builder, $parent_namespace_test);
736 self::addVectorOfReferrables($builder, $vector_of_referrables);
737 self::addSingleWeakReference($builder, $single_weak_reference);
738 self::addVectorOfWeakReferences($builder, $vector_of_weak_references);
739 self::addVectorOfStrongReferrables($builder, $vector_of_strong_referrables);
740 self::addCoOwningReference($builder, $co_owning_reference);
741 self::addVectorOfCoOwningReferences($builder, $vector_of_co_owning_references);
742 self::addNonOwningReference($builder, $non_owning_reference);
743 self::addVectorOfNonOwningReferences($builder, $vector_of_non_owning_references);
744 self::addAnyUniqueType($builder, $any_unique_type);
745 self::addAnyUnique($builder, $any_unique);
746 self::addAnyAmbiguousType($builder, $any_ambiguous_type);
747 self::addAnyAmbiguous($builder, $any_ambiguous);
748 self::addVectorOfEnums($builder, $vector_of_enums);
749 self::addSignedEnum($builder, $signed_enum);
750 $o = $builder->endObject();
751 $builder->required($o, 10); // name
756 * @param FlatBufferBuilder $builder
760 public static function addPos(FlatBufferBuilder $builder, $pos) argument
762 $builder->addStructX(0, $pos, 0);
766 * @param FlatBufferBuilder $builder
770 public static function addMana(FlatBufferBuilder $builder, $mana) argument
772 $builder->addShortX(1, $mana, 150);
776 * @param FlatBufferBuilder $builder
780 public static function addHp(FlatBufferBuilder $builder, $hp) argument
782 $builder->addShortX(2, $hp, 100);
786 * @param FlatBufferBuilder $builder
790 public static function addName(FlatBufferBuilder $builder, $name) argument
792 $builder->addOffsetX(3, $name, 0);
796 * @param FlatBufferBuilder $builder
800 public static function addInventory(FlatBufferBuilder $builder, $inventory) argument
802 $builder->addOffsetX(5, $inventory, 0);
806 * @param FlatBufferBuilder $builder
810 public static function createInventoryVector(FlatBufferBuilder $builder, array $data) argument
812 $builder->startVector(1, count($data), 1);
814 $builder->putByte($data[$i]);
816 return $builder->endVector();
820 * @param FlatBufferBuilder $builder
824 public static function startInventoryVector(FlatBufferBuilder $builder, $numElems) argument
826 $builder->startVector(1, $numElems, 1);
830 * @param FlatBufferBuilder $builder
834 public static function addColor(FlatBufferBuilder $builder, $color) argument
836 $builder->addByteX(6, $color, 8);
840 * @param FlatBufferBuilder $builder
844 public static function addTestType(FlatBufferBuilder $builder, $testType) argument
846 $builder->addByteX(7, $testType, 0);
849 public static function addTest(FlatBufferBuilder $builder, $offset) argument
851 $builder->addOffsetX(8, $offset, 0);
855 * @param FlatBufferBuilder $builder
859 public static function addTest4(FlatBufferBuilder $builder, $test4) argument
861 $builder->addOffsetX(9, $test4, 0);
865 * @param FlatBufferBuilder $builder
869 public static function createTest4Vector(FlatBufferBuilder $builder, array $data) argument
871 $builder->startVector(4, count($data), 2);
873 $builder->putOffset($data[$i]);
875 return $builder->endVector();
879 * @param FlatBufferBuilder $builder
883 public static function startTest4Vector(FlatBufferBuilder $builder, $numElems) argument
885 $builder->startVector(4, $numElems, 2);
889 * @param FlatBufferBuilder $builder
893 public static function addTestarrayofstring(FlatBufferBuilder $builder, $testarrayofstring) argument
895 $builder->addOffsetX(10, $testarrayofstring, 0);
899 * @param FlatBufferBuilder $builder
903 public static function createTestarrayofstringVector(FlatBufferBuilder $builder, array $data) argument
905 $builder->startVector(4, count($data), 4);
907 $builder->putOffset($data[$i]);
909 return $builder->endVector();
913 * @param FlatBufferBuilder $builder
917 public static function startTestarrayofstringVector(FlatBufferBuilder $builder, $numElems) argument
919 $builder->startVector(4, $numElems, 4);
923 * @param FlatBufferBuilder $builder
927 public static function addTestarrayoftables(FlatBufferBuilder $builder, $testarrayoftables) argument
929 $builder->addOffsetX(11, $testarrayoftables, 0);
933 * @param FlatBufferBuilder $builder
937 public static function createTestarrayoftablesVector(FlatBufferBuilder $builder, array $data) argument
939 $builder->startVector(4, count($data), 4);
941 $builder->putOffset($data[$i]);
943 return $builder->endVector();
947 * @param FlatBufferBuilder $builder
951 public static function startTestarrayoftablesVector(FlatBufferBuilder $builder, $numElems) argument
953 $builder->startVector(4, $numElems, 4);
957 * @param FlatBufferBuilder $builder
961 public static function addEnemy(FlatBufferBuilder $builder, $enemy) argument
963 $builder->addOffsetX(12, $enemy, 0);
967 * @param FlatBufferBuilder $builder
971 … public static function addTestnestedflatbuffer(FlatBufferBuilder $builder, $testnestedflatbuffer) argument
973 $builder->addOffsetX(13, $testnestedflatbuffer, 0);
977 * @param FlatBufferBuilder $builder
981 public static function createTestnestedflatbufferVector(FlatBufferBuilder $builder, array $data) argument
983 $builder->startVector(1, count($data), 1);
985 $builder->putByte($data[$i]);
987 return $builder->endVector();
991 * @param FlatBufferBuilder $builder
995 public static function startTestnestedflatbufferVector(FlatBufferBuilder $builder, $numElems) argument
997 $builder->startVector(1, $numElems, 1);
1001 * @param FlatBufferBuilder $builder
1005 public static function addTestempty(FlatBufferBuilder $builder, $testempty) argument
1007 $builder->addOffsetX(14, $testempty, 0);
1011 * @param FlatBufferBuilder $builder
1015 public static function addTestbool(FlatBufferBuilder $builder, $testbool) argument
1017 $builder->addBoolX(15, $testbool, false);
1021 * @param FlatBufferBuilder $builder
1025 public static function addTesthashs32Fnv1(FlatBufferBuilder $builder, $testhashs32Fnv1) argument
1027 $builder->addIntX(16, $testhashs32Fnv1, 0);
1031 * @param FlatBufferBuilder $builder
1035 public static function addTesthashu32Fnv1(FlatBufferBuilder $builder, $testhashu32Fnv1) argument
1037 $builder->addUintX(17, $testhashu32Fnv1, 0);
1041 * @param FlatBufferBuilder $builder
1045 public static function addTesthashs64Fnv1(FlatBufferBuilder $builder, $testhashs64Fnv1) argument
1047 $builder->addLongX(18, $testhashs64Fnv1, 0);
1051 * @param FlatBufferBuilder $builder
1055 public static function addTesthashu64Fnv1(FlatBufferBuilder $builder, $testhashu64Fnv1) argument
1057 $builder->addUlongX(19, $testhashu64Fnv1, 0);
1061 * @param FlatBufferBuilder $builder
1065 public static function addTesthashs32Fnv1a(FlatBufferBuilder $builder, $testhashs32Fnv1a) argument
1067 $builder->addIntX(20, $testhashs32Fnv1a, 0);
1071 * @param FlatBufferBuilder $builder
1075 public static function addTesthashu32Fnv1a(FlatBufferBuilder $builder, $testhashu32Fnv1a) argument
1077 $builder->addUintX(21, $testhashu32Fnv1a, 0);
1081 * @param FlatBufferBuilder $builder
1085 public static function addTesthashs64Fnv1a(FlatBufferBuilder $builder, $testhashs64Fnv1a) argument
1087 $builder->addLongX(22, $testhashs64Fnv1a, 0);
1091 * @param FlatBufferBuilder $builder
1095 public static function addTesthashu64Fnv1a(FlatBufferBuilder $builder, $testhashu64Fnv1a) argument
1097 $builder->addUlongX(23, $testhashu64Fnv1a, 0);
1101 * @param FlatBufferBuilder $builder
1105 public static function addTestarrayofbools(FlatBufferBuilder $builder, $testarrayofbools) argument
1107 $builder->addOffsetX(24, $testarrayofbools, 0);
1111 * @param FlatBufferBuilder $builder
1115 public static function createTestarrayofboolsVector(FlatBufferBuilder $builder, array $data) argument
1117 $builder->startVector(1, count($data), 1);
1119 $builder->putBool($data[$i]);
1121 return $builder->endVector();
1125 * @param FlatBufferBuilder $builder
1129 public static function startTestarrayofboolsVector(FlatBufferBuilder $builder, $numElems) argument
1131 $builder->startVector(1, $numElems, 1);
1135 * @param FlatBufferBuilder $builder
1139 public static function addTestf(FlatBufferBuilder $builder, $testf) argument
1141 $builder->addFloatX(25, $testf, 3.14159);
1145 * @param FlatBufferBuilder $builder
1149 public static function addTestf2(FlatBufferBuilder $builder, $testf2) argument
1151 $builder->addFloatX(26, $testf2, 3.0);
1155 * @param FlatBufferBuilder $builder
1159 public static function addTestf3(FlatBufferBuilder $builder, $testf3) argument
1161 $builder->addFloatX(27, $testf3, 0.0);
1165 * @param FlatBufferBuilder $builder
1169 public static function addTestarrayofstring2(FlatBufferBuilder $builder, $testarrayofstring2) argument
1171 $builder->addOffsetX(28, $testarrayofstring2, 0);
1175 * @param FlatBufferBuilder $builder
1179 public static function createTestarrayofstring2Vector(FlatBufferBuilder $builder, array $data) argument
1181 $builder->startVector(4, count($data), 4);
1183 $builder->putOffset($data[$i]);
1185 return $builder->endVector();
1189 * @param FlatBufferBuilder $builder
1193 public static function startTestarrayofstring2Vector(FlatBufferBuilder $builder, $numElems) argument
1195 $builder->startVector(4, $numElems, 4);
1199 * @param FlatBufferBuilder $builder
1203 …public static function addTestarrayofsortedstruct(FlatBufferBuilder $builder, $testarrayofsortedst… argument
1205 $builder->addOffsetX(29, $testarrayofsortedstruct, 0);
1209 * @param FlatBufferBuilder $builder
1213 …public static function createTestarrayofsortedstructVector(FlatBufferBuilder $builder, array $data) argument
1215 $builder->startVector(8, count($data), 4);
1217 $builder->putOffset($data[$i]);
1219 return $builder->endVector();
1223 * @param FlatBufferBuilder $builder
1227 public static function startTestarrayofsortedstructVector(FlatBufferBuilder $builder, $numElems) argument
1229 $builder->startVector(8, $numElems, 4);
1233 * @param FlatBufferBuilder $builder
1237 public static function addFlex(FlatBufferBuilder $builder, $flex) argument
1239 $builder->addOffsetX(30, $flex, 0);
1243 * @param FlatBufferBuilder $builder
1247 public static function createFlexVector(FlatBufferBuilder $builder, array $data) argument
1249 $builder->startVector(1, count($data), 1);
1251 $builder->putByte($data[$i]);
1253 return $builder->endVector();
1257 * @param FlatBufferBuilder $builder
1261 public static function startFlexVector(FlatBufferBuilder $builder, $numElems) argument
1263 $builder->startVector(1, $numElems, 1);
1267 * @param FlatBufferBuilder $builder
1271 public static function addTest5(FlatBufferBuilder $builder, $test5) argument
1273 $builder->addOffsetX(31, $test5, 0);
1277 * @param FlatBufferBuilder $builder
1281 public static function createTest5Vector(FlatBufferBuilder $builder, array $data) argument
1283 $builder->startVector(4, count($data), 2);
1285 $builder->putOffset($data[$i]);
1287 return $builder->endVector();
1291 * @param FlatBufferBuilder $builder
1295 public static function startTest5Vector(FlatBufferBuilder $builder, $numElems) argument
1297 $builder->startVector(4, $numElems, 2);
1301 * @param FlatBufferBuilder $builder
1305 public static function addVectorOfLongs(FlatBufferBuilder $builder, $vectorOfLongs) argument
1307 $builder->addOffsetX(32, $vectorOfLongs, 0);
1311 * @param FlatBufferBuilder $builder
1315 public static function createVectorOfLongsVector(FlatBufferBuilder $builder, array $data) argument
1317 $builder->startVector(8, count($data), 8);
1319 $builder->putLong($data[$i]);
1321 return $builder->endVector();
1325 * @param FlatBufferBuilder $builder
1329 public static function startVectorOfLongsVector(FlatBufferBuilder $builder, $numElems) argument
1331 $builder->startVector(8, $numElems, 8);
1335 * @param FlatBufferBuilder $builder
1339 public static function addVectorOfDoubles(FlatBufferBuilder $builder, $vectorOfDoubles) argument
1341 $builder->addOffsetX(33, $vectorOfDoubles, 0);
1345 * @param FlatBufferBuilder $builder
1349 public static function createVectorOfDoublesVector(FlatBufferBuilder $builder, array $data) argument
1351 $builder->startVector(8, count($data), 8);
1353 $builder->putDouble($data[$i]);
1355 return $builder->endVector();
1359 * @param FlatBufferBuilder $builder
1363 public static function startVectorOfDoublesVector(FlatBufferBuilder $builder, $numElems) argument
1365 $builder->startVector(8, $numElems, 8);
1369 * @param FlatBufferBuilder $builder
1373 public static function addParentNamespaceTest(FlatBufferBuilder $builder, $parentNamespaceTest) argument
1375 $builder->addOffsetX(34, $parentNamespaceTest, 0);
1379 * @param FlatBufferBuilder $builder
1383 public static function addVectorOfReferrables(FlatBufferBuilder $builder, $vectorOfReferrables) argument
1385 $builder->addOffsetX(35, $vectorOfReferrables, 0);
1389 * @param FlatBufferBuilder $builder
1393 public static function createVectorOfReferrablesVector(FlatBufferBuilder $builder, array $data) argument
1395 $builder->startVector(4, count($data), 4);
1397 $builder->putOffset($data[$i]);
1399 return $builder->endVector();
1403 * @param FlatBufferBuilder $builder
1407 public static function startVectorOfReferrablesVector(FlatBufferBuilder $builder, $numElems) argument
1409 $builder->startVector(4, $numElems, 4);
1413 * @param FlatBufferBuilder $builder
1417 public static function addSingleWeakReference(FlatBufferBuilder $builder, $singleWeakReference) argument
1419 $builder->addUlongX(36, $singleWeakReference, 0);
1423 * @param FlatBufferBuilder $builder
1427 …public static function addVectorOfWeakReferences(FlatBufferBuilder $builder, $vectorOfWeakReferenc… argument
1429 $builder->addOffsetX(37, $vectorOfWeakReferences, 0);
1433 * @param FlatBufferBuilder $builder
1437 … public static function createVectorOfWeakReferencesVector(FlatBufferBuilder $builder, array $data) argument
1439 $builder->startVector(8, count($data), 8);
1441 $builder->putUlong($data[$i]);
1443 return $builder->endVector();
1447 * @param FlatBufferBuilder $builder
1451 public static function startVectorOfWeakReferencesVector(FlatBufferBuilder $builder, $numElems) argument
1453 $builder->startVector(8, $numElems, 8);
1457 * @param FlatBufferBuilder $builder
1461 …public static function addVectorOfStrongReferrables(FlatBufferBuilder $builder, $vectorOfStrongRef… argument
1463 $builder->addOffsetX(38, $vectorOfStrongReferrables, 0);
1467 * @param FlatBufferBuilder $builder
1471 …public static function createVectorOfStrongReferrablesVector(FlatBufferBuilder $builder, array $da… argument
1473 $builder->startVector(4, count($data), 4);
1475 $builder->putOffset($data[$i]);
1477 return $builder->endVector();
1481 * @param FlatBufferBuilder $builder
1485 … public static function startVectorOfStrongReferrablesVector(FlatBufferBuilder $builder, $numElems) argument
1487 $builder->startVector(4, $numElems, 4);
1491 * @param FlatBufferBuilder $builder
1495 public static function addCoOwningReference(FlatBufferBuilder $builder, $coOwningReference) argument
1497 $builder->addUlongX(39, $coOwningReference, 0);
1501 * @param FlatBufferBuilder $builder
1505 …public static function addVectorOfCoOwningReferences(FlatBufferBuilder $builder, $vectorOfCoOwning… argument
1507 $builder->addOffsetX(40, $vectorOfCoOwningReferences, 0);
1511 * @param FlatBufferBuilder $builder
1515 …public static function createVectorOfCoOwningReferencesVector(FlatBufferBuilder $builder, array $d… argument
1517 $builder->startVector(8, count($data), 8);
1519 $builder->putUlong($data[$i]);
1521 return $builder->endVector();
1525 * @param FlatBufferBuilder $builder
1529 …public static function startVectorOfCoOwningReferencesVector(FlatBufferBuilder $builder, $numElems) argument
1531 $builder->startVector(8, $numElems, 8);
1535 * @param FlatBufferBuilder $builder
1539 public static function addNonOwningReference(FlatBufferBuilder $builder, $nonOwningReference) argument
1541 $builder->addUlongX(41, $nonOwningReference, 0);
1545 * @param FlatBufferBuilder $builder
1549 …public static function addVectorOfNonOwningReferences(FlatBufferBuilder $builder, $vectorOfNonOwni… argument
1551 $builder->addOffsetX(42, $vectorOfNonOwningReferences, 0);
1555 * @param FlatBufferBuilder $builder
1559 …public static function createVectorOfNonOwningReferencesVector(FlatBufferBuilder $builder, array $… argument
1561 $builder->startVector(8, count($data), 8);
1563 $builder->putUlong($data[$i]);
1565 return $builder->endVector();
1569 * @param FlatBufferBuilder $builder
1573 …public static function startVectorOfNonOwningReferencesVector(FlatBufferBuilder $builder, $numElem… argument
1575 $builder->startVector(8, $numElems, 8);
1579 * @param FlatBufferBuilder $builder
1583 public static function addAnyUniqueType(FlatBufferBuilder $builder, $anyUniqueType) argument
1585 $builder->addByteX(43, $anyUniqueType, 0);
1588 public static function addAnyUnique(FlatBufferBuilder $builder, $offset) argument
1590 $builder->addOffsetX(44, $offset, 0);
1594 * @param FlatBufferBuilder $builder
1598 public static function addAnyAmbiguousType(FlatBufferBuilder $builder, $anyAmbiguousType) argument
1600 $builder->addByteX(45, $anyAmbiguousType, 0);
1603 public static function addAnyAmbiguous(FlatBufferBuilder $builder, $offset) argument
1605 $builder->addOffsetX(46, $offset, 0);
1609 * @param FlatBufferBuilder $builder
1613 public static function addVectorOfEnums(FlatBufferBuilder $builder, $vectorOfEnums) argument
1615 $builder->addOffsetX(47, $vectorOfEnums, 0);
1619 * @param FlatBufferBuilder $builder
1623 public static function createVectorOfEnumsVector(FlatBufferBuilder $builder, array $data) argument
1625 $builder->startVector(1, count($data), 1);
1627 $builder->putByte($data[$i]);
1629 return $builder->endVector();
1633 * @param FlatBufferBuilder $builder
1637 public static function startVectorOfEnumsVector(FlatBufferBuilder $builder, $numElems) argument
1639 $builder->startVector(1, $numElems, 1);
1643 * @param FlatBufferBuilder $builder
1647 public static function addSignedEnum(FlatBufferBuilder $builder, $signedEnum) argument
1649 $builder->addSbyteX(48, $signedEnum, -1);
1653 * @param FlatBufferBuilder $builder
1656 public static function endMonster(FlatBufferBuilder $builder) argument
1658 $o = $builder->endObject();
1659 $builder->required($o, 10); // name
1663 public static function finishMonsterBuffer(FlatBufferBuilder $builder, $offset) argument
1665 $builder->finish($offset, "MONS");