• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// automatically generated by the FlatBuffers compiler, do not modify
2
3include "flatbuffers.lobster"
4
5namespace MyGame_Example
6
7enum +
8    Color_Red = 1,
9    Color_Green = 2,
10    Color_Blue = 8
11
12enum +
13    Any_NONE = 0,
14    Any_Monster = 1,
15    Any_TestSimpleTableWithEnum = 2,
16    Any_MyGame_Example2_Monster = 3
17
18enum +
19    AnyUniqueAliases_NONE = 0,
20    AnyUniqueAliases_M = 1,
21    AnyUniqueAliases_T = 2,
22    AnyUniqueAliases_M2 = 3
23
24enum +
25    AnyAmbiguousAliases_NONE = 0,
26    AnyAmbiguousAliases_M1 = 1,
27    AnyAmbiguousAliases_M2 = 2,
28    AnyAmbiguousAliases_M3 = 3
29
30namespace MyGame
31
32struct InParentNamespace
33
34namespace MyGame_Example2
35
36struct Monster
37
38namespace MyGame_Example
39
40struct Test
41
42struct TestSimpleTableWithEnum
43
44struct Vec3
45
46struct Ability
47
48struct Stat
49
50struct Referrable
51
52struct Monster
53
54struct TypeAliases
55
56namespace MyGame
57
58struct InParentNamespace : flatbuffers_handle
59
60def GetRootAsInParentNamespace(buf:string): InParentNamespace { buf, buf.flatbuffers_indirect(0) }
61
62def InParentNamespaceStart(b_:flatbuffers_builder):
63    b_.StartObject(0)
64def InParentNamespaceEnd(b_:flatbuffers_builder):
65    b_.EndObject()
66
67namespace MyGame_Example2
68
69struct Monster : flatbuffers_handle
70
71def GetRootAsMonster(buf:string): Monster { buf, buf.flatbuffers_indirect(0) }
72
73def MonsterStart(b_:flatbuffers_builder):
74    b_.StartObject(0)
75def MonsterEnd(b_:flatbuffers_builder):
76    b_.EndObject()
77
78namespace MyGame_Example
79
80struct Test : flatbuffers_handle
81    def a():
82        buf_.read_int16_le(pos_ + 0)
83    def b():
84        buf_.read_int8_le(pos_ + 2)
85
86def CreateTest(b_:flatbuffers_builder, a:int, b:int):
87    b_.Prep(2, 4)
88    b_.Pad(1)
89    b_.PrependInt8(b)
90    b_.PrependInt16(a)
91    return b_.Offset()
92
93struct TestSimpleTableWithEnum : flatbuffers_handle
94    def color():
95        buf_.flatbuffers_field_int8(pos_, 4, 2)
96
97def GetRootAsTestSimpleTableWithEnum(buf:string): TestSimpleTableWithEnum { buf, buf.flatbuffers_indirect(0) }
98
99def TestSimpleTableWithEnumStart(b_:flatbuffers_builder):
100    b_.StartObject(1)
101def TestSimpleTableWithEnumAddColor(b_:flatbuffers_builder, color:int):
102    b_.PrependInt8Slot(0, color, 2)
103def TestSimpleTableWithEnumEnd(b_:flatbuffers_builder):
104    b_.EndObject()
105
106struct Vec3 : flatbuffers_handle
107    def x():
108        buf_.read_float32_le(pos_ + 0)
109    def y():
110        buf_.read_float32_le(pos_ + 4)
111    def z():
112        buf_.read_float32_le(pos_ + 8)
113    def test1():
114        buf_.read_float64_le(pos_ + 16)
115    def test2():
116        buf_.read_int8_le(pos_ + 24)
117    def test3():
118        MyGame_Example_Test{ buf_, pos_ + 26 }
119
120def CreateVec3(b_:flatbuffers_builder, x:float, y:float, z:float, test1:float, test2:int, test3_a:int, test3_b:int):
121    b_.Prep(8, 32)
122    b_.Pad(2)
123    b_.Prep(2, 4)
124    b_.Pad(1)
125    b_.PrependInt8(test3_b)
126    b_.PrependInt16(test3_a)
127    b_.Pad(1)
128    b_.PrependInt8(test2)
129    b_.PrependFloat64(test1)
130    b_.Pad(4)
131    b_.PrependFloat32(z)
132    b_.PrependFloat32(y)
133    b_.PrependFloat32(x)
134    return b_.Offset()
135
136struct Ability : flatbuffers_handle
137    def id():
138        buf_.read_int32_le(pos_ + 0)
139    def distance():
140        buf_.read_int32_le(pos_ + 4)
141
142def CreateAbility(b_:flatbuffers_builder, id:int, distance:int):
143    b_.Prep(4, 8)
144    b_.PrependUint32(distance)
145    b_.PrependUint32(id)
146    return b_.Offset()
147
148struct Stat : flatbuffers_handle
149    def id():
150        buf_.flatbuffers_field_string(pos_, 4)
151    def val():
152        buf_.flatbuffers_field_int64(pos_, 6, 0)
153    def count():
154        buf_.flatbuffers_field_int16(pos_, 8, 0)
155
156def GetRootAsStat(buf:string): Stat { buf, buf.flatbuffers_indirect(0) }
157
158def StatStart(b_:flatbuffers_builder):
159    b_.StartObject(3)
160def StatAddId(b_:flatbuffers_builder, id:int):
161    b_.PrependUOffsetTRelativeSlot(0, id, 0)
162def StatAddVal(b_:flatbuffers_builder, val:int):
163    b_.PrependInt64Slot(1, val, 0)
164def StatAddCount(b_:flatbuffers_builder, count:int):
165    b_.PrependUint16Slot(2, count, 0)
166def StatEnd(b_:flatbuffers_builder):
167    b_.EndObject()
168
169struct Referrable : flatbuffers_handle
170    def id():
171        buf_.flatbuffers_field_int64(pos_, 4, 0)
172
173def GetRootAsReferrable(buf:string): Referrable { buf, buf.flatbuffers_indirect(0) }
174
175def ReferrableStart(b_:flatbuffers_builder):
176    b_.StartObject(1)
177def ReferrableAddId(b_:flatbuffers_builder, id:int):
178    b_.PrependUint64Slot(0, id, 0)
179def ReferrableEnd(b_:flatbuffers_builder):
180    b_.EndObject()
181
182/// an example documentation comment: monster object
183struct Monster : flatbuffers_handle
184    def pos():
185        o := buf_.flatbuffers_field_struct(pos_, 4)
186        if o: MyGame_Example_Vec3 { buf_, o } else: nil
187    def mana():
188        buf_.flatbuffers_field_int16(pos_, 6, 150)
189    def hp():
190        buf_.flatbuffers_field_int16(pos_, 8, 100)
191    def name():
192        buf_.flatbuffers_field_string(pos_, 10)
193    def inventory(i:int):
194        buf_.read_int8_le(buf_.flatbuffers_field_vector(pos_, 14) + i * 1)
195    def inventory_length():
196        buf_.flatbuffers_field_vector_len(pos_, 14)
197    def color():
198        buf_.flatbuffers_field_int8(pos_, 16, 8)
199    def test_type():
200        buf_.flatbuffers_field_int8(pos_, 18, 0)
201    def test_as_Monster():
202        MyGame_Example_Monster { buf_, buf_.flatbuffers_field_table(pos_, 20) }
203    def test_as_TestSimpleTableWithEnum():
204        MyGame_Example_TestSimpleTableWithEnum { buf_, buf_.flatbuffers_field_table(pos_, 20) }
205    def test_as_MyGame_Example2_Monster():
206        MyGame_Example2_Monster { buf_, buf_.flatbuffers_field_table(pos_, 20) }
207    def test4(i:int):
208        MyGame_Example_Test { buf_, buf_.flatbuffers_field_vector(pos_, 22) + i * 4 }
209    def test4_length():
210        buf_.flatbuffers_field_vector_len(pos_, 22)
211    def testarrayofstring(i:int):
212        buf_.flatbuffers_string(buf_.flatbuffers_field_vector(pos_, 24) + i * 4)
213    def testarrayofstring_length():
214        buf_.flatbuffers_field_vector_len(pos_, 24)
215    /// an example documentation comment: this will end up in the generated code
216    /// multiline too
217    def testarrayoftables(i:int):
218        MyGame_Example_Monster { buf_, buf_.flatbuffers_indirect(buf_.flatbuffers_field_vector(pos_, 26) + i * 4) }
219    def testarrayoftables_length():
220        buf_.flatbuffers_field_vector_len(pos_, 26)
221    def enemy():
222        o := buf_.flatbuffers_field_table(pos_, 28)
223        if o: MyGame_Example_Monster { buf_, o } else: nil
224    def testnestedflatbuffer(i:int):
225        buf_.read_int8_le(buf_.flatbuffers_field_vector(pos_, 30) + i * 1)
226    def testnestedflatbuffer_length():
227        buf_.flatbuffers_field_vector_len(pos_, 30)
228    def testempty():
229        o := buf_.flatbuffers_field_table(pos_, 32)
230        if o: MyGame_Example_Stat { buf_, o } else: nil
231    def testbool():
232        buf_.flatbuffers_field_int8(pos_, 34, 0)
233    def testhashs32_fnv1():
234        buf_.flatbuffers_field_int32(pos_, 36, 0)
235    def testhashu32_fnv1():
236        buf_.flatbuffers_field_int32(pos_, 38, 0)
237    def testhashs64_fnv1():
238        buf_.flatbuffers_field_int64(pos_, 40, 0)
239    def testhashu64_fnv1():
240        buf_.flatbuffers_field_int64(pos_, 42, 0)
241    def testhashs32_fnv1a():
242        buf_.flatbuffers_field_int32(pos_, 44, 0)
243    def testhashu32_fnv1a():
244        buf_.flatbuffers_field_int32(pos_, 46, 0)
245    def testhashs64_fnv1a():
246        buf_.flatbuffers_field_int64(pos_, 48, 0)
247    def testhashu64_fnv1a():
248        buf_.flatbuffers_field_int64(pos_, 50, 0)
249    def testarrayofbools(i:int):
250        buf_.read_int8_le(buf_.flatbuffers_field_vector(pos_, 52) + i * 1)
251    def testarrayofbools_length():
252        buf_.flatbuffers_field_vector_len(pos_, 52)
253    def testf():
254        buf_.flatbuffers_field_float32(pos_, 54, 3.14159)
255    def testf2():
256        buf_.flatbuffers_field_float32(pos_, 56, 3.0)
257    def testf3():
258        buf_.flatbuffers_field_float32(pos_, 58, 0.0)
259    def testarrayofstring2(i:int):
260        buf_.flatbuffers_string(buf_.flatbuffers_field_vector(pos_, 60) + i * 4)
261    def testarrayofstring2_length():
262        buf_.flatbuffers_field_vector_len(pos_, 60)
263    def testarrayofsortedstruct(i:int):
264        MyGame_Example_Ability { buf_, buf_.flatbuffers_field_vector(pos_, 62) + i * 8 }
265    def testarrayofsortedstruct_length():
266        buf_.flatbuffers_field_vector_len(pos_, 62)
267    def flex(i:int):
268        buf_.read_int8_le(buf_.flatbuffers_field_vector(pos_, 64) + i * 1)
269    def flex_length():
270        buf_.flatbuffers_field_vector_len(pos_, 64)
271    def test5(i:int):
272        MyGame_Example_Test { buf_, buf_.flatbuffers_field_vector(pos_, 66) + i * 4 }
273    def test5_length():
274        buf_.flatbuffers_field_vector_len(pos_, 66)
275    def vector_of_longs(i:int):
276        buf_.read_int64_le(buf_.flatbuffers_field_vector(pos_, 68) + i * 8)
277    def vector_of_longs_length():
278        buf_.flatbuffers_field_vector_len(pos_, 68)
279    def vector_of_doubles(i:int):
280        buf_.read_float64_le(buf_.flatbuffers_field_vector(pos_, 70) + i * 8)
281    def vector_of_doubles_length():
282        buf_.flatbuffers_field_vector_len(pos_, 70)
283    def parent_namespace_test():
284        o := buf_.flatbuffers_field_table(pos_, 72)
285        if o: MyGame_InParentNamespace { buf_, o } else: nil
286    def vector_of_referrables(i:int):
287        MyGame_Example_Referrable { buf_, buf_.flatbuffers_indirect(buf_.flatbuffers_field_vector(pos_, 74) + i * 4) }
288    def vector_of_referrables_length():
289        buf_.flatbuffers_field_vector_len(pos_, 74)
290    def single_weak_reference():
291        buf_.flatbuffers_field_int64(pos_, 76, 0)
292    def vector_of_weak_references(i:int):
293        buf_.read_int64_le(buf_.flatbuffers_field_vector(pos_, 78) + i * 8)
294    def vector_of_weak_references_length():
295        buf_.flatbuffers_field_vector_len(pos_, 78)
296    def vector_of_strong_referrables(i:int):
297        MyGame_Example_Referrable { buf_, buf_.flatbuffers_indirect(buf_.flatbuffers_field_vector(pos_, 80) + i * 4) }
298    def vector_of_strong_referrables_length():
299        buf_.flatbuffers_field_vector_len(pos_, 80)
300    def co_owning_reference():
301        buf_.flatbuffers_field_int64(pos_, 82, 0)
302    def vector_of_co_owning_references(i:int):
303        buf_.read_int64_le(buf_.flatbuffers_field_vector(pos_, 84) + i * 8)
304    def vector_of_co_owning_references_length():
305        buf_.flatbuffers_field_vector_len(pos_, 84)
306    def non_owning_reference():
307        buf_.flatbuffers_field_int64(pos_, 86, 0)
308    def vector_of_non_owning_references(i:int):
309        buf_.read_int64_le(buf_.flatbuffers_field_vector(pos_, 88) + i * 8)
310    def vector_of_non_owning_references_length():
311        buf_.flatbuffers_field_vector_len(pos_, 88)
312    def any_unique_type():
313        buf_.flatbuffers_field_int8(pos_, 90, 0)
314    def any_unique_as_M():
315        MyGame_Example_Monster { buf_, buf_.flatbuffers_field_table(pos_, 92) }
316    def any_unique_as_T():
317        MyGame_Example_TestSimpleTableWithEnum { buf_, buf_.flatbuffers_field_table(pos_, 92) }
318    def any_unique_as_M2():
319        MyGame_Example2_Monster { buf_, buf_.flatbuffers_field_table(pos_, 92) }
320    def any_ambiguous_type():
321        buf_.flatbuffers_field_int8(pos_, 94, 0)
322    def any_ambiguous_as_M1():
323        MyGame_Example_Monster { buf_, buf_.flatbuffers_field_table(pos_, 96) }
324    def any_ambiguous_as_M2():
325        MyGame_Example_Monster { buf_, buf_.flatbuffers_field_table(pos_, 96) }
326    def any_ambiguous_as_M3():
327        MyGame_Example_Monster { buf_, buf_.flatbuffers_field_table(pos_, 96) }
328    def vector_of_enums(i:int):
329        buf_.read_int8_le(buf_.flatbuffers_field_vector(pos_, 98) + i * 1)
330    def vector_of_enums_length():
331        buf_.flatbuffers_field_vector_len(pos_, 98)
332
333def GetRootAsMonster(buf:string): Monster { buf, buf.flatbuffers_indirect(0) }
334
335def MonsterStart(b_:flatbuffers_builder):
336    b_.StartObject(48)
337def MonsterAddPos(b_:flatbuffers_builder, pos:int):
338    b_.PrependStructSlot(0, pos, 0)
339def MonsterAddMana(b_:flatbuffers_builder, mana:int):
340    b_.PrependInt16Slot(1, mana, 150)
341def MonsterAddHp(b_:flatbuffers_builder, hp:int):
342    b_.PrependInt16Slot(2, hp, 100)
343def MonsterAddName(b_:flatbuffers_builder, name:int):
344    b_.PrependUOffsetTRelativeSlot(3, name, 0)
345def MonsterAddInventory(b_:flatbuffers_builder, inventory:int):
346    b_.PrependUOffsetTRelativeSlot(5, inventory, 0)
347def MonsterStartInventoryVector(b_:flatbuffers_builder, n_:int):
348    b_.StartVector(1, n_, 1)
349def MonsterCreateInventoryVector(b_:flatbuffers_builder, v_:[int]):
350    b_.StartVector(1, v_.length, 1)
351    reverse(v_) e_: b_.PrependUint8(e_)
352    b_.EndVector(v_.length)
353def MonsterAddColor(b_:flatbuffers_builder, color:int):
354    b_.PrependInt8Slot(6, color, 8)
355def MonsterAddTestType(b_:flatbuffers_builder, test_type:int):
356    b_.PrependUint8Slot(7, test_type, 0)
357def MonsterAddTest(b_:flatbuffers_builder, test:int):
358    b_.PrependUOffsetTRelativeSlot(8, test, 0)
359def MonsterAddTest4(b_:flatbuffers_builder, test4:int):
360    b_.PrependUOffsetTRelativeSlot(9, test4, 0)
361def MonsterStartTest4Vector(b_:flatbuffers_builder, n_:int):
362    b_.StartVector(4, n_, 2)
363def MonsterAddTestarrayofstring(b_:flatbuffers_builder, testarrayofstring:int):
364    b_.PrependUOffsetTRelativeSlot(10, testarrayofstring, 0)
365def MonsterStartTestarrayofstringVector(b_:flatbuffers_builder, n_:int):
366    b_.StartVector(4, n_, 4)
367def MonsterCreateTestarrayofstringVector(b_:flatbuffers_builder, v_:[int]):
368    b_.StartVector(4, v_.length, 4)
369    reverse(v_) e_: b_.PrependUOffsetTRelative(e_)
370    b_.EndVector(v_.length)
371def MonsterAddTestarrayoftables(b_:flatbuffers_builder, testarrayoftables:int):
372    b_.PrependUOffsetTRelativeSlot(11, testarrayoftables, 0)
373def MonsterStartTestarrayoftablesVector(b_:flatbuffers_builder, n_:int):
374    b_.StartVector(4, n_, 4)
375def MonsterCreateTestarrayoftablesVector(b_:flatbuffers_builder, v_:[int]):
376    b_.StartVector(4, v_.length, 4)
377    reverse(v_) e_: b_.PrependUOffsetTRelative(e_)
378    b_.EndVector(v_.length)
379def MonsterAddEnemy(b_:flatbuffers_builder, enemy:int):
380    b_.PrependUOffsetTRelativeSlot(12, enemy, 0)
381def MonsterAddTestnestedflatbuffer(b_:flatbuffers_builder, testnestedflatbuffer:int):
382    b_.PrependUOffsetTRelativeSlot(13, testnestedflatbuffer, 0)
383def MonsterStartTestnestedflatbufferVector(b_:flatbuffers_builder, n_:int):
384    b_.StartVector(1, n_, 1)
385def MonsterCreateTestnestedflatbufferVector(b_:flatbuffers_builder, v_:[int]):
386    b_.StartVector(1, v_.length, 1)
387    reverse(v_) e_: b_.PrependUint8(e_)
388    b_.EndVector(v_.length)
389def MonsterAddTestempty(b_:flatbuffers_builder, testempty:int):
390    b_.PrependUOffsetTRelativeSlot(14, testempty, 0)
391def MonsterAddTestbool(b_:flatbuffers_builder, testbool:int):
392    b_.PrependBoolSlot(15, testbool, 0)
393def MonsterAddTesthashs32Fnv1(b_:flatbuffers_builder, testhashs32_fnv1:int):
394    b_.PrependInt32Slot(16, testhashs32_fnv1, 0)
395def MonsterAddTesthashu32Fnv1(b_:flatbuffers_builder, testhashu32_fnv1:int):
396    b_.PrependUint32Slot(17, testhashu32_fnv1, 0)
397def MonsterAddTesthashs64Fnv1(b_:flatbuffers_builder, testhashs64_fnv1:int):
398    b_.PrependInt64Slot(18, testhashs64_fnv1, 0)
399def MonsterAddTesthashu64Fnv1(b_:flatbuffers_builder, testhashu64_fnv1:int):
400    b_.PrependUint64Slot(19, testhashu64_fnv1, 0)
401def MonsterAddTesthashs32Fnv1a(b_:flatbuffers_builder, testhashs32_fnv1a:int):
402    b_.PrependInt32Slot(20, testhashs32_fnv1a, 0)
403def MonsterAddTesthashu32Fnv1a(b_:flatbuffers_builder, testhashu32_fnv1a:int):
404    b_.PrependUint32Slot(21, testhashu32_fnv1a, 0)
405def MonsterAddTesthashs64Fnv1a(b_:flatbuffers_builder, testhashs64_fnv1a:int):
406    b_.PrependInt64Slot(22, testhashs64_fnv1a, 0)
407def MonsterAddTesthashu64Fnv1a(b_:flatbuffers_builder, testhashu64_fnv1a:int):
408    b_.PrependUint64Slot(23, testhashu64_fnv1a, 0)
409def MonsterAddTestarrayofbools(b_:flatbuffers_builder, testarrayofbools:int):
410    b_.PrependUOffsetTRelativeSlot(24, testarrayofbools, 0)
411def MonsterStartTestarrayofboolsVector(b_:flatbuffers_builder, n_:int):
412    b_.StartVector(1, n_, 1)
413def MonsterCreateTestarrayofboolsVector(b_:flatbuffers_builder, v_:[int]):
414    b_.StartVector(1, v_.length, 1)
415    reverse(v_) e_: b_.PrependBool(e_)
416    b_.EndVector(v_.length)
417def MonsterAddTestf(b_:flatbuffers_builder, testf:float):
418    b_.PrependFloat32Slot(25, testf, 3.14159)
419def MonsterAddTestf2(b_:flatbuffers_builder, testf2:float):
420    b_.PrependFloat32Slot(26, testf2, 3.0)
421def MonsterAddTestf3(b_:flatbuffers_builder, testf3:float):
422    b_.PrependFloat32Slot(27, testf3, 0.0)
423def MonsterAddTestarrayofstring2(b_:flatbuffers_builder, testarrayofstring2:int):
424    b_.PrependUOffsetTRelativeSlot(28, testarrayofstring2, 0)
425def MonsterStartTestarrayofstring2Vector(b_:flatbuffers_builder, n_:int):
426    b_.StartVector(4, n_, 4)
427def MonsterCreateTestarrayofstring2Vector(b_:flatbuffers_builder, v_:[int]):
428    b_.StartVector(4, v_.length, 4)
429    reverse(v_) e_: b_.PrependUOffsetTRelative(e_)
430    b_.EndVector(v_.length)
431def MonsterAddTestarrayofsortedstruct(b_:flatbuffers_builder, testarrayofsortedstruct:int):
432    b_.PrependUOffsetTRelativeSlot(29, testarrayofsortedstruct, 0)
433def MonsterStartTestarrayofsortedstructVector(b_:flatbuffers_builder, n_:int):
434    b_.StartVector(8, n_, 4)
435def MonsterAddFlex(b_:flatbuffers_builder, flex:int):
436    b_.PrependUOffsetTRelativeSlot(30, flex, 0)
437def MonsterStartFlexVector(b_:flatbuffers_builder, n_:int):
438    b_.StartVector(1, n_, 1)
439def MonsterCreateFlexVector(b_:flatbuffers_builder, v_:[int]):
440    b_.StartVector(1, v_.length, 1)
441    reverse(v_) e_: b_.PrependUint8(e_)
442    b_.EndVector(v_.length)
443def MonsterAddTest5(b_:flatbuffers_builder, test5:int):
444    b_.PrependUOffsetTRelativeSlot(31, test5, 0)
445def MonsterStartTest5Vector(b_:flatbuffers_builder, n_:int):
446    b_.StartVector(4, n_, 2)
447def MonsterAddVectorOfLongs(b_:flatbuffers_builder, vector_of_longs:int):
448    b_.PrependUOffsetTRelativeSlot(32, vector_of_longs, 0)
449def MonsterStartVectorOfLongsVector(b_:flatbuffers_builder, n_:int):
450    b_.StartVector(8, n_, 8)
451def MonsterCreateVectorOfLongsVector(b_:flatbuffers_builder, v_:[int]):
452    b_.StartVector(8, v_.length, 8)
453    reverse(v_) e_: b_.PrependInt64(e_)
454    b_.EndVector(v_.length)
455def MonsterAddVectorOfDoubles(b_:flatbuffers_builder, vector_of_doubles:int):
456    b_.PrependUOffsetTRelativeSlot(33, vector_of_doubles, 0)
457def MonsterStartVectorOfDoublesVector(b_:flatbuffers_builder, n_:int):
458    b_.StartVector(8, n_, 8)
459def MonsterCreateVectorOfDoublesVector(b_:flatbuffers_builder, v_:[float]):
460    b_.StartVector(8, v_.length, 8)
461    reverse(v_) e_: b_.PrependFloat64(e_)
462    b_.EndVector(v_.length)
463def MonsterAddParentNamespaceTest(b_:flatbuffers_builder, parent_namespace_test:int):
464    b_.PrependUOffsetTRelativeSlot(34, parent_namespace_test, 0)
465def MonsterAddVectorOfReferrables(b_:flatbuffers_builder, vector_of_referrables:int):
466    b_.PrependUOffsetTRelativeSlot(35, vector_of_referrables, 0)
467def MonsterStartVectorOfReferrablesVector(b_:flatbuffers_builder, n_:int):
468    b_.StartVector(4, n_, 4)
469def MonsterCreateVectorOfReferrablesVector(b_:flatbuffers_builder, v_:[int]):
470    b_.StartVector(4, v_.length, 4)
471    reverse(v_) e_: b_.PrependUOffsetTRelative(e_)
472    b_.EndVector(v_.length)
473def MonsterAddSingleWeakReference(b_:flatbuffers_builder, single_weak_reference:int):
474    b_.PrependUint64Slot(36, single_weak_reference, 0)
475def MonsterAddVectorOfWeakReferences(b_:flatbuffers_builder, vector_of_weak_references:int):
476    b_.PrependUOffsetTRelativeSlot(37, vector_of_weak_references, 0)
477def MonsterStartVectorOfWeakReferencesVector(b_:flatbuffers_builder, n_:int):
478    b_.StartVector(8, n_, 8)
479def MonsterCreateVectorOfWeakReferencesVector(b_:flatbuffers_builder, v_:[int]):
480    b_.StartVector(8, v_.length, 8)
481    reverse(v_) e_: b_.PrependUint64(e_)
482    b_.EndVector(v_.length)
483def MonsterAddVectorOfStrongReferrables(b_:flatbuffers_builder, vector_of_strong_referrables:int):
484    b_.PrependUOffsetTRelativeSlot(38, vector_of_strong_referrables, 0)
485def MonsterStartVectorOfStrongReferrablesVector(b_:flatbuffers_builder, n_:int):
486    b_.StartVector(4, n_, 4)
487def MonsterCreateVectorOfStrongReferrablesVector(b_:flatbuffers_builder, v_:[int]):
488    b_.StartVector(4, v_.length, 4)
489    reverse(v_) e_: b_.PrependUOffsetTRelative(e_)
490    b_.EndVector(v_.length)
491def MonsterAddCoOwningReference(b_:flatbuffers_builder, co_owning_reference:int):
492    b_.PrependUint64Slot(39, co_owning_reference, 0)
493def MonsterAddVectorOfCoOwningReferences(b_:flatbuffers_builder, vector_of_co_owning_references:int):
494    b_.PrependUOffsetTRelativeSlot(40, vector_of_co_owning_references, 0)
495def MonsterStartVectorOfCoOwningReferencesVector(b_:flatbuffers_builder, n_:int):
496    b_.StartVector(8, n_, 8)
497def MonsterCreateVectorOfCoOwningReferencesVector(b_:flatbuffers_builder, v_:[int]):
498    b_.StartVector(8, v_.length, 8)
499    reverse(v_) e_: b_.PrependUint64(e_)
500    b_.EndVector(v_.length)
501def MonsterAddNonOwningReference(b_:flatbuffers_builder, non_owning_reference:int):
502    b_.PrependUint64Slot(41, non_owning_reference, 0)
503def MonsterAddVectorOfNonOwningReferences(b_:flatbuffers_builder, vector_of_non_owning_references:int):
504    b_.PrependUOffsetTRelativeSlot(42, vector_of_non_owning_references, 0)
505def MonsterStartVectorOfNonOwningReferencesVector(b_:flatbuffers_builder, n_:int):
506    b_.StartVector(8, n_, 8)
507def MonsterCreateVectorOfNonOwningReferencesVector(b_:flatbuffers_builder, v_:[int]):
508    b_.StartVector(8, v_.length, 8)
509    reverse(v_) e_: b_.PrependUint64(e_)
510    b_.EndVector(v_.length)
511def MonsterAddAnyUniqueType(b_:flatbuffers_builder, any_unique_type:int):
512    b_.PrependUint8Slot(43, any_unique_type, 0)
513def MonsterAddAnyUnique(b_:flatbuffers_builder, any_unique:int):
514    b_.PrependUOffsetTRelativeSlot(44, any_unique, 0)
515def MonsterAddAnyAmbiguousType(b_:flatbuffers_builder, any_ambiguous_type:int):
516    b_.PrependUint8Slot(45, any_ambiguous_type, 0)
517def MonsterAddAnyAmbiguous(b_:flatbuffers_builder, any_ambiguous:int):
518    b_.PrependUOffsetTRelativeSlot(46, any_ambiguous, 0)
519def MonsterAddVectorOfEnums(b_:flatbuffers_builder, vector_of_enums:int):
520    b_.PrependUOffsetTRelativeSlot(47, vector_of_enums, 0)
521def MonsterStartVectorOfEnumsVector(b_:flatbuffers_builder, n_:int):
522    b_.StartVector(1, n_, 1)
523def MonsterCreateVectorOfEnumsVector(b_:flatbuffers_builder, v_:[int]):
524    b_.StartVector(1, v_.length, 1)
525    reverse(v_) e_: b_.PrependInt8(e_)
526    b_.EndVector(v_.length)
527def MonsterEnd(b_:flatbuffers_builder):
528    b_.EndObject()
529
530struct TypeAliases : flatbuffers_handle
531    def i8():
532        buf_.flatbuffers_field_int8(pos_, 4, 0)
533    def u8():
534        buf_.flatbuffers_field_int8(pos_, 6, 0)
535    def i16():
536        buf_.flatbuffers_field_int16(pos_, 8, 0)
537    def u16():
538        buf_.flatbuffers_field_int16(pos_, 10, 0)
539    def i32():
540        buf_.flatbuffers_field_int32(pos_, 12, 0)
541    def u32():
542        buf_.flatbuffers_field_int32(pos_, 14, 0)
543    def i64():
544        buf_.flatbuffers_field_int64(pos_, 16, 0)
545    def u64():
546        buf_.flatbuffers_field_int64(pos_, 18, 0)
547    def f32():
548        buf_.flatbuffers_field_float32(pos_, 20, 0.0)
549    def f64():
550        buf_.flatbuffers_field_float64(pos_, 22, 0.0)
551    def v8(i:int):
552        buf_.read_int8_le(buf_.flatbuffers_field_vector(pos_, 24) + i * 1)
553    def v8_length():
554        buf_.flatbuffers_field_vector_len(pos_, 24)
555    def vf64(i:int):
556        buf_.read_float64_le(buf_.flatbuffers_field_vector(pos_, 26) + i * 8)
557    def vf64_length():
558        buf_.flatbuffers_field_vector_len(pos_, 26)
559
560def GetRootAsTypeAliases(buf:string): TypeAliases { buf, buf.flatbuffers_indirect(0) }
561
562def TypeAliasesStart(b_:flatbuffers_builder):
563    b_.StartObject(12)
564def TypeAliasesAddI8(b_:flatbuffers_builder, i8:int):
565    b_.PrependInt8Slot(0, i8, 0)
566def TypeAliasesAddU8(b_:flatbuffers_builder, u8:int):
567    b_.PrependUint8Slot(1, u8, 0)
568def TypeAliasesAddI16(b_:flatbuffers_builder, i16:int):
569    b_.PrependInt16Slot(2, i16, 0)
570def TypeAliasesAddU16(b_:flatbuffers_builder, u16:int):
571    b_.PrependUint16Slot(3, u16, 0)
572def TypeAliasesAddI32(b_:flatbuffers_builder, i32:int):
573    b_.PrependInt32Slot(4, i32, 0)
574def TypeAliasesAddU32(b_:flatbuffers_builder, u32:int):
575    b_.PrependUint32Slot(5, u32, 0)
576def TypeAliasesAddI64(b_:flatbuffers_builder, i64:int):
577    b_.PrependInt64Slot(6, i64, 0)
578def TypeAliasesAddU64(b_:flatbuffers_builder, u64:int):
579    b_.PrependUint64Slot(7, u64, 0)
580def TypeAliasesAddF32(b_:flatbuffers_builder, f32:float):
581    b_.PrependFloat32Slot(8, f32, 0.0)
582def TypeAliasesAddF64(b_:flatbuffers_builder, f64:float):
583    b_.PrependFloat64Slot(9, f64, 0.0)
584def TypeAliasesAddV8(b_:flatbuffers_builder, v8:int):
585    b_.PrependUOffsetTRelativeSlot(10, v8, 0)
586def TypeAliasesStartV8Vector(b_:flatbuffers_builder, n_:int):
587    b_.StartVector(1, n_, 1)
588def TypeAliasesCreateV8Vector(b_:flatbuffers_builder, v_:[int]):
589    b_.StartVector(1, v_.length, 1)
590    reverse(v_) e_: b_.PrependInt8(e_)
591    b_.EndVector(v_.length)
592def TypeAliasesAddVf64(b_:flatbuffers_builder, vf64:int):
593    b_.PrependUOffsetTRelativeSlot(11, vf64, 0)
594def TypeAliasesStartVf64Vector(b_:flatbuffers_builder, n_:int):
595    b_.StartVector(8, n_, 8)
596def TypeAliasesCreateVf64Vector(b_:flatbuffers_builder, v_:[float]):
597    b_.StartVector(8, v_.length, 8)
598    reverse(v_) e_: b_.PrependFloat64(e_)
599    b_.EndVector(v_.length)
600def TypeAliasesEnd(b_:flatbuffers_builder):
601    b_.EndObject()
602
603