Lines Matching full:builder
107 * @param flatbuffers.Builder builder
109 static startInParentNamespace(builder:flatbuffers.Builder) {
110 builder.startObject(0);
114 * @param flatbuffers.Builder builder
117 static endInParentNamespace(builder:flatbuffers.Builder):flatbuffers.Offset {
118 var offset = builder.endObject();
122 static createInParentNamespace(builder:flatbuffers.Builder):flatbuffers.Offset {
123 InParentNamespace.startInParentNamespace(builder);
124 return InParentNamespace.endInParentNamespace(builder);
167 * @param flatbuffers.Builder builder
169 static startMonster(builder:flatbuffers.Builder) {
170 builder.startObject(0);
174 * @param flatbuffers.Builder builder
177 static endMonster(builder:flatbuffers.Builder):flatbuffers.Offset {
178 var offset = builder.endObject();
182 static createMonster(builder:flatbuffers.Builder):flatbuffers.Offset {
183 Monster.startMonster(builder);
184 return Monster.endMonster(builder);
252 * @param flatbuffers.Builder builder
257 static createTest(builder:flatbuffers.Builder, a: number, b: number):flatbuffers.Offset {
258 builder.prep(2, 4);
259 builder.pad(1);
260 builder.writeInt8(b);
261 builder.writeInt16(a);
262 return builder.offset();
329 * @param flatbuffers.Builder builder
331 static startTestSimpleTableWithEnum(builder:flatbuffers.Builder) {
332 builder.startObject(1);
336 * @param flatbuffers.Builder builder
339 static addColor(builder:flatbuffers.Builder, color:MyGame.Example.Color) {
340 builder.addFieldInt8(0, color, MyGame.Example.Color.Green);
344 * @param flatbuffers.Builder builder
347 static endTestSimpleTableWithEnum(builder:flatbuffers.Builder):flatbuffers.Offset {
348 var offset = builder.endObject();
352 static createTestSimpleTableWithEnum(builder:flatbuffers.Builder, color:MyGame.Example.Color):flatb…
353 TestSimpleTableWithEnum.startTestSimpleTableWithEnum(builder);
354 TestSimpleTableWithEnum.addColor(builder, color);
355 return TestSimpleTableWithEnum.endTestSimpleTableWithEnum(builder);
497 * @param flatbuffers.Builder builder
507 static createVec3(builder:flatbuffers.Builder, x: number, y: number, z: number, test1: number, test…
508 builder.prep(8, 32);
509 builder.pad(2);
510 builder.prep(2, 4);
511 builder.pad(1);
512 builder.writeInt8(test3_b);
513 builder.writeInt16(test3_a);
514 builder.pad(1);
515 builder.writeInt8(test2);
516 builder.writeFloat64(test1);
517 builder.pad(4);
518 builder.writeFloat32(z);
519 builder.writeFloat32(y);
520 builder.writeFloat32(x);
521 return builder.offset();
590 * @param flatbuffers.Builder builder
595 static createAbility(builder:flatbuffers.Builder, id: number, distance: number):flatbuffers.Offset {
596 builder.prep(4, 8);
597 builder.writeInt32(distance);
598 builder.writeInt32(id);
599 return builder.offset();
700 * @param flatbuffers.Builder builder
702 static startStat(builder:flatbuffers.Builder) {
703 builder.startObject(3);
707 * @param flatbuffers.Builder builder
710 static addId(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset) {
711 builder.addFieldOffset(0, idOffset, 0);
715 * @param flatbuffers.Builder builder
718 static addVal(builder:flatbuffers.Builder, val:flatbuffers.Long) {
719 builder.addFieldInt64(1, val, builder.createLong(0, 0));
723 * @param flatbuffers.Builder builder
726 static addCount(builder:flatbuffers.Builder, count:number) {
727 builder.addFieldInt16(2, count, 0);
731 * @param flatbuffers.Builder builder
734 static endStat(builder:flatbuffers.Builder):flatbuffers.Offset {
735 var offset = builder.endObject();
739 static createStat(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset, val:flatbuffers.Long, c…
740 Stat.startStat(builder);
741 Stat.addId(builder, idOffset);
742 Stat.addVal(builder, val);
743 Stat.addCount(builder, count);
744 return Stat.endStat(builder);
810 * @param flatbuffers.Builder builder
812 static startReferrable(builder:flatbuffers.Builder) {
813 builder.startObject(1);
817 * @param flatbuffers.Builder builder
820 static addId(builder:flatbuffers.Builder, id:flatbuffers.Long) {
821 builder.addFieldInt64(0, id, builder.createLong(0, 0));
825 * @param flatbuffers.Builder builder
828 static endReferrable(builder:flatbuffers.Builder):flatbuffers.Offset {
829 var offset = builder.endObject();
833 static createReferrable(builder:flatbuffers.Builder, id:flatbuffers.Long):flatbuffers.Offset {
834 Referrable.startReferrable(builder);
835 Referrable.addId(builder, id);
836 return Referrable.endReferrable(builder);
1793 * @param flatbuffers.Builder builder
1795 static startMonster(builder:flatbuffers.Builder) {
1796 builder.startObject(49);
1800 * @param flatbuffers.Builder builder
1803 static addPos(builder:flatbuffers.Builder, posOffset:flatbuffers.Offset) {
1804 builder.addFieldStruct(0, posOffset, 0);
1808 * @param flatbuffers.Builder builder
1811 static addMana(builder:flatbuffers.Builder, mana:number) {
1812 builder.addFieldInt16(1, mana, 150);
1816 * @param flatbuffers.Builder builder
1819 static addHp(builder:flatbuffers.Builder, hp:number) {
1820 builder.addFieldInt16(2, hp, 100);
1824 * @param flatbuffers.Builder builder
1827 static addName(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset) {
1828 builder.addFieldOffset(3, nameOffset, 0);
1832 * @param flatbuffers.Builder builder
1835 static addInventory(builder:flatbuffers.Builder, inventoryOffset:flatbuffers.Offset) {
1836 builder.addFieldOffset(5, inventoryOffset, 0);
1840 * @param flatbuffers.Builder builder
1844 static createInventoryVector(builder:flatbuffers.Builder, data:number[] | Uint8Array):flatbuffers.O…
1845 builder.startVector(1, data.length, 1);
1847 builder.addInt8(data[i]);
1849 return builder.endVector();
1853 * @param flatbuffers.Builder builder
1856 static startInventoryVector(builder:flatbuffers.Builder, numElems:number) {
1857 builder.startVector(1, numElems, 1);
1861 * @param flatbuffers.Builder builder
1864 static addColor(builder:flatbuffers.Builder, color:MyGame.Example.Color) {
1865 builder.addFieldInt8(6, color, MyGame.Example.Color.Blue);
1869 * @param flatbuffers.Builder builder
1872 static addTestType(builder:flatbuffers.Builder, testType:MyGame.Example.Any) {
1873 builder.addFieldInt8(7, testType, MyGame.Example.Any.NONE);
1877 * @param flatbuffers.Builder builder
1880 static addTest(builder:flatbuffers.Builder, testOffset:flatbuffers.Offset) {
1881 builder.addFieldOffset(8, testOffset, 0);
1885 * @param flatbuffers.Builder builder
1888 static addTest4(builder:flatbuffers.Builder, test4Offset:flatbuffers.Offset) {
1889 builder.addFieldOffset(9, test4Offset, 0);
1893 * @param flatbuffers.Builder builder
1896 static startTest4Vector(builder:flatbuffers.Builder, numElems:number) {
1897 builder.startVector(4, numElems, 2);
1901 * @param flatbuffers.Builder builder
1904 static addTestarrayofstring(builder:flatbuffers.Builder, testarrayofstringOffset:flatbuffers.Offset…
1905 builder.addFieldOffset(10, testarrayofstringOffset, 0);
1909 * @param flatbuffers.Builder builder
1913 static createTestarrayofstringVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbu…
1914 builder.startVector(4, data.length, 4);
1916 builder.addOffset(data[i]);
1918 return builder.endVector();
1922 * @param flatbuffers.Builder builder
1925 static startTestarrayofstringVector(builder:flatbuffers.Builder, numElems:number) {
1926 builder.startVector(4, numElems, 4);
1930 * @param flatbuffers.Builder builder
1933 static addTestarrayoftables(builder:flatbuffers.Builder, testarrayoftablesOffset:flatbuffers.Offset…
1934 builder.addFieldOffset(11, testarrayoftablesOffset, 0);
1938 * @param flatbuffers.Builder builder
1942 static createTestarrayoftablesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbu…
1943 builder.startVector(4, data.length, 4);
1945 builder.addOffset(data[i]);
1947 return builder.endVector();
1951 * @param flatbuffers.Builder builder
1954 static startTestarrayoftablesVector(builder:flatbuffers.Builder, numElems:number) {
1955 builder.startVector(4, numElems, 4);
1959 * @param flatbuffers.Builder builder
1962 static addEnemy(builder:flatbuffers.Builder, enemyOffset:flatbuffers.Offset) {
1963 builder.addFieldOffset(12, enemyOffset, 0);
1967 * @param flatbuffers.Builder builder
1970 static addTestnestedflatbuffer(builder:flatbuffers.Builder, testnestedflatbufferOffset:flatbuffers.…
1971 builder.addFieldOffset(13, testnestedflatbufferOffset, 0);
1975 * @param flatbuffers.Builder builder
1979 static createTestnestedflatbufferVector(builder:flatbuffers.Builder, data:number[] | Uint8Array):fl…
1980 builder.startVector(1, data.length, 1);
1982 builder.addInt8(data[i]);
1984 return builder.endVector();
1988 * @param flatbuffers.Builder builder
1991 static startTestnestedflatbufferVector(builder:flatbuffers.Builder, numElems:number) {
1992 builder.startVector(1, numElems, 1);
1996 * @param flatbuffers.Builder builder
1999 static addTestempty(builder:flatbuffers.Builder, testemptyOffset:flatbuffers.Offset) {
2000 builder.addFieldOffset(14, testemptyOffset, 0);
2004 * @param flatbuffers.Builder builder
2007 static addTestbool(builder:flatbuffers.Builder, testbool:boolean) {
2008 builder.addFieldInt8(15, +testbool, +false);
2012 * @param flatbuffers.Builder builder
2015 static addTesthashs32Fnv1(builder:flatbuffers.Builder, testhashs32Fnv1:number) {
2016 builder.addFieldInt32(16, testhashs32Fnv1, 0);
2020 * @param flatbuffers.Builder builder
2023 static addTesthashu32Fnv1(builder:flatbuffers.Builder, testhashu32Fnv1:number) {
2024 builder.addFieldInt32(17, testhashu32Fnv1, 0);
2028 * @param flatbuffers.Builder builder
2031 static addTesthashs64Fnv1(builder:flatbuffers.Builder, testhashs64Fnv1:flatbuffers.Long) {
2032 builder.addFieldInt64(18, testhashs64Fnv1, builder.createLong(0, 0));
2036 * @param flatbuffers.Builder builder
2039 static addTesthashu64Fnv1(builder:flatbuffers.Builder, testhashu64Fnv1:flatbuffers.Long) {
2040 builder.addFieldInt64(19, testhashu64Fnv1, builder.createLong(0, 0));
2044 * @param flatbuffers.Builder builder
2047 static addTesthashs32Fnv1a(builder:flatbuffers.Builder, testhashs32Fnv1a:number) {
2048 builder.addFieldInt32(20, testhashs32Fnv1a, 0);
2052 * @param flatbuffers.Builder builder
2055 static addTesthashu32Fnv1a(builder:flatbuffers.Builder, testhashu32Fnv1a:number) {
2056 builder.addFieldInt32(21, testhashu32Fnv1a, 0);
2060 * @param flatbuffers.Builder builder
2063 static addTesthashs64Fnv1a(builder:flatbuffers.Builder, testhashs64Fnv1a:flatbuffers.Long) {
2064 builder.addFieldInt64(22, testhashs64Fnv1a, builder.createLong(0, 0));
2068 * @param flatbuffers.Builder builder
2071 static addTesthashu64Fnv1a(builder:flatbuffers.Builder, testhashu64Fnv1a:flatbuffers.Long) {
2072 builder.addFieldInt64(23, testhashu64Fnv1a, builder.createLong(0, 0));
2076 * @param flatbuffers.Builder builder
2079 static addTestarrayofbools(builder:flatbuffers.Builder, testarrayofboolsOffset:flatbuffers.Offset) {
2080 builder.addFieldOffset(24, testarrayofboolsOffset, 0);
2084 * @param flatbuffers.Builder builder
2088 static createTestarrayofboolsVector(builder:flatbuffers.Builder, data:boolean[]):flatbuffers.Offset…
2089 builder.startVector(1, data.length, 1);
2091 builder.addInt8(+data[i]);
2093 return builder.endVector();
2097 * @param flatbuffers.Builder builder
2100 static startTestarrayofboolsVector(builder:flatbuffers.Builder, numElems:number) {
2101 builder.startVector(1, numElems, 1);
2105 * @param flatbuffers.Builder builder
2108 static addTestf(builder:flatbuffers.Builder, testf:number) {
2109 builder.addFieldFloat32(25, testf, 3.14159);
2113 * @param flatbuffers.Builder builder
2116 static addTestf2(builder:flatbuffers.Builder, testf2:number) {
2117 builder.addFieldFloat32(26, testf2, 3.0);
2121 * @param flatbuffers.Builder builder
2124 static addTestf3(builder:flatbuffers.Builder, testf3:number) {
2125 builder.addFieldFloat32(27, testf3, 0.0);
2129 * @param flatbuffers.Builder builder
2132 static addTestarrayofstring2(builder:flatbuffers.Builder, testarrayofstring2Offset:flatbuffers.Offs…
2133 builder.addFieldOffset(28, testarrayofstring2Offset, 0);
2137 * @param flatbuffers.Builder builder
2141 static createTestarrayofstring2Vector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatb…
2142 builder.startVector(4, data.length, 4);
2144 builder.addOffset(data[i]);
2146 return builder.endVector();
2150 * @param flatbuffers.Builder builder
2153 static startTestarrayofstring2Vector(builder:flatbuffers.Builder, numElems:number) {
2154 builder.startVector(4, numElems, 4);
2158 * @param flatbuffers.Builder builder
2161 static addTestarrayofsortedstruct(builder:flatbuffers.Builder, testarrayofsortedstructOffset:flatbu…
2162 builder.addFieldOffset(29, testarrayofsortedstructOffset, 0);
2166 * @param flatbuffers.Builder builder
2169 static startTestarrayofsortedstructVector(builder:flatbuffers.Builder, numElems:number) {
2170 builder.startVector(8, numElems, 4);
2174 * @param flatbuffers.Builder builder
2177 static addFlex(builder:flatbuffers.Builder, flexOffset:flatbuffers.Offset) {
2178 builder.addFieldOffset(30, flexOffset, 0);
2182 * @param flatbuffers.Builder builder
2186 static createFlexVector(builder:flatbuffers.Builder, data:number[] | Uint8Array):flatbuffers.Offset…
2187 builder.startVector(1, data.length, 1);
2189 builder.addInt8(data[i]);
2191 return builder.endVector();
2195 * @param flatbuffers.Builder builder
2198 static startFlexVector(builder:flatbuffers.Builder, numElems:number) {
2199 builder.startVector(1, numElems, 1);
2203 * @param flatbuffers.Builder builder
2206 static addTest5(builder:flatbuffers.Builder, test5Offset:flatbuffers.Offset) {
2207 builder.addFieldOffset(31, test5Offset, 0);
2211 * @param flatbuffers.Builder builder
2214 static startTest5Vector(builder:flatbuffers.Builder, numElems:number) {
2215 builder.startVector(4, numElems, 2);
2219 * @param flatbuffers.Builder builder
2222 static addVectorOfLongs(builder:flatbuffers.Builder, vectorOfLongsOffset:flatbuffers.Offset) {
2223 builder.addFieldOffset(32, vectorOfLongsOffset, 0);
2227 * @param flatbuffers.Builder builder
2231 static createVectorOfLongsVector(builder:flatbuffers.Builder, data:flatbuffers.Long[]):flatbuffers.…
2232 builder.startVector(8, data.length, 8);
2234 builder.addInt64(data[i]);
2236 return builder.endVector();
2240 * @param flatbuffers.Builder builder
2243 static startVectorOfLongsVector(builder:flatbuffers.Builder, numElems:number) {
2244 builder.startVector(8, numElems, 8);
2248 * @param flatbuffers.Builder builder
2251 static addVectorOfDoubles(builder:flatbuffers.Builder, vectorOfDoublesOffset:flatbuffers.Offset) {
2252 builder.addFieldOffset(33, vectorOfDoublesOffset, 0);
2256 * @param flatbuffers.Builder builder
2260 static createVectorOfDoublesVector(builder:flatbuffers.Builder, data:number[] | Uint8Array):flatbuf…
2261 builder.startVector(8, data.length, 8);
2263 builder.addFloat64(data[i]);
2265 return builder.endVector();
2269 * @param flatbuffers.Builder builder
2272 static startVectorOfDoublesVector(builder:flatbuffers.Builder, numElems:number) {
2273 builder.startVector(8, numElems, 8);
2277 * @param flatbuffers.Builder builder
2280 static addParentNamespaceTest(builder:flatbuffers.Builder, parentNamespaceTestOffset:flatbuffers.Of…
2281 builder.addFieldOffset(34, parentNamespaceTestOffset, 0);
2285 * @param flatbuffers.Builder builder
2288 static addVectorOfReferrables(builder:flatbuffers.Builder, vectorOfReferrablesOffset:flatbuffers.Of…
2289 builder.addFieldOffset(35, vectorOfReferrablesOffset, 0);
2293 * @param flatbuffers.Builder builder
2297 static createVectorOfReferrablesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flat…
2298 builder.startVector(4, data.length, 4);
2300 builder.addOffset(data[i]);
2302 return builder.endVector();
2306 * @param flatbuffers.Builder builder
2309 static startVectorOfReferrablesVector(builder:flatbuffers.Builder, numElems:number) {
2310 builder.startVector(4, numElems, 4);
2314 * @param flatbuffers.Builder builder
2317 static addSingleWeakReference(builder:flatbuffers.Builder, singleWeakReference:flatbuffers.Long) {
2318 builder.addFieldInt64(36, singleWeakReference, builder.createLong(0, 0));
2322 * @param flatbuffers.Builder builder
2325 static addVectorOfWeakReferences(builder:flatbuffers.Builder, vectorOfWeakReferencesOffset:flatbuff…
2326 builder.addFieldOffset(37, vectorOfWeakReferencesOffset, 0);
2330 * @param flatbuffers.Builder builder
2334 static createVectorOfWeakReferencesVector(builder:flatbuffers.Builder, data:flatbuffers.Long[]):fla…
2335 builder.startVector(8, data.length, 8);
2337 builder.addInt64(data[i]);
2339 return builder.endVector();
2343 * @param flatbuffers.Builder builder
2346 static startVectorOfWeakReferencesVector(builder:flatbuffers.Builder, numElems:number) {
2347 builder.startVector(8, numElems, 8);
2351 * @param flatbuffers.Builder builder
2354 static addVectorOfStrongReferrables(builder:flatbuffers.Builder, vectorOfStrongReferrablesOffset:fl…
2355 builder.addFieldOffset(38, vectorOfStrongReferrablesOffset, 0);
2359 * @param flatbuffers.Builder builder
2363 static createVectorOfStrongReferrablesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]…
2364 builder.startVector(4, data.length, 4);
2366 builder.addOffset(data[i]);
2368 return builder.endVector();
2372 * @param flatbuffers.Builder builder
2375 static startVectorOfStrongReferrablesVector(builder:flatbuffers.Builder, numElems:number) {
2376 builder.startVector(4, numElems, 4);
2380 * @param flatbuffers.Builder builder
2383 static addCoOwningReference(builder:flatbuffers.Builder, coOwningReference:flatbuffers.Long) {
2384 builder.addFieldInt64(39, coOwningReference, builder.createLong(0, 0));
2388 * @param flatbuffers.Builder builder
2391 static addVectorOfCoOwningReferences(builder:flatbuffers.Builder, vectorOfCoOwningReferencesOffset:…
2392 builder.addFieldOffset(40, vectorOfCoOwningReferencesOffset, 0);
2396 * @param flatbuffers.Builder builder
2400 static createVectorOfCoOwningReferencesVector(builder:flatbuffers.Builder, data:flatbuffers.Long[])…
2401 builder.startVector(8, data.length, 8);
2403 builder.addInt64(data[i]);
2405 return builder.endVector();
2409 * @param flatbuffers.Builder builder
2412 static startVectorOfCoOwningReferencesVector(builder:flatbuffers.Builder, numElems:number) {
2413 builder.startVector(8, numElems, 8);
2417 * @param flatbuffers.Builder builder
2420 static addNonOwningReference(builder:flatbuffers.Builder, nonOwningReference:flatbuffers.Long) {
2421 builder.addFieldInt64(41, nonOwningReference, builder.createLong(0, 0));
2425 * @param flatbuffers.Builder builder
2428 static addVectorOfNonOwningReferences(builder:flatbuffers.Builder, vectorOfNonOwningReferencesOffse…
2429 builder.addFieldOffset(42, vectorOfNonOwningReferencesOffset, 0);
2433 * @param flatbuffers.Builder builder
2437 static createVectorOfNonOwningReferencesVector(builder:flatbuffers.Builder, data:flatbuffers.Long[]…
2438 builder.startVector(8, data.length, 8);
2440 builder.addInt64(data[i]);
2442 return builder.endVector();
2446 * @param flatbuffers.Builder builder
2449 static startVectorOfNonOwningReferencesVector(builder:flatbuffers.Builder, numElems:number) {
2450 builder.startVector(8, numElems, 8);
2454 * @param flatbuffers.Builder builder
2457 static addAnyUniqueType(builder:flatbuffers.Builder, anyUniqueType:MyGame.Example.AnyUniqueAliases)…
2458 builder.addFieldInt8(43, anyUniqueType, MyGame.Example.AnyUniqueAliases.NONE);
2462 * @param flatbuffers.Builder builder
2465 static addAnyUnique(builder:flatbuffers.Builder, anyUniqueOffset:flatbuffers.Offset) {
2466 builder.addFieldOffset(44, anyUniqueOffset, 0);
2470 * @param flatbuffers.Builder builder
2473 static addAnyAmbiguousType(builder:flatbuffers.Builder, anyAmbiguousType:MyGame.Example.AnyAmbiguou…
2474 builder.addFieldInt8(45, anyAmbiguousType, MyGame.Example.AnyAmbiguousAliases.NONE);
2478 * @param flatbuffers.Builder builder
2481 static addAnyAmbiguous(builder:flatbuffers.Builder, anyAmbiguousOffset:flatbuffers.Offset) {
2482 builder.addFieldOffset(46, anyAmbiguousOffset, 0);
2486 * @param flatbuffers.Builder builder
2489 static addVectorOfEnums(builder:flatbuffers.Builder, vectorOfEnumsOffset:flatbuffers.Offset) {
2490 builder.addFieldOffset(47, vectorOfEnumsOffset, 0);
2494 * @param flatbuffers.Builder builder
2498 static createVectorOfEnumsVector(builder:flatbuffers.Builder, data:MyGame.Example.Color[]):flatbuff…
2499 builder.startVector(1, data.length, 1);
2501 builder.addInt8(data[i]);
2503 return builder.endVector();
2507 * @param flatbuffers.Builder builder
2510 static startVectorOfEnumsVector(builder:flatbuffers.Builder, numElems:number) {
2511 builder.startVector(1, numElems, 1);
2515 * @param flatbuffers.Builder builder
2518 static addSignedEnum(builder:flatbuffers.Builder, signedEnum:MyGame.Example.Race) {
2519 builder.addFieldInt8(48, signedEnum, MyGame.Example.Race.None);
2523 * @param flatbuffers.Builder builder
2526 static endMonster(builder:flatbuffers.Builder):flatbuffers.Offset {
2527 var offset = builder.endObject();
2528 builder.requiredField(offset, 10); // name
2533 * @param flatbuffers.Builder builder
2536 static finishMonsterBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
2537 builder.finish(offset, 'MONS');
2541 * @param flatbuffers.Builder builder
2544 static finishSizePrefixedMonsterBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
2545 builder.finish(offset, 'MONS', true);
2548 static createMonster(builder:flatbuffers.Builder, posOffset:flatbuffers.Offset, mana:number, hp:num…
2549 Monster.startMonster(builder);
2550 Monster.addPos(builder, posOffset);
2551 Monster.addMana(builder, mana);
2552 Monster.addHp(builder, hp);
2553 Monster.addName(builder, nameOffset);
2554 Monster.addInventory(builder, inventoryOffset);
2555 Monster.addColor(builder, color);
2556 Monster.addTestType(builder, testType);
2557 Monster.addTest(builder, testOffset);
2558 Monster.addTest4(builder, test4Offset);
2559 Monster.addTestarrayofstring(builder, testarrayofstringOffset);
2560 Monster.addTestarrayoftables(builder, testarrayoftablesOffset);
2561 Monster.addEnemy(builder, enemyOffset);
2562 Monster.addTestnestedflatbuffer(builder, testnestedflatbufferOffset);
2563 Monster.addTestempty(builder, testemptyOffset);
2564 Monster.addTestbool(builder, testbool);
2565 Monster.addTesthashs32Fnv1(builder, testhashs32Fnv1);
2566 Monster.addTesthashu32Fnv1(builder, testhashu32Fnv1);
2567 Monster.addTesthashs64Fnv1(builder, testhashs64Fnv1);
2568 Monster.addTesthashu64Fnv1(builder, testhashu64Fnv1);
2569 Monster.addTesthashs32Fnv1a(builder, testhashs32Fnv1a);
2570 Monster.addTesthashu32Fnv1a(builder, testhashu32Fnv1a);
2571 Monster.addTesthashs64Fnv1a(builder, testhashs64Fnv1a);
2572 Monster.addTesthashu64Fnv1a(builder, testhashu64Fnv1a);
2573 Monster.addTestarrayofbools(builder, testarrayofboolsOffset);
2574 Monster.addTestf(builder, testf);
2575 Monster.addTestf2(builder, testf2);
2576 Monster.addTestf3(builder, testf3);
2577 Monster.addTestarrayofstring2(builder, testarrayofstring2Offset);
2578 Monster.addTestarrayofsortedstruct(builder, testarrayofsortedstructOffset);
2579 Monster.addFlex(builder, flexOffset);
2580 Monster.addTest5(builder, test5Offset);
2581 Monster.addVectorOfLongs(builder, vectorOfLongsOffset);
2582 Monster.addVectorOfDoubles(builder, vectorOfDoublesOffset);
2583 Monster.addParentNamespaceTest(builder, parentNamespaceTestOffset);
2584 Monster.addVectorOfReferrables(builder, vectorOfReferrablesOffset);
2585 Monster.addSingleWeakReference(builder, singleWeakReference);
2586 Monster.addVectorOfWeakReferences(builder, vectorOfWeakReferencesOffset);
2587 Monster.addVectorOfStrongReferrables(builder, vectorOfStrongReferrablesOffset);
2588 Monster.addCoOwningReference(builder, coOwningReference);
2589 Monster.addVectorOfCoOwningReferences(builder, vectorOfCoOwningReferencesOffset);
2590 Monster.addNonOwningReference(builder, nonOwningReference);
2591 Monster.addVectorOfNonOwningReferences(builder, vectorOfNonOwningReferencesOffset);
2592 Monster.addAnyUniqueType(builder, anyUniqueType);
2593 Monster.addAnyUnique(builder, anyUniqueOffset);
2594 Monster.addAnyAmbiguousType(builder, anyAmbiguousType);
2595 Monster.addAnyAmbiguous(builder, anyAmbiguousOffset);
2596 Monster.addVectorOfEnums(builder, vectorOfEnumsOffset);
2597 Monster.addSignedEnum(builder, signedEnum);
2598 return Monster.endMonster(builder);
2921 * @param flatbuffers.Builder builder
2923 static startTypeAliases(builder:flatbuffers.Builder) {
2924 builder.startObject(12);
2928 * @param flatbuffers.Builder builder
2931 static addI8(builder:flatbuffers.Builder, i8:number) {
2932 builder.addFieldInt8(0, i8, 0);
2936 * @param flatbuffers.Builder builder
2939 static addU8(builder:flatbuffers.Builder, u8:number) {
2940 builder.addFieldInt8(1, u8, 0);
2944 * @param flatbuffers.Builder builder
2947 static addI16(builder:flatbuffers.Builder, i16:number) {
2948 builder.addFieldInt16(2, i16, 0);
2952 * @param flatbuffers.Builder builder
2955 static addU16(builder:flatbuffers.Builder, u16:number) {
2956 builder.addFieldInt16(3, u16, 0);
2960 * @param flatbuffers.Builder builder
2963 static addI32(builder:flatbuffers.Builder, i32:number) {
2964 builder.addFieldInt32(4, i32, 0);
2968 * @param flatbuffers.Builder builder
2971 static addU32(builder:flatbuffers.Builder, u32:number) {
2972 builder.addFieldInt32(5, u32, 0);
2976 * @param flatbuffers.Builder builder
2979 static addI64(builder:flatbuffers.Builder, i64:flatbuffers.Long) {
2980 builder.addFieldInt64(6, i64, builder.createLong(0, 0));
2984 * @param flatbuffers.Builder builder
2987 static addU64(builder:flatbuffers.Builder, u64:flatbuffers.Long) {
2988 builder.addFieldInt64(7, u64, builder.createLong(0, 0));
2992 * @param flatbuffers.Builder builder
2995 static addF32(builder:flatbuffers.Builder, f32:number) {
2996 builder.addFieldFloat32(8, f32, 0.0);
3000 * @param flatbuffers.Builder builder
3003 static addF64(builder:flatbuffers.Builder, f64:number) {
3004 builder.addFieldFloat64(9, f64, 0.0);
3008 * @param flatbuffers.Builder builder
3011 static addV8(builder:flatbuffers.Builder, v8Offset:flatbuffers.Offset) {
3012 builder.addFieldOffset(10, v8Offset, 0);
3016 * @param flatbuffers.Builder builder
3020 static createV8Vector(builder:flatbuffers.Builder, data:number[] | Uint8Array):flatbuffers.Offset {
3021 builder.startVector(1, data.length, 1);
3023 builder.addInt8(data[i]);
3025 return builder.endVector();
3029 * @param flatbuffers.Builder builder
3032 static startV8Vector(builder:flatbuffers.Builder, numElems:number) {
3033 builder.startVector(1, numElems, 1);
3037 * @param flatbuffers.Builder builder
3040 static addVf64(builder:flatbuffers.Builder, vf64Offset:flatbuffers.Offset) {
3041 builder.addFieldOffset(11, vf64Offset, 0);
3045 * @param flatbuffers.Builder builder
3049 static createVf64Vector(builder:flatbuffers.Builder, data:number[] | Uint8Array):flatbuffers.Offset…
3050 builder.startVector(8, data.length, 8);
3052 builder.addFloat64(data[i]);
3054 return builder.endVector();
3058 * @param flatbuffers.Builder builder
3061 static startVf64Vector(builder:flatbuffers.Builder, numElems:number) {
3062 builder.startVector(8, numElems, 8);
3066 * @param flatbuffers.Builder builder
3069 static endTypeAliases(builder:flatbuffers.Builder):flatbuffers.Offset {
3070 var offset = builder.endObject();
3074 static createTypeAliases(builder:flatbuffers.Builder, i8:number, u8:number, i16:number, u16:number,…
3075 TypeAliases.startTypeAliases(builder);
3076 TypeAliases.addI8(builder, i8);
3077 TypeAliases.addU8(builder, u8);
3078 TypeAliases.addI16(builder, i16);
3079 TypeAliases.addU16(builder, u16);
3080 TypeAliases.addI32(builder, i32);
3081 TypeAliases.addU32(builder, u32);
3082 TypeAliases.addI64(builder, i64);
3083 TypeAliases.addU64(builder, u64);
3084 TypeAliases.addF32(builder, f32);
3085 TypeAliases.addF64(builder, f64);
3086 TypeAliases.addV8(builder, v8Offset);
3087 TypeAliases.addVf64(builder, vf64Offset);
3088 return TypeAliases.endTypeAliases(builder);