• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// automatically generated by the FlatBuffers compiler, do not modify
2
3/**
4 * Composite components of Monster color.
5 *
6 * @enum {number}
7 */
8export namespace MyGame.Example{
9export enum Color{
10  Red= 1,
11
12  /**
13   * \brief color Green
14   * Green is bit_flag with value (1u << 1)
15   */
16  Green= 2,
17
18  /**
19   * \brief color Blue (1u << 3)
20   */
21  Blue= 8
22}};
23
24/**
25 * @enum {number}
26 */
27export namespace MyGame.Example{
28export enum Race{
29  None= -1,
30  Human= 0,
31  Dwarf= 1,
32  Elf= 2
33}};
34
35/**
36 * @enum {number}
37 */
38export namespace MyGame.Example{
39export enum Any{
40  NONE= 0,
41  Monster= 1,
42  TestSimpleTableWithEnum= 2,
43  MyGame_Example2_Monster= 3
44}};
45
46/**
47 * @enum {number}
48 */
49export namespace MyGame.Example{
50export enum AnyUniqueAliases{
51  NONE= 0,
52  M= 1,
53  TS= 2,
54  M2= 3
55}};
56
57/**
58 * @enum {number}
59 */
60export namespace MyGame.Example{
61export enum AnyAmbiguousAliases{
62  NONE= 0,
63  M1= 1,
64  M2= 2,
65  M3= 3
66}};
67
68/**
69 * @constructor
70 */
71export namespace MyGame{
72export class InParentNamespace {
73  bb: flatbuffers.ByteBuffer|null = null;
74
75  bb_pos:number = 0;
76/**
77 * @param number i
78 * @param flatbuffers.ByteBuffer bb
79 * @returns InParentNamespace
80 */
81__init(i:number, bb:flatbuffers.ByteBuffer):InParentNamespace {
82  this.bb_pos = i;
83  this.bb = bb;
84  return this;
85};
86
87/**
88 * @param flatbuffers.ByteBuffer bb
89 * @param InParentNamespace= obj
90 * @returns InParentNamespace
91 */
92static getRootAsInParentNamespace(bb:flatbuffers.ByteBuffer, obj?:InParentNamespace):InParentNamespace {
93  return (obj || new InParentNamespace()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
94};
95
96/**
97 * @param flatbuffers.ByteBuffer bb
98 * @param InParentNamespace= obj
99 * @returns InParentNamespace
100 */
101static getSizePrefixedRootAsInParentNamespace(bb:flatbuffers.ByteBuffer, obj?:InParentNamespace):InParentNamespace {
102  bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
103  return (obj || new InParentNamespace()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
104};
105
106/**
107 * @param flatbuffers.Builder builder
108 */
109static startInParentNamespace(builder:flatbuffers.Builder) {
110  builder.startObject(0);
111};
112
113/**
114 * @param flatbuffers.Builder builder
115 * @returns flatbuffers.Offset
116 */
117static endInParentNamespace(builder:flatbuffers.Builder):flatbuffers.Offset {
118  var offset = builder.endObject();
119  return offset;
120};
121
122static createInParentNamespace(builder:flatbuffers.Builder):flatbuffers.Offset {
123  InParentNamespace.startInParentNamespace(builder);
124  return InParentNamespace.endInParentNamespace(builder);
125}
126}
127}
128/**
129 * @constructor
130 */
131export namespace MyGame.Example2{
132export class Monster {
133  bb: flatbuffers.ByteBuffer|null = null;
134
135  bb_pos:number = 0;
136/**
137 * @param number i
138 * @param flatbuffers.ByteBuffer bb
139 * @returns Monster
140 */
141__init(i:number, bb:flatbuffers.ByteBuffer):Monster {
142  this.bb_pos = i;
143  this.bb = bb;
144  return this;
145};
146
147/**
148 * @param flatbuffers.ByteBuffer bb
149 * @param Monster= obj
150 * @returns Monster
151 */
152static getRootAsMonster(bb:flatbuffers.ByteBuffer, obj?:Monster):Monster {
153  return (obj || new Monster()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
154};
155
156/**
157 * @param flatbuffers.ByteBuffer bb
158 * @param Monster= obj
159 * @returns Monster
160 */
161static getSizePrefixedRootAsMonster(bb:flatbuffers.ByteBuffer, obj?:Monster):Monster {
162  bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
163  return (obj || new Monster()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
164};
165
166/**
167 * @param flatbuffers.Builder builder
168 */
169static startMonster(builder:flatbuffers.Builder) {
170  builder.startObject(0);
171};
172
173/**
174 * @param flatbuffers.Builder builder
175 * @returns flatbuffers.Offset
176 */
177static endMonster(builder:flatbuffers.Builder):flatbuffers.Offset {
178  var offset = builder.endObject();
179  return offset;
180};
181
182static createMonster(builder:flatbuffers.Builder):flatbuffers.Offset {
183  Monster.startMonster(builder);
184  return Monster.endMonster(builder);
185}
186}
187}
188/**
189 * @constructor
190 */
191export namespace MyGame.Example{
192export class Test {
193  bb: flatbuffers.ByteBuffer|null = null;
194
195  bb_pos:number = 0;
196/**
197 * @param number i
198 * @param flatbuffers.ByteBuffer bb
199 * @returns Test
200 */
201__init(i:number, bb:flatbuffers.ByteBuffer):Test {
202  this.bb_pos = i;
203  this.bb = bb;
204  return this;
205};
206
207/**
208 * @returns number
209 */
210a():number {
211  return this.bb!.readInt16(this.bb_pos);
212};
213
214/**
215 * @param number value
216 * @returns boolean
217 */
218mutate_a(value:number):boolean {
219  var offset = this.bb!.__offset(this.bb_pos, 0);
220
221  if (offset === 0) {
222    return false;
223  }
224
225  this.bb!.writeInt16(this.bb_pos + offset, value);
226  return true;
227};
228
229/**
230 * @returns number
231 */
232b():number {
233  return this.bb!.readInt8(this.bb_pos + 2);
234};
235
236/**
237 * @param number value
238 * @returns boolean
239 */
240mutate_b(value:number):boolean {
241  var offset = this.bb!.__offset(this.bb_pos, 2);
242
243  if (offset === 0) {
244    return false;
245  }
246
247  this.bb!.writeInt8(this.bb_pos + offset, value);
248  return true;
249};
250
251/**
252 * @param flatbuffers.Builder builder
253 * @param number a
254 * @param number b
255 * @returns flatbuffers.Offset
256 */
257static 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();
263};
264
265}
266}
267/**
268 * @constructor
269 */
270export namespace MyGame.Example{
271export class TestSimpleTableWithEnum {
272  bb: flatbuffers.ByteBuffer|null = null;
273
274  bb_pos:number = 0;
275/**
276 * @param number i
277 * @param flatbuffers.ByteBuffer bb
278 * @returns TestSimpleTableWithEnum
279 */
280__init(i:number, bb:flatbuffers.ByteBuffer):TestSimpleTableWithEnum {
281  this.bb_pos = i;
282  this.bb = bb;
283  return this;
284};
285
286/**
287 * @param flatbuffers.ByteBuffer bb
288 * @param TestSimpleTableWithEnum= obj
289 * @returns TestSimpleTableWithEnum
290 */
291static getRootAsTestSimpleTableWithEnum(bb:flatbuffers.ByteBuffer, obj?:TestSimpleTableWithEnum):TestSimpleTableWithEnum {
292  return (obj || new TestSimpleTableWithEnum()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
293};
294
295/**
296 * @param flatbuffers.ByteBuffer bb
297 * @param TestSimpleTableWithEnum= obj
298 * @returns TestSimpleTableWithEnum
299 */
300static getSizePrefixedRootAsTestSimpleTableWithEnum(bb:flatbuffers.ByteBuffer, obj?:TestSimpleTableWithEnum):TestSimpleTableWithEnum {
301  bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
302  return (obj || new TestSimpleTableWithEnum()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
303};
304
305/**
306 * @returns MyGame.Example.Color
307 */
308color():MyGame.Example.Color {
309  var offset = this.bb!.__offset(this.bb_pos, 4);
310  return offset ? /**  */ (this.bb!.readUint8(this.bb_pos + offset)) : MyGame.Example.Color.Green;
311};
312
313/**
314 * @param MyGame.Example.Color value
315 * @returns boolean
316 */
317mutate_color(value:MyGame.Example.Color):boolean {
318  var offset = this.bb!.__offset(this.bb_pos, 4);
319
320  if (offset === 0) {
321    return false;
322  }
323
324  this.bb!.writeUint8(this.bb_pos + offset, value);
325  return true;
326};
327
328/**
329 * @param flatbuffers.Builder builder
330 */
331static startTestSimpleTableWithEnum(builder:flatbuffers.Builder) {
332  builder.startObject(1);
333};
334
335/**
336 * @param flatbuffers.Builder builder
337 * @param MyGame.Example.Color color
338 */
339static addColor(builder:flatbuffers.Builder, color:MyGame.Example.Color) {
340  builder.addFieldInt8(0, color, MyGame.Example.Color.Green);
341};
342
343/**
344 * @param flatbuffers.Builder builder
345 * @returns flatbuffers.Offset
346 */
347static endTestSimpleTableWithEnum(builder:flatbuffers.Builder):flatbuffers.Offset {
348  var offset = builder.endObject();
349  return offset;
350};
351
352static createTestSimpleTableWithEnum(builder:flatbuffers.Builder, color:MyGame.Example.Color):flatbuffers.Offset {
353  TestSimpleTableWithEnum.startTestSimpleTableWithEnum(builder);
354  TestSimpleTableWithEnum.addColor(builder, color);
355  return TestSimpleTableWithEnum.endTestSimpleTableWithEnum(builder);
356}
357}
358}
359/**
360 * @constructor
361 */
362export namespace MyGame.Example{
363export class Vec3 {
364  bb: flatbuffers.ByteBuffer|null = null;
365
366  bb_pos:number = 0;
367/**
368 * @param number i
369 * @param flatbuffers.ByteBuffer bb
370 * @returns Vec3
371 */
372__init(i:number, bb:flatbuffers.ByteBuffer):Vec3 {
373  this.bb_pos = i;
374  this.bb = bb;
375  return this;
376};
377
378/**
379 * @returns number
380 */
381x():number {
382  return this.bb!.readFloat32(this.bb_pos);
383};
384
385/**
386 * @param number value
387 * @returns boolean
388 */
389mutate_x(value:number):boolean {
390  var offset = this.bb!.__offset(this.bb_pos, 0);
391
392  if (offset === 0) {
393    return false;
394  }
395
396  this.bb!.writeFloat32(this.bb_pos + offset, value);
397  return true;
398};
399
400/**
401 * @returns number
402 */
403y():number {
404  return this.bb!.readFloat32(this.bb_pos + 4);
405};
406
407/**
408 * @param number value
409 * @returns boolean
410 */
411mutate_y(value:number):boolean {
412  var offset = this.bb!.__offset(this.bb_pos, 4);
413
414  if (offset === 0) {
415    return false;
416  }
417
418  this.bb!.writeFloat32(this.bb_pos + offset, value);
419  return true;
420};
421
422/**
423 * @returns number
424 */
425z():number {
426  return this.bb!.readFloat32(this.bb_pos + 8);
427};
428
429/**
430 * @param number value
431 * @returns boolean
432 */
433mutate_z(value:number):boolean {
434  var offset = this.bb!.__offset(this.bb_pos, 8);
435
436  if (offset === 0) {
437    return false;
438  }
439
440  this.bb!.writeFloat32(this.bb_pos + offset, value);
441  return true;
442};
443
444/**
445 * @returns number
446 */
447test1():number {
448  return this.bb!.readFloat64(this.bb_pos + 16);
449};
450
451/**
452 * @param number value
453 * @returns boolean
454 */
455mutate_test1(value:number):boolean {
456  var offset = this.bb!.__offset(this.bb_pos, 16);
457
458  if (offset === 0) {
459    return false;
460  }
461
462  this.bb!.writeFloat64(this.bb_pos + offset, value);
463  return true;
464};
465
466/**
467 * @returns MyGame.Example.Color
468 */
469test2():MyGame.Example.Color {
470  return /**  */ (this.bb!.readUint8(this.bb_pos + 24));
471};
472
473/**
474 * @param MyGame.Example.Color value
475 * @returns boolean
476 */
477mutate_test2(value:MyGame.Example.Color):boolean {
478  var offset = this.bb!.__offset(this.bb_pos, 24);
479
480  if (offset === 0) {
481    return false;
482  }
483
484  this.bb!.writeUint8(this.bb_pos + offset, value);
485  return true;
486};
487
488/**
489 * @param MyGame.Example.Test= obj
490 * @returns MyGame.Example.Test|null
491 */
492test3(obj?:MyGame.Example.Test):MyGame.Example.Test|null {
493  return (obj || new MyGame.Example.Test()).__init(this.bb_pos + 26, this.bb!);
494};
495
496/**
497 * @param flatbuffers.Builder builder
498 * @param number x
499 * @param number y
500 * @param number z
501 * @param number test1
502 * @param MyGame.Example.Color test2
503 * @param number test3_a
504 * @param number test3_b
505 * @returns flatbuffers.Offset
506 */
507static createVec3(builder:flatbuffers.Builder, x: number, y: number, z: number, test1: number, test2: MyGame.Example.Color, test3_a: number, test3_b: number):flatbuffers.Offset {
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();
522};
523
524}
525}
526/**
527 * @constructor
528 */
529export namespace MyGame.Example{
530export class Ability {
531  bb: flatbuffers.ByteBuffer|null = null;
532
533  bb_pos:number = 0;
534/**
535 * @param number i
536 * @param flatbuffers.ByteBuffer bb
537 * @returns Ability
538 */
539__init(i:number, bb:flatbuffers.ByteBuffer):Ability {
540  this.bb_pos = i;
541  this.bb = bb;
542  return this;
543};
544
545/**
546 * @returns number
547 */
548id():number {
549  return this.bb!.readUint32(this.bb_pos);
550};
551
552/**
553 * @param number value
554 * @returns boolean
555 */
556mutate_id(value:number):boolean {
557  var offset = this.bb!.__offset(this.bb_pos, 0);
558
559  if (offset === 0) {
560    return false;
561  }
562
563  this.bb!.writeUint32(this.bb_pos + offset, value);
564  return true;
565};
566
567/**
568 * @returns number
569 */
570distance():number {
571  return this.bb!.readUint32(this.bb_pos + 4);
572};
573
574/**
575 * @param number value
576 * @returns boolean
577 */
578mutate_distance(value:number):boolean {
579  var offset = this.bb!.__offset(this.bb_pos, 4);
580
581  if (offset === 0) {
582    return false;
583  }
584
585  this.bb!.writeUint32(this.bb_pos + offset, value);
586  return true;
587};
588
589/**
590 * @param flatbuffers.Builder builder
591 * @param number id
592 * @param number distance
593 * @returns flatbuffers.Offset
594 */
595static 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();
600};
601
602}
603}
604/**
605 * @constructor
606 */
607export namespace MyGame.Example{
608export class Stat {
609  bb: flatbuffers.ByteBuffer|null = null;
610
611  bb_pos:number = 0;
612/**
613 * @param number i
614 * @param flatbuffers.ByteBuffer bb
615 * @returns Stat
616 */
617__init(i:number, bb:flatbuffers.ByteBuffer):Stat {
618  this.bb_pos = i;
619  this.bb = bb;
620  return this;
621};
622
623/**
624 * @param flatbuffers.ByteBuffer bb
625 * @param Stat= obj
626 * @returns Stat
627 */
628static getRootAsStat(bb:flatbuffers.ByteBuffer, obj?:Stat):Stat {
629  return (obj || new Stat()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
630};
631
632/**
633 * @param flatbuffers.ByteBuffer bb
634 * @param Stat= obj
635 * @returns Stat
636 */
637static getSizePrefixedRootAsStat(bb:flatbuffers.ByteBuffer, obj?:Stat):Stat {
638  bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
639  return (obj || new Stat()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
640};
641
642/**
643 * @param flatbuffers.Encoding= optionalEncoding
644 * @returns string|Uint8Array|null
645 */
646id():string|null
647id(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
648id(optionalEncoding?:any):string|Uint8Array|null {
649  var offset = this.bb!.__offset(this.bb_pos, 4);
650  return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
651};
652
653/**
654 * @returns flatbuffers.Long
655 */
656val():flatbuffers.Long {
657  var offset = this.bb!.__offset(this.bb_pos, 6);
658  return offset ? this.bb!.readInt64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
659};
660
661/**
662 * @param flatbuffers.Long value
663 * @returns boolean
664 */
665mutate_val(value:flatbuffers.Long):boolean {
666  var offset = this.bb!.__offset(this.bb_pos, 6);
667
668  if (offset === 0) {
669    return false;
670  }
671
672  this.bb!.writeInt64(this.bb_pos + offset, value);
673  return true;
674};
675
676/**
677 * @returns number
678 */
679count():number {
680  var offset = this.bb!.__offset(this.bb_pos, 8);
681  return offset ? this.bb!.readUint16(this.bb_pos + offset) : 0;
682};
683
684/**
685 * @param number value
686 * @returns boolean
687 */
688mutate_count(value:number):boolean {
689  var offset = this.bb!.__offset(this.bb_pos, 8);
690
691  if (offset === 0) {
692    return false;
693  }
694
695  this.bb!.writeUint16(this.bb_pos + offset, value);
696  return true;
697};
698
699/**
700 * @param flatbuffers.Builder builder
701 */
702static startStat(builder:flatbuffers.Builder) {
703  builder.startObject(3);
704};
705
706/**
707 * @param flatbuffers.Builder builder
708 * @param flatbuffers.Offset idOffset
709 */
710static addId(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset) {
711  builder.addFieldOffset(0, idOffset, 0);
712};
713
714/**
715 * @param flatbuffers.Builder builder
716 * @param flatbuffers.Long val
717 */
718static addVal(builder:flatbuffers.Builder, val:flatbuffers.Long) {
719  builder.addFieldInt64(1, val, builder.createLong(0, 0));
720};
721
722/**
723 * @param flatbuffers.Builder builder
724 * @param number count
725 */
726static addCount(builder:flatbuffers.Builder, count:number) {
727  builder.addFieldInt16(2, count, 0);
728};
729
730/**
731 * @param flatbuffers.Builder builder
732 * @returns flatbuffers.Offset
733 */
734static endStat(builder:flatbuffers.Builder):flatbuffers.Offset {
735  var offset = builder.endObject();
736  return offset;
737};
738
739static createStat(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset, val:flatbuffers.Long, count:number):flatbuffers.Offset {
740  Stat.startStat(builder);
741  Stat.addId(builder, idOffset);
742  Stat.addVal(builder, val);
743  Stat.addCount(builder, count);
744  return Stat.endStat(builder);
745}
746}
747}
748/**
749 * @constructor
750 */
751export namespace MyGame.Example{
752export class Referrable {
753  bb: flatbuffers.ByteBuffer|null = null;
754
755  bb_pos:number = 0;
756/**
757 * @param number i
758 * @param flatbuffers.ByteBuffer bb
759 * @returns Referrable
760 */
761__init(i:number, bb:flatbuffers.ByteBuffer):Referrable {
762  this.bb_pos = i;
763  this.bb = bb;
764  return this;
765};
766
767/**
768 * @param flatbuffers.ByteBuffer bb
769 * @param Referrable= obj
770 * @returns Referrable
771 */
772static getRootAsReferrable(bb:flatbuffers.ByteBuffer, obj?:Referrable):Referrable {
773  return (obj || new Referrable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
774};
775
776/**
777 * @param flatbuffers.ByteBuffer bb
778 * @param Referrable= obj
779 * @returns Referrable
780 */
781static getSizePrefixedRootAsReferrable(bb:flatbuffers.ByteBuffer, obj?:Referrable):Referrable {
782  bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
783  return (obj || new Referrable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
784};
785
786/**
787 * @returns flatbuffers.Long
788 */
789id():flatbuffers.Long {
790  var offset = this.bb!.__offset(this.bb_pos, 4);
791  return offset ? this.bb!.readUint64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
792};
793
794/**
795 * @param flatbuffers.Long value
796 * @returns boolean
797 */
798mutate_id(value:flatbuffers.Long):boolean {
799  var offset = this.bb!.__offset(this.bb_pos, 4);
800
801  if (offset === 0) {
802    return false;
803  }
804
805  this.bb!.writeUint64(this.bb_pos + offset, value);
806  return true;
807};
808
809/**
810 * @param flatbuffers.Builder builder
811 */
812static startReferrable(builder:flatbuffers.Builder) {
813  builder.startObject(1);
814};
815
816/**
817 * @param flatbuffers.Builder builder
818 * @param flatbuffers.Long id
819 */
820static addId(builder:flatbuffers.Builder, id:flatbuffers.Long) {
821  builder.addFieldInt64(0, id, builder.createLong(0, 0));
822};
823
824/**
825 * @param flatbuffers.Builder builder
826 * @returns flatbuffers.Offset
827 */
828static endReferrable(builder:flatbuffers.Builder):flatbuffers.Offset {
829  var offset = builder.endObject();
830  return offset;
831};
832
833static createReferrable(builder:flatbuffers.Builder, id:flatbuffers.Long):flatbuffers.Offset {
834  Referrable.startReferrable(builder);
835  Referrable.addId(builder, id);
836  return Referrable.endReferrable(builder);
837}
838}
839}
840/**
841 * an example documentation comment: "monster object"
842 *
843 * @constructor
844 */
845export namespace MyGame.Example{
846export class Monster {
847  bb: flatbuffers.ByteBuffer|null = null;
848
849  bb_pos:number = 0;
850/**
851 * @param number i
852 * @param flatbuffers.ByteBuffer bb
853 * @returns Monster
854 */
855__init(i:number, bb:flatbuffers.ByteBuffer):Monster {
856  this.bb_pos = i;
857  this.bb = bb;
858  return this;
859};
860
861/**
862 * @param flatbuffers.ByteBuffer bb
863 * @param Monster= obj
864 * @returns Monster
865 */
866static getRootAsMonster(bb:flatbuffers.ByteBuffer, obj?:Monster):Monster {
867  return (obj || new Monster()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
868};
869
870/**
871 * @param flatbuffers.ByteBuffer bb
872 * @param Monster= obj
873 * @returns Monster
874 */
875static getSizePrefixedRootAsMonster(bb:flatbuffers.ByteBuffer, obj?:Monster):Monster {
876  bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
877  return (obj || new Monster()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
878};
879
880/**
881 * @param flatbuffers.ByteBuffer bb
882 * @returns boolean
883 */
884static bufferHasIdentifier(bb:flatbuffers.ByteBuffer):boolean {
885  return bb.__has_identifier('MONS');
886};
887
888/**
889 * @param MyGame.Example.Vec3= obj
890 * @returns MyGame.Example.Vec3|null
891 */
892pos(obj?:MyGame.Example.Vec3):MyGame.Example.Vec3|null {
893  var offset = this.bb!.__offset(this.bb_pos, 4);
894  return offset ? (obj || new MyGame.Example.Vec3()).__init(this.bb_pos + offset, this.bb!) : null;
895};
896
897/**
898 * @returns number
899 */
900mana():number {
901  var offset = this.bb!.__offset(this.bb_pos, 6);
902  return offset ? this.bb!.readInt16(this.bb_pos + offset) : 150;
903};
904
905/**
906 * @param number value
907 * @returns boolean
908 */
909mutate_mana(value:number):boolean {
910  var offset = this.bb!.__offset(this.bb_pos, 6);
911
912  if (offset === 0) {
913    return false;
914  }
915
916  this.bb!.writeInt16(this.bb_pos + offset, value);
917  return true;
918};
919
920/**
921 * @returns number
922 */
923hp():number {
924  var offset = this.bb!.__offset(this.bb_pos, 8);
925  return offset ? this.bb!.readInt16(this.bb_pos + offset) : 100;
926};
927
928/**
929 * @param number value
930 * @returns boolean
931 */
932mutate_hp(value:number):boolean {
933  var offset = this.bb!.__offset(this.bb_pos, 8);
934
935  if (offset === 0) {
936    return false;
937  }
938
939  this.bb!.writeInt16(this.bb_pos + offset, value);
940  return true;
941};
942
943/**
944 * @param flatbuffers.Encoding= optionalEncoding
945 * @returns string|Uint8Array|null
946 */
947name():string|null
948name(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
949name(optionalEncoding?:any):string|Uint8Array|null {
950  var offset = this.bb!.__offset(this.bb_pos, 10);
951  return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
952};
953
954/**
955 * @param number index
956 * @returns number
957 */
958inventory(index: number):number|null {
959  var offset = this.bb!.__offset(this.bb_pos, 14);
960  return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : 0;
961};
962
963/**
964 * @returns number
965 */
966inventoryLength():number {
967  var offset = this.bb!.__offset(this.bb_pos, 14);
968  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
969};
970
971/**
972 * @returns Uint8Array
973 */
974inventoryArray():Uint8Array|null {
975  var offset = this.bb!.__offset(this.bb_pos, 14);
976  return offset ? new Uint8Array(this.bb!.bytes().buffer, this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset), this.bb!.__vector_len(this.bb_pos + offset)) : null;
977};
978
979/**
980 * @returns MyGame.Example.Color
981 */
982color():MyGame.Example.Color {
983  var offset = this.bb!.__offset(this.bb_pos, 16);
984  return offset ? /**  */ (this.bb!.readUint8(this.bb_pos + offset)) : MyGame.Example.Color.Blue;
985};
986
987/**
988 * @param MyGame.Example.Color value
989 * @returns boolean
990 */
991mutate_color(value:MyGame.Example.Color):boolean {
992  var offset = this.bb!.__offset(this.bb_pos, 16);
993
994  if (offset === 0) {
995    return false;
996  }
997
998  this.bb!.writeUint8(this.bb_pos + offset, value);
999  return true;
1000};
1001
1002/**
1003 * @returns MyGame.Example.Any
1004 */
1005testType():MyGame.Example.Any {
1006  var offset = this.bb!.__offset(this.bb_pos, 18);
1007  return offset ? /**  */ (this.bb!.readUint8(this.bb_pos + offset)) : MyGame.Example.Any.NONE;
1008};
1009
1010/**
1011 * @param flatbuffers.Table obj
1012 * @returns ?flatbuffers.Table
1013 */
1014test<T extends flatbuffers.Table>(obj:T):T|null {
1015  var offset = this.bb!.__offset(this.bb_pos, 20);
1016  return offset ? this.bb!.__union(obj, this.bb_pos + offset) : null;
1017};
1018
1019/**
1020 * @param number index
1021 * @param MyGame.Example.Test= obj
1022 * @returns MyGame.Example.Test
1023 */
1024test4(index: number, obj?:MyGame.Example.Test):MyGame.Example.Test|null {
1025  var offset = this.bb!.__offset(this.bb_pos, 22);
1026  return offset ? (obj || new MyGame.Example.Test()).__init(this.bb!.__vector(this.bb_pos + offset) + index * 4, this.bb!) : null;
1027};
1028
1029/**
1030 * @returns number
1031 */
1032test4Length():number {
1033  var offset = this.bb!.__offset(this.bb_pos, 22);
1034  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1035};
1036
1037/**
1038 * @param number index
1039 * @param flatbuffers.Encoding= optionalEncoding
1040 * @returns string|Uint8Array
1041 */
1042testarrayofstring(index: number):string
1043testarrayofstring(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
1044testarrayofstring(index: number,optionalEncoding?:any):string|Uint8Array|null {
1045  var offset = this.bb!.__offset(this.bb_pos, 24);
1046  return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
1047};
1048
1049/**
1050 * @returns number
1051 */
1052testarrayofstringLength():number {
1053  var offset = this.bb!.__offset(this.bb_pos, 24);
1054  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1055};
1056
1057/**
1058 * an example documentation comment: this will end up in the generated code
1059 * multiline too
1060 *
1061 * @param number index
1062 * @param MyGame.Example.Monster= obj
1063 * @returns MyGame.Example.Monster
1064 */
1065testarrayoftables(index: number, obj?:MyGame.Example.Monster):MyGame.Example.Monster|null {
1066  var offset = this.bb!.__offset(this.bb_pos, 26);
1067  return offset ? (obj || new MyGame.Example.Monster()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
1068};
1069
1070/**
1071 * @returns number
1072 */
1073testarrayoftablesLength():number {
1074  var offset = this.bb!.__offset(this.bb_pos, 26);
1075  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1076};
1077
1078/**
1079 * @param MyGame.Example.Monster= obj
1080 * @returns MyGame.Example.Monster|null
1081 */
1082enemy(obj?:MyGame.Example.Monster):MyGame.Example.Monster|null {
1083  var offset = this.bb!.__offset(this.bb_pos, 28);
1084  return offset ? (obj || new MyGame.Example.Monster()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
1085};
1086
1087/**
1088 * @param number index
1089 * @returns number
1090 */
1091testnestedflatbuffer(index: number):number|null {
1092  var offset = this.bb!.__offset(this.bb_pos, 30);
1093  return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : 0;
1094};
1095
1096/**
1097 * @returns number
1098 */
1099testnestedflatbufferLength():number {
1100  var offset = this.bb!.__offset(this.bb_pos, 30);
1101  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1102};
1103
1104/**
1105 * @returns Uint8Array
1106 */
1107testnestedflatbufferArray():Uint8Array|null {
1108  var offset = this.bb!.__offset(this.bb_pos, 30);
1109  return offset ? new Uint8Array(this.bb!.bytes().buffer, this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset), this.bb!.__vector_len(this.bb_pos + offset)) : null;
1110};
1111
1112/**
1113 * @param MyGame.Example.Stat= obj
1114 * @returns MyGame.Example.Stat|null
1115 */
1116testempty(obj?:MyGame.Example.Stat):MyGame.Example.Stat|null {
1117  var offset = this.bb!.__offset(this.bb_pos, 32);
1118  return offset ? (obj || new MyGame.Example.Stat()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
1119};
1120
1121/**
1122 * @returns boolean
1123 */
1124testbool():boolean {
1125  var offset = this.bb!.__offset(this.bb_pos, 34);
1126  return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
1127};
1128
1129/**
1130 * @param boolean value
1131 * @returns boolean
1132 */
1133mutate_testbool(value:boolean):boolean {
1134  var offset = this.bb!.__offset(this.bb_pos, 34);
1135
1136  if (offset === 0) {
1137    return false;
1138  }
1139
1140  this.bb!.writeInt8(this.bb_pos + offset, +value);
1141  return true;
1142};
1143
1144/**
1145 * @returns number
1146 */
1147testhashs32Fnv1():number {
1148  var offset = this.bb!.__offset(this.bb_pos, 36);
1149  return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
1150};
1151
1152/**
1153 * @param number value
1154 * @returns boolean
1155 */
1156mutate_testhashs32_fnv1(value:number):boolean {
1157  var offset = this.bb!.__offset(this.bb_pos, 36);
1158
1159  if (offset === 0) {
1160    return false;
1161  }
1162
1163  this.bb!.writeInt32(this.bb_pos + offset, value);
1164  return true;
1165};
1166
1167/**
1168 * @returns number
1169 */
1170testhashu32Fnv1():number {
1171  var offset = this.bb!.__offset(this.bb_pos, 38);
1172  return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
1173};
1174
1175/**
1176 * @param number value
1177 * @returns boolean
1178 */
1179mutate_testhashu32_fnv1(value:number):boolean {
1180  var offset = this.bb!.__offset(this.bb_pos, 38);
1181
1182  if (offset === 0) {
1183    return false;
1184  }
1185
1186  this.bb!.writeUint32(this.bb_pos + offset, value);
1187  return true;
1188};
1189
1190/**
1191 * @returns flatbuffers.Long
1192 */
1193testhashs64Fnv1():flatbuffers.Long {
1194  var offset = this.bb!.__offset(this.bb_pos, 40);
1195  return offset ? this.bb!.readInt64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
1196};
1197
1198/**
1199 * @param flatbuffers.Long value
1200 * @returns boolean
1201 */
1202mutate_testhashs64_fnv1(value:flatbuffers.Long):boolean {
1203  var offset = this.bb!.__offset(this.bb_pos, 40);
1204
1205  if (offset === 0) {
1206    return false;
1207  }
1208
1209  this.bb!.writeInt64(this.bb_pos + offset, value);
1210  return true;
1211};
1212
1213/**
1214 * @returns flatbuffers.Long
1215 */
1216testhashu64Fnv1():flatbuffers.Long {
1217  var offset = this.bb!.__offset(this.bb_pos, 42);
1218  return offset ? this.bb!.readUint64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
1219};
1220
1221/**
1222 * @param flatbuffers.Long value
1223 * @returns boolean
1224 */
1225mutate_testhashu64_fnv1(value:flatbuffers.Long):boolean {
1226  var offset = this.bb!.__offset(this.bb_pos, 42);
1227
1228  if (offset === 0) {
1229    return false;
1230  }
1231
1232  this.bb!.writeUint64(this.bb_pos + offset, value);
1233  return true;
1234};
1235
1236/**
1237 * @returns number
1238 */
1239testhashs32Fnv1a():number {
1240  var offset = this.bb!.__offset(this.bb_pos, 44);
1241  return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
1242};
1243
1244/**
1245 * @param number value
1246 * @returns boolean
1247 */
1248mutate_testhashs32_fnv1a(value:number):boolean {
1249  var offset = this.bb!.__offset(this.bb_pos, 44);
1250
1251  if (offset === 0) {
1252    return false;
1253  }
1254
1255  this.bb!.writeInt32(this.bb_pos + offset, value);
1256  return true;
1257};
1258
1259/**
1260 * @returns number
1261 */
1262testhashu32Fnv1a():number {
1263  var offset = this.bb!.__offset(this.bb_pos, 46);
1264  return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
1265};
1266
1267/**
1268 * @param number value
1269 * @returns boolean
1270 */
1271mutate_testhashu32_fnv1a(value:number):boolean {
1272  var offset = this.bb!.__offset(this.bb_pos, 46);
1273
1274  if (offset === 0) {
1275    return false;
1276  }
1277
1278  this.bb!.writeUint32(this.bb_pos + offset, value);
1279  return true;
1280};
1281
1282/**
1283 * @returns flatbuffers.Long
1284 */
1285testhashs64Fnv1a():flatbuffers.Long {
1286  var offset = this.bb!.__offset(this.bb_pos, 48);
1287  return offset ? this.bb!.readInt64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
1288};
1289
1290/**
1291 * @param flatbuffers.Long value
1292 * @returns boolean
1293 */
1294mutate_testhashs64_fnv1a(value:flatbuffers.Long):boolean {
1295  var offset = this.bb!.__offset(this.bb_pos, 48);
1296
1297  if (offset === 0) {
1298    return false;
1299  }
1300
1301  this.bb!.writeInt64(this.bb_pos + offset, value);
1302  return true;
1303};
1304
1305/**
1306 * @returns flatbuffers.Long
1307 */
1308testhashu64Fnv1a():flatbuffers.Long {
1309  var offset = this.bb!.__offset(this.bb_pos, 50);
1310  return offset ? this.bb!.readUint64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
1311};
1312
1313/**
1314 * @param flatbuffers.Long value
1315 * @returns boolean
1316 */
1317mutate_testhashu64_fnv1a(value:flatbuffers.Long):boolean {
1318  var offset = this.bb!.__offset(this.bb_pos, 50);
1319
1320  if (offset === 0) {
1321    return false;
1322  }
1323
1324  this.bb!.writeUint64(this.bb_pos + offset, value);
1325  return true;
1326};
1327
1328/**
1329 * @param number index
1330 * @returns boolean
1331 */
1332testarrayofbools(index: number):boolean|null {
1333  var offset = this.bb!.__offset(this.bb_pos, 52);
1334  return offset ? !!this.bb!.readInt8(this.bb!.__vector(this.bb_pos + offset) + index) : false;
1335};
1336
1337/**
1338 * @returns number
1339 */
1340testarrayofboolsLength():number {
1341  var offset = this.bb!.__offset(this.bb_pos, 52);
1342  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1343};
1344
1345/**
1346 * @returns Int8Array
1347 */
1348testarrayofboolsArray():Int8Array|null {
1349  var offset = this.bb!.__offset(this.bb_pos, 52);
1350  return offset ? new Int8Array(this.bb!.bytes().buffer, this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset), this.bb!.__vector_len(this.bb_pos + offset)) : null;
1351};
1352
1353/**
1354 * @returns number
1355 */
1356testf():number {
1357  var offset = this.bb!.__offset(this.bb_pos, 54);
1358  return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 3.14159;
1359};
1360
1361/**
1362 * @param number value
1363 * @returns boolean
1364 */
1365mutate_testf(value:number):boolean {
1366  var offset = this.bb!.__offset(this.bb_pos, 54);
1367
1368  if (offset === 0) {
1369    return false;
1370  }
1371
1372  this.bb!.writeFloat32(this.bb_pos + offset, value);
1373  return true;
1374};
1375
1376/**
1377 * @returns number
1378 */
1379testf2():number {
1380  var offset = this.bb!.__offset(this.bb_pos, 56);
1381  return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 3.0;
1382};
1383
1384/**
1385 * @param number value
1386 * @returns boolean
1387 */
1388mutate_testf2(value:number):boolean {
1389  var offset = this.bb!.__offset(this.bb_pos, 56);
1390
1391  if (offset === 0) {
1392    return false;
1393  }
1394
1395  this.bb!.writeFloat32(this.bb_pos + offset, value);
1396  return true;
1397};
1398
1399/**
1400 * @returns number
1401 */
1402testf3():number {
1403  var offset = this.bb!.__offset(this.bb_pos, 58);
1404  return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 0.0;
1405};
1406
1407/**
1408 * @param number value
1409 * @returns boolean
1410 */
1411mutate_testf3(value:number):boolean {
1412  var offset = this.bb!.__offset(this.bb_pos, 58);
1413
1414  if (offset === 0) {
1415    return false;
1416  }
1417
1418  this.bb!.writeFloat32(this.bb_pos + offset, value);
1419  return true;
1420};
1421
1422/**
1423 * @param number index
1424 * @param flatbuffers.Encoding= optionalEncoding
1425 * @returns string|Uint8Array
1426 */
1427testarrayofstring2(index: number):string
1428testarrayofstring2(index: number,optionalEncoding:flatbuffers.Encoding):string|Uint8Array
1429testarrayofstring2(index: number,optionalEncoding?:any):string|Uint8Array|null {
1430  var offset = this.bb!.__offset(this.bb_pos, 60);
1431  return offset ? this.bb!.__string(this.bb!.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
1432};
1433
1434/**
1435 * @returns number
1436 */
1437testarrayofstring2Length():number {
1438  var offset = this.bb!.__offset(this.bb_pos, 60);
1439  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1440};
1441
1442/**
1443 * @param number index
1444 * @param MyGame.Example.Ability= obj
1445 * @returns MyGame.Example.Ability
1446 */
1447testarrayofsortedstruct(index: number, obj?:MyGame.Example.Ability):MyGame.Example.Ability|null {
1448  var offset = this.bb!.__offset(this.bb_pos, 62);
1449  return offset ? (obj || new MyGame.Example.Ability()).__init(this.bb!.__vector(this.bb_pos + offset) + index * 8, this.bb!) : null;
1450};
1451
1452/**
1453 * @returns number
1454 */
1455testarrayofsortedstructLength():number {
1456  var offset = this.bb!.__offset(this.bb_pos, 62);
1457  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1458};
1459
1460/**
1461 * @param number index
1462 * @returns number
1463 */
1464flex(index: number):number|null {
1465  var offset = this.bb!.__offset(this.bb_pos, 64);
1466  return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : 0;
1467};
1468
1469/**
1470 * @returns number
1471 */
1472flexLength():number {
1473  var offset = this.bb!.__offset(this.bb_pos, 64);
1474  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1475};
1476
1477/**
1478 * @returns Uint8Array
1479 */
1480flexArray():Uint8Array|null {
1481  var offset = this.bb!.__offset(this.bb_pos, 64);
1482  return offset ? new Uint8Array(this.bb!.bytes().buffer, this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset), this.bb!.__vector_len(this.bb_pos + offset)) : null;
1483};
1484
1485/**
1486 * @param number index
1487 * @param MyGame.Example.Test= obj
1488 * @returns MyGame.Example.Test
1489 */
1490test5(index: number, obj?:MyGame.Example.Test):MyGame.Example.Test|null {
1491  var offset = this.bb!.__offset(this.bb_pos, 66);
1492  return offset ? (obj || new MyGame.Example.Test()).__init(this.bb!.__vector(this.bb_pos + offset) + index * 4, this.bb!) : null;
1493};
1494
1495/**
1496 * @returns number
1497 */
1498test5Length():number {
1499  var offset = this.bb!.__offset(this.bb_pos, 66);
1500  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1501};
1502
1503/**
1504 * @param number index
1505 * @returns flatbuffers.Long
1506 */
1507vectorOfLongs(index: number):flatbuffers.Long|null {
1508  var offset = this.bb!.__offset(this.bb_pos, 68);
1509  return offset ? this.bb!.readInt64(this.bb!.__vector(this.bb_pos + offset) + index * 8) : this.bb!.createLong(0, 0);
1510};
1511
1512/**
1513 * @returns number
1514 */
1515vectorOfLongsLength():number {
1516  var offset = this.bb!.__offset(this.bb_pos, 68);
1517  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1518};
1519
1520/**
1521 * @param number index
1522 * @returns number
1523 */
1524vectorOfDoubles(index: number):number|null {
1525  var offset = this.bb!.__offset(this.bb_pos, 70);
1526  return offset ? this.bb!.readFloat64(this.bb!.__vector(this.bb_pos + offset) + index * 8) : 0;
1527};
1528
1529/**
1530 * @returns number
1531 */
1532vectorOfDoublesLength():number {
1533  var offset = this.bb!.__offset(this.bb_pos, 70);
1534  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1535};
1536
1537/**
1538 * @returns Float64Array
1539 */
1540vectorOfDoublesArray():Float64Array|null {
1541  var offset = this.bb!.__offset(this.bb_pos, 70);
1542  return offset ? new Float64Array(this.bb!.bytes().buffer, this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset), this.bb!.__vector_len(this.bb_pos + offset)) : null;
1543};
1544
1545/**
1546 * @param MyGame.InParentNamespace= obj
1547 * @returns MyGame.InParentNamespace|null
1548 */
1549parentNamespaceTest(obj?:MyGame.InParentNamespace):MyGame.InParentNamespace|null {
1550  var offset = this.bb!.__offset(this.bb_pos, 72);
1551  return offset ? (obj || new MyGame.InParentNamespace()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
1552};
1553
1554/**
1555 * @param number index
1556 * @param MyGame.Example.Referrable= obj
1557 * @returns MyGame.Example.Referrable
1558 */
1559vectorOfReferrables(index: number, obj?:MyGame.Example.Referrable):MyGame.Example.Referrable|null {
1560  var offset = this.bb!.__offset(this.bb_pos, 74);
1561  return offset ? (obj || new MyGame.Example.Referrable()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
1562};
1563
1564/**
1565 * @returns number
1566 */
1567vectorOfReferrablesLength():number {
1568  var offset = this.bb!.__offset(this.bb_pos, 74);
1569  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1570};
1571
1572/**
1573 * @returns flatbuffers.Long
1574 */
1575singleWeakReference():flatbuffers.Long {
1576  var offset = this.bb!.__offset(this.bb_pos, 76);
1577  return offset ? this.bb!.readUint64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
1578};
1579
1580/**
1581 * @param flatbuffers.Long value
1582 * @returns boolean
1583 */
1584mutate_single_weak_reference(value:flatbuffers.Long):boolean {
1585  var offset = this.bb!.__offset(this.bb_pos, 76);
1586
1587  if (offset === 0) {
1588    return false;
1589  }
1590
1591  this.bb!.writeUint64(this.bb_pos + offset, value);
1592  return true;
1593};
1594
1595/**
1596 * @param number index
1597 * @returns flatbuffers.Long
1598 */
1599vectorOfWeakReferences(index: number):flatbuffers.Long|null {
1600  var offset = this.bb!.__offset(this.bb_pos, 78);
1601  return offset ? this.bb!.readUint64(this.bb!.__vector(this.bb_pos + offset) + index * 8) : this.bb!.createLong(0, 0);
1602};
1603
1604/**
1605 * @returns number
1606 */
1607vectorOfWeakReferencesLength():number {
1608  var offset = this.bb!.__offset(this.bb_pos, 78);
1609  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1610};
1611
1612/**
1613 * @param number index
1614 * @param MyGame.Example.Referrable= obj
1615 * @returns MyGame.Example.Referrable
1616 */
1617vectorOfStrongReferrables(index: number, obj?:MyGame.Example.Referrable):MyGame.Example.Referrable|null {
1618  var offset = this.bb!.__offset(this.bb_pos, 80);
1619  return offset ? (obj || new MyGame.Example.Referrable()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
1620};
1621
1622/**
1623 * @returns number
1624 */
1625vectorOfStrongReferrablesLength():number {
1626  var offset = this.bb!.__offset(this.bb_pos, 80);
1627  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1628};
1629
1630/**
1631 * @returns flatbuffers.Long
1632 */
1633coOwningReference():flatbuffers.Long {
1634  var offset = this.bb!.__offset(this.bb_pos, 82);
1635  return offset ? this.bb!.readUint64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
1636};
1637
1638/**
1639 * @param flatbuffers.Long value
1640 * @returns boolean
1641 */
1642mutate_co_owning_reference(value:flatbuffers.Long):boolean {
1643  var offset = this.bb!.__offset(this.bb_pos, 82);
1644
1645  if (offset === 0) {
1646    return false;
1647  }
1648
1649  this.bb!.writeUint64(this.bb_pos + offset, value);
1650  return true;
1651};
1652
1653/**
1654 * @param number index
1655 * @returns flatbuffers.Long
1656 */
1657vectorOfCoOwningReferences(index: number):flatbuffers.Long|null {
1658  var offset = this.bb!.__offset(this.bb_pos, 84);
1659  return offset ? this.bb!.readUint64(this.bb!.__vector(this.bb_pos + offset) + index * 8) : this.bb!.createLong(0, 0);
1660};
1661
1662/**
1663 * @returns number
1664 */
1665vectorOfCoOwningReferencesLength():number {
1666  var offset = this.bb!.__offset(this.bb_pos, 84);
1667  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1668};
1669
1670/**
1671 * @returns flatbuffers.Long
1672 */
1673nonOwningReference():flatbuffers.Long {
1674  var offset = this.bb!.__offset(this.bb_pos, 86);
1675  return offset ? this.bb!.readUint64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
1676};
1677
1678/**
1679 * @param flatbuffers.Long value
1680 * @returns boolean
1681 */
1682mutate_non_owning_reference(value:flatbuffers.Long):boolean {
1683  var offset = this.bb!.__offset(this.bb_pos, 86);
1684
1685  if (offset === 0) {
1686    return false;
1687  }
1688
1689  this.bb!.writeUint64(this.bb_pos + offset, value);
1690  return true;
1691};
1692
1693/**
1694 * @param number index
1695 * @returns flatbuffers.Long
1696 */
1697vectorOfNonOwningReferences(index: number):flatbuffers.Long|null {
1698  var offset = this.bb!.__offset(this.bb_pos, 88);
1699  return offset ? this.bb!.readUint64(this.bb!.__vector(this.bb_pos + offset) + index * 8) : this.bb!.createLong(0, 0);
1700};
1701
1702/**
1703 * @returns number
1704 */
1705vectorOfNonOwningReferencesLength():number {
1706  var offset = this.bb!.__offset(this.bb_pos, 88);
1707  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1708};
1709
1710/**
1711 * @returns MyGame.Example.AnyUniqueAliases
1712 */
1713anyUniqueType():MyGame.Example.AnyUniqueAliases {
1714  var offset = this.bb!.__offset(this.bb_pos, 90);
1715  return offset ? /**  */ (this.bb!.readUint8(this.bb_pos + offset)) : MyGame.Example.AnyUniqueAliases.NONE;
1716};
1717
1718/**
1719 * @param flatbuffers.Table obj
1720 * @returns ?flatbuffers.Table
1721 */
1722anyUnique<T extends flatbuffers.Table>(obj:T):T|null {
1723  var offset = this.bb!.__offset(this.bb_pos, 92);
1724  return offset ? this.bb!.__union(obj, this.bb_pos + offset) : null;
1725};
1726
1727/**
1728 * @returns MyGame.Example.AnyAmbiguousAliases
1729 */
1730anyAmbiguousType():MyGame.Example.AnyAmbiguousAliases {
1731  var offset = this.bb!.__offset(this.bb_pos, 94);
1732  return offset ? /**  */ (this.bb!.readUint8(this.bb_pos + offset)) : MyGame.Example.AnyAmbiguousAliases.NONE;
1733};
1734
1735/**
1736 * @param flatbuffers.Table obj
1737 * @returns ?flatbuffers.Table
1738 */
1739anyAmbiguous<T extends flatbuffers.Table>(obj:T):T|null {
1740  var offset = this.bb!.__offset(this.bb_pos, 96);
1741  return offset ? this.bb!.__union(obj, this.bb_pos + offset) : null;
1742};
1743
1744/**
1745 * @param number index
1746 * @returns MyGame.Example.Color
1747 */
1748vectorOfEnums(index: number):MyGame.Example.Color|null {
1749  var offset = this.bb!.__offset(this.bb_pos, 98);
1750  return offset ? /**  */ (this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index)) : /**  */ (0);
1751};
1752
1753/**
1754 * @returns number
1755 */
1756vectorOfEnumsLength():number {
1757  var offset = this.bb!.__offset(this.bb_pos, 98);
1758  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
1759};
1760
1761/**
1762 * @returns Uint8Array
1763 */
1764vectorOfEnumsArray():Uint8Array|null {
1765  var offset = this.bb!.__offset(this.bb_pos, 98);
1766  return offset ? new Uint8Array(this.bb!.bytes().buffer, this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset), this.bb!.__vector_len(this.bb_pos + offset)) : null;
1767};
1768
1769/**
1770 * @returns MyGame.Example.Race
1771 */
1772signedEnum():MyGame.Example.Race {
1773  var offset = this.bb!.__offset(this.bb_pos, 100);
1774  return offset ? /**  */ (this.bb!.readInt8(this.bb_pos + offset)) : MyGame.Example.Race.None;
1775};
1776
1777/**
1778 * @param MyGame.Example.Race value
1779 * @returns boolean
1780 */
1781mutate_signed_enum(value:MyGame.Example.Race):boolean {
1782  var offset = this.bb!.__offset(this.bb_pos, 100);
1783
1784  if (offset === 0) {
1785    return false;
1786  }
1787
1788  this.bb!.writeInt8(this.bb_pos + offset, value);
1789  return true;
1790};
1791
1792/**
1793 * @param flatbuffers.Builder builder
1794 */
1795static startMonster(builder:flatbuffers.Builder) {
1796  builder.startObject(49);
1797};
1798
1799/**
1800 * @param flatbuffers.Builder builder
1801 * @param flatbuffers.Offset posOffset
1802 */
1803static addPos(builder:flatbuffers.Builder, posOffset:flatbuffers.Offset) {
1804  builder.addFieldStruct(0, posOffset, 0);
1805};
1806
1807/**
1808 * @param flatbuffers.Builder builder
1809 * @param number mana
1810 */
1811static addMana(builder:flatbuffers.Builder, mana:number) {
1812  builder.addFieldInt16(1, mana, 150);
1813};
1814
1815/**
1816 * @param flatbuffers.Builder builder
1817 * @param number hp
1818 */
1819static addHp(builder:flatbuffers.Builder, hp:number) {
1820  builder.addFieldInt16(2, hp, 100);
1821};
1822
1823/**
1824 * @param flatbuffers.Builder builder
1825 * @param flatbuffers.Offset nameOffset
1826 */
1827static addName(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset) {
1828  builder.addFieldOffset(3, nameOffset, 0);
1829};
1830
1831/**
1832 * @param flatbuffers.Builder builder
1833 * @param flatbuffers.Offset inventoryOffset
1834 */
1835static addInventory(builder:flatbuffers.Builder, inventoryOffset:flatbuffers.Offset) {
1836  builder.addFieldOffset(5, inventoryOffset, 0);
1837};
1838
1839/**
1840 * @param flatbuffers.Builder builder
1841 * @param Array.<number> data
1842 * @returns flatbuffers.Offset
1843 */
1844static createInventoryVector(builder:flatbuffers.Builder, data:number[] | Uint8Array):flatbuffers.Offset {
1845  builder.startVector(1, data.length, 1);
1846  for (var i = data.length - 1; i >= 0; i--) {
1847    builder.addInt8(data[i]);
1848  }
1849  return builder.endVector();
1850};
1851
1852/**
1853 * @param flatbuffers.Builder builder
1854 * @param number numElems
1855 */
1856static startInventoryVector(builder:flatbuffers.Builder, numElems:number) {
1857  builder.startVector(1, numElems, 1);
1858};
1859
1860/**
1861 * @param flatbuffers.Builder builder
1862 * @param MyGame.Example.Color color
1863 */
1864static addColor(builder:flatbuffers.Builder, color:MyGame.Example.Color) {
1865  builder.addFieldInt8(6, color, MyGame.Example.Color.Blue);
1866};
1867
1868/**
1869 * @param flatbuffers.Builder builder
1870 * @param MyGame.Example.Any testType
1871 */
1872static addTestType(builder:flatbuffers.Builder, testType:MyGame.Example.Any) {
1873  builder.addFieldInt8(7, testType, MyGame.Example.Any.NONE);
1874};
1875
1876/**
1877 * @param flatbuffers.Builder builder
1878 * @param flatbuffers.Offset testOffset
1879 */
1880static addTest(builder:flatbuffers.Builder, testOffset:flatbuffers.Offset) {
1881  builder.addFieldOffset(8, testOffset, 0);
1882};
1883
1884/**
1885 * @param flatbuffers.Builder builder
1886 * @param flatbuffers.Offset test4Offset
1887 */
1888static addTest4(builder:flatbuffers.Builder, test4Offset:flatbuffers.Offset) {
1889  builder.addFieldOffset(9, test4Offset, 0);
1890};
1891
1892/**
1893 * @param flatbuffers.Builder builder
1894 * @param number numElems
1895 */
1896static startTest4Vector(builder:flatbuffers.Builder, numElems:number) {
1897  builder.startVector(4, numElems, 2);
1898};
1899
1900/**
1901 * @param flatbuffers.Builder builder
1902 * @param flatbuffers.Offset testarrayofstringOffset
1903 */
1904static addTestarrayofstring(builder:flatbuffers.Builder, testarrayofstringOffset:flatbuffers.Offset) {
1905  builder.addFieldOffset(10, testarrayofstringOffset, 0);
1906};
1907
1908/**
1909 * @param flatbuffers.Builder builder
1910 * @param Array.<flatbuffers.Offset> data
1911 * @returns flatbuffers.Offset
1912 */
1913static createTestarrayofstringVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1914  builder.startVector(4, data.length, 4);
1915  for (var i = data.length - 1; i >= 0; i--) {
1916    builder.addOffset(data[i]);
1917  }
1918  return builder.endVector();
1919};
1920
1921/**
1922 * @param flatbuffers.Builder builder
1923 * @param number numElems
1924 */
1925static startTestarrayofstringVector(builder:flatbuffers.Builder, numElems:number) {
1926  builder.startVector(4, numElems, 4);
1927};
1928
1929/**
1930 * @param flatbuffers.Builder builder
1931 * @param flatbuffers.Offset testarrayoftablesOffset
1932 */
1933static addTestarrayoftables(builder:flatbuffers.Builder, testarrayoftablesOffset:flatbuffers.Offset) {
1934  builder.addFieldOffset(11, testarrayoftablesOffset, 0);
1935};
1936
1937/**
1938 * @param flatbuffers.Builder builder
1939 * @param Array.<flatbuffers.Offset> data
1940 * @returns flatbuffers.Offset
1941 */
1942static createTestarrayoftablesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
1943  builder.startVector(4, data.length, 4);
1944  for (var i = data.length - 1; i >= 0; i--) {
1945    builder.addOffset(data[i]);
1946  }
1947  return builder.endVector();
1948};
1949
1950/**
1951 * @param flatbuffers.Builder builder
1952 * @param number numElems
1953 */
1954static startTestarrayoftablesVector(builder:flatbuffers.Builder, numElems:number) {
1955  builder.startVector(4, numElems, 4);
1956};
1957
1958/**
1959 * @param flatbuffers.Builder builder
1960 * @param flatbuffers.Offset enemyOffset
1961 */
1962static addEnemy(builder:flatbuffers.Builder, enemyOffset:flatbuffers.Offset) {
1963  builder.addFieldOffset(12, enemyOffset, 0);
1964};
1965
1966/**
1967 * @param flatbuffers.Builder builder
1968 * @param flatbuffers.Offset testnestedflatbufferOffset
1969 */
1970static addTestnestedflatbuffer(builder:flatbuffers.Builder, testnestedflatbufferOffset:flatbuffers.Offset) {
1971  builder.addFieldOffset(13, testnestedflatbufferOffset, 0);
1972};
1973
1974/**
1975 * @param flatbuffers.Builder builder
1976 * @param Array.<number> data
1977 * @returns flatbuffers.Offset
1978 */
1979static createTestnestedflatbufferVector(builder:flatbuffers.Builder, data:number[] | Uint8Array):flatbuffers.Offset {
1980  builder.startVector(1, data.length, 1);
1981  for (var i = data.length - 1; i >= 0; i--) {
1982    builder.addInt8(data[i]);
1983  }
1984  return builder.endVector();
1985};
1986
1987/**
1988 * @param flatbuffers.Builder builder
1989 * @param number numElems
1990 */
1991static startTestnestedflatbufferVector(builder:flatbuffers.Builder, numElems:number) {
1992  builder.startVector(1, numElems, 1);
1993};
1994
1995/**
1996 * @param flatbuffers.Builder builder
1997 * @param flatbuffers.Offset testemptyOffset
1998 */
1999static addTestempty(builder:flatbuffers.Builder, testemptyOffset:flatbuffers.Offset) {
2000  builder.addFieldOffset(14, testemptyOffset, 0);
2001};
2002
2003/**
2004 * @param flatbuffers.Builder builder
2005 * @param boolean testbool
2006 */
2007static addTestbool(builder:flatbuffers.Builder, testbool:boolean) {
2008  builder.addFieldInt8(15, +testbool, +false);
2009};
2010
2011/**
2012 * @param flatbuffers.Builder builder
2013 * @param number testhashs32Fnv1
2014 */
2015static addTesthashs32Fnv1(builder:flatbuffers.Builder, testhashs32Fnv1:number) {
2016  builder.addFieldInt32(16, testhashs32Fnv1, 0);
2017};
2018
2019/**
2020 * @param flatbuffers.Builder builder
2021 * @param number testhashu32Fnv1
2022 */
2023static addTesthashu32Fnv1(builder:flatbuffers.Builder, testhashu32Fnv1:number) {
2024  builder.addFieldInt32(17, testhashu32Fnv1, 0);
2025};
2026
2027/**
2028 * @param flatbuffers.Builder builder
2029 * @param flatbuffers.Long testhashs64Fnv1
2030 */
2031static addTesthashs64Fnv1(builder:flatbuffers.Builder, testhashs64Fnv1:flatbuffers.Long) {
2032  builder.addFieldInt64(18, testhashs64Fnv1, builder.createLong(0, 0));
2033};
2034
2035/**
2036 * @param flatbuffers.Builder builder
2037 * @param flatbuffers.Long testhashu64Fnv1
2038 */
2039static addTesthashu64Fnv1(builder:flatbuffers.Builder, testhashu64Fnv1:flatbuffers.Long) {
2040  builder.addFieldInt64(19, testhashu64Fnv1, builder.createLong(0, 0));
2041};
2042
2043/**
2044 * @param flatbuffers.Builder builder
2045 * @param number testhashs32Fnv1a
2046 */
2047static addTesthashs32Fnv1a(builder:flatbuffers.Builder, testhashs32Fnv1a:number) {
2048  builder.addFieldInt32(20, testhashs32Fnv1a, 0);
2049};
2050
2051/**
2052 * @param flatbuffers.Builder builder
2053 * @param number testhashu32Fnv1a
2054 */
2055static addTesthashu32Fnv1a(builder:flatbuffers.Builder, testhashu32Fnv1a:number) {
2056  builder.addFieldInt32(21, testhashu32Fnv1a, 0);
2057};
2058
2059/**
2060 * @param flatbuffers.Builder builder
2061 * @param flatbuffers.Long testhashs64Fnv1a
2062 */
2063static addTesthashs64Fnv1a(builder:flatbuffers.Builder, testhashs64Fnv1a:flatbuffers.Long) {
2064  builder.addFieldInt64(22, testhashs64Fnv1a, builder.createLong(0, 0));
2065};
2066
2067/**
2068 * @param flatbuffers.Builder builder
2069 * @param flatbuffers.Long testhashu64Fnv1a
2070 */
2071static addTesthashu64Fnv1a(builder:flatbuffers.Builder, testhashu64Fnv1a:flatbuffers.Long) {
2072  builder.addFieldInt64(23, testhashu64Fnv1a, builder.createLong(0, 0));
2073};
2074
2075/**
2076 * @param flatbuffers.Builder builder
2077 * @param flatbuffers.Offset testarrayofboolsOffset
2078 */
2079static addTestarrayofbools(builder:flatbuffers.Builder, testarrayofboolsOffset:flatbuffers.Offset) {
2080  builder.addFieldOffset(24, testarrayofboolsOffset, 0);
2081};
2082
2083/**
2084 * @param flatbuffers.Builder builder
2085 * @param Array.<boolean> data
2086 * @returns flatbuffers.Offset
2087 */
2088static createTestarrayofboolsVector(builder:flatbuffers.Builder, data:boolean[]):flatbuffers.Offset {
2089  builder.startVector(1, data.length, 1);
2090  for (var i = data.length - 1; i >= 0; i--) {
2091    builder.addInt8(+data[i]);
2092  }
2093  return builder.endVector();
2094};
2095
2096/**
2097 * @param flatbuffers.Builder builder
2098 * @param number numElems
2099 */
2100static startTestarrayofboolsVector(builder:flatbuffers.Builder, numElems:number) {
2101  builder.startVector(1, numElems, 1);
2102};
2103
2104/**
2105 * @param flatbuffers.Builder builder
2106 * @param number testf
2107 */
2108static addTestf(builder:flatbuffers.Builder, testf:number) {
2109  builder.addFieldFloat32(25, testf, 3.14159);
2110};
2111
2112/**
2113 * @param flatbuffers.Builder builder
2114 * @param number testf2
2115 */
2116static addTestf2(builder:flatbuffers.Builder, testf2:number) {
2117  builder.addFieldFloat32(26, testf2, 3.0);
2118};
2119
2120/**
2121 * @param flatbuffers.Builder builder
2122 * @param number testf3
2123 */
2124static addTestf3(builder:flatbuffers.Builder, testf3:number) {
2125  builder.addFieldFloat32(27, testf3, 0.0);
2126};
2127
2128/**
2129 * @param flatbuffers.Builder builder
2130 * @param flatbuffers.Offset testarrayofstring2Offset
2131 */
2132static addTestarrayofstring2(builder:flatbuffers.Builder, testarrayofstring2Offset:flatbuffers.Offset) {
2133  builder.addFieldOffset(28, testarrayofstring2Offset, 0);
2134};
2135
2136/**
2137 * @param flatbuffers.Builder builder
2138 * @param Array.<flatbuffers.Offset> data
2139 * @returns flatbuffers.Offset
2140 */
2141static createTestarrayofstring2Vector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
2142  builder.startVector(4, data.length, 4);
2143  for (var i = data.length - 1; i >= 0; i--) {
2144    builder.addOffset(data[i]);
2145  }
2146  return builder.endVector();
2147};
2148
2149/**
2150 * @param flatbuffers.Builder builder
2151 * @param number numElems
2152 */
2153static startTestarrayofstring2Vector(builder:flatbuffers.Builder, numElems:number) {
2154  builder.startVector(4, numElems, 4);
2155};
2156
2157/**
2158 * @param flatbuffers.Builder builder
2159 * @param flatbuffers.Offset testarrayofsortedstructOffset
2160 */
2161static addTestarrayofsortedstruct(builder:flatbuffers.Builder, testarrayofsortedstructOffset:flatbuffers.Offset) {
2162  builder.addFieldOffset(29, testarrayofsortedstructOffset, 0);
2163};
2164
2165/**
2166 * @param flatbuffers.Builder builder
2167 * @param number numElems
2168 */
2169static startTestarrayofsortedstructVector(builder:flatbuffers.Builder, numElems:number) {
2170  builder.startVector(8, numElems, 4);
2171};
2172
2173/**
2174 * @param flatbuffers.Builder builder
2175 * @param flatbuffers.Offset flexOffset
2176 */
2177static addFlex(builder:flatbuffers.Builder, flexOffset:flatbuffers.Offset) {
2178  builder.addFieldOffset(30, flexOffset, 0);
2179};
2180
2181/**
2182 * @param flatbuffers.Builder builder
2183 * @param Array.<number> data
2184 * @returns flatbuffers.Offset
2185 */
2186static createFlexVector(builder:flatbuffers.Builder, data:number[] | Uint8Array):flatbuffers.Offset {
2187  builder.startVector(1, data.length, 1);
2188  for (var i = data.length - 1; i >= 0; i--) {
2189    builder.addInt8(data[i]);
2190  }
2191  return builder.endVector();
2192};
2193
2194/**
2195 * @param flatbuffers.Builder builder
2196 * @param number numElems
2197 */
2198static startFlexVector(builder:flatbuffers.Builder, numElems:number) {
2199  builder.startVector(1, numElems, 1);
2200};
2201
2202/**
2203 * @param flatbuffers.Builder builder
2204 * @param flatbuffers.Offset test5Offset
2205 */
2206static addTest5(builder:flatbuffers.Builder, test5Offset:flatbuffers.Offset) {
2207  builder.addFieldOffset(31, test5Offset, 0);
2208};
2209
2210/**
2211 * @param flatbuffers.Builder builder
2212 * @param number numElems
2213 */
2214static startTest5Vector(builder:flatbuffers.Builder, numElems:number) {
2215  builder.startVector(4, numElems, 2);
2216};
2217
2218/**
2219 * @param flatbuffers.Builder builder
2220 * @param flatbuffers.Offset vectorOfLongsOffset
2221 */
2222static addVectorOfLongs(builder:flatbuffers.Builder, vectorOfLongsOffset:flatbuffers.Offset) {
2223  builder.addFieldOffset(32, vectorOfLongsOffset, 0);
2224};
2225
2226/**
2227 * @param flatbuffers.Builder builder
2228 * @param Array.<flatbuffers.Long> data
2229 * @returns flatbuffers.Offset
2230 */
2231static createVectorOfLongsVector(builder:flatbuffers.Builder, data:flatbuffers.Long[]):flatbuffers.Offset {
2232  builder.startVector(8, data.length, 8);
2233  for (var i = data.length - 1; i >= 0; i--) {
2234    builder.addInt64(data[i]);
2235  }
2236  return builder.endVector();
2237};
2238
2239/**
2240 * @param flatbuffers.Builder builder
2241 * @param number numElems
2242 */
2243static startVectorOfLongsVector(builder:flatbuffers.Builder, numElems:number) {
2244  builder.startVector(8, numElems, 8);
2245};
2246
2247/**
2248 * @param flatbuffers.Builder builder
2249 * @param flatbuffers.Offset vectorOfDoublesOffset
2250 */
2251static addVectorOfDoubles(builder:flatbuffers.Builder, vectorOfDoublesOffset:flatbuffers.Offset) {
2252  builder.addFieldOffset(33, vectorOfDoublesOffset, 0);
2253};
2254
2255/**
2256 * @param flatbuffers.Builder builder
2257 * @param Array.<number> data
2258 * @returns flatbuffers.Offset
2259 */
2260static createVectorOfDoublesVector(builder:flatbuffers.Builder, data:number[] | Uint8Array):flatbuffers.Offset {
2261  builder.startVector(8, data.length, 8);
2262  for (var i = data.length - 1; i >= 0; i--) {
2263    builder.addFloat64(data[i]);
2264  }
2265  return builder.endVector();
2266};
2267
2268/**
2269 * @param flatbuffers.Builder builder
2270 * @param number numElems
2271 */
2272static startVectorOfDoublesVector(builder:flatbuffers.Builder, numElems:number) {
2273  builder.startVector(8, numElems, 8);
2274};
2275
2276/**
2277 * @param flatbuffers.Builder builder
2278 * @param flatbuffers.Offset parentNamespaceTestOffset
2279 */
2280static addParentNamespaceTest(builder:flatbuffers.Builder, parentNamespaceTestOffset:flatbuffers.Offset) {
2281  builder.addFieldOffset(34, parentNamespaceTestOffset, 0);
2282};
2283
2284/**
2285 * @param flatbuffers.Builder builder
2286 * @param flatbuffers.Offset vectorOfReferrablesOffset
2287 */
2288static addVectorOfReferrables(builder:flatbuffers.Builder, vectorOfReferrablesOffset:flatbuffers.Offset) {
2289  builder.addFieldOffset(35, vectorOfReferrablesOffset, 0);
2290};
2291
2292/**
2293 * @param flatbuffers.Builder builder
2294 * @param Array.<flatbuffers.Offset> data
2295 * @returns flatbuffers.Offset
2296 */
2297static createVectorOfReferrablesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
2298  builder.startVector(4, data.length, 4);
2299  for (var i = data.length - 1; i >= 0; i--) {
2300    builder.addOffset(data[i]);
2301  }
2302  return builder.endVector();
2303};
2304
2305/**
2306 * @param flatbuffers.Builder builder
2307 * @param number numElems
2308 */
2309static startVectorOfReferrablesVector(builder:flatbuffers.Builder, numElems:number) {
2310  builder.startVector(4, numElems, 4);
2311};
2312
2313/**
2314 * @param flatbuffers.Builder builder
2315 * @param flatbuffers.Long singleWeakReference
2316 */
2317static addSingleWeakReference(builder:flatbuffers.Builder, singleWeakReference:flatbuffers.Long) {
2318  builder.addFieldInt64(36, singleWeakReference, builder.createLong(0, 0));
2319};
2320
2321/**
2322 * @param flatbuffers.Builder builder
2323 * @param flatbuffers.Offset vectorOfWeakReferencesOffset
2324 */
2325static addVectorOfWeakReferences(builder:flatbuffers.Builder, vectorOfWeakReferencesOffset:flatbuffers.Offset) {
2326  builder.addFieldOffset(37, vectorOfWeakReferencesOffset, 0);
2327};
2328
2329/**
2330 * @param flatbuffers.Builder builder
2331 * @param Array.<flatbuffers.Long> data
2332 * @returns flatbuffers.Offset
2333 */
2334static createVectorOfWeakReferencesVector(builder:flatbuffers.Builder, data:flatbuffers.Long[]):flatbuffers.Offset {
2335  builder.startVector(8, data.length, 8);
2336  for (var i = data.length - 1; i >= 0; i--) {
2337    builder.addInt64(data[i]);
2338  }
2339  return builder.endVector();
2340};
2341
2342/**
2343 * @param flatbuffers.Builder builder
2344 * @param number numElems
2345 */
2346static startVectorOfWeakReferencesVector(builder:flatbuffers.Builder, numElems:number) {
2347  builder.startVector(8, numElems, 8);
2348};
2349
2350/**
2351 * @param flatbuffers.Builder builder
2352 * @param flatbuffers.Offset vectorOfStrongReferrablesOffset
2353 */
2354static addVectorOfStrongReferrables(builder:flatbuffers.Builder, vectorOfStrongReferrablesOffset:flatbuffers.Offset) {
2355  builder.addFieldOffset(38, vectorOfStrongReferrablesOffset, 0);
2356};
2357
2358/**
2359 * @param flatbuffers.Builder builder
2360 * @param Array.<flatbuffers.Offset> data
2361 * @returns flatbuffers.Offset
2362 */
2363static createVectorOfStrongReferrablesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
2364  builder.startVector(4, data.length, 4);
2365  for (var i = data.length - 1; i >= 0; i--) {
2366    builder.addOffset(data[i]);
2367  }
2368  return builder.endVector();
2369};
2370
2371/**
2372 * @param flatbuffers.Builder builder
2373 * @param number numElems
2374 */
2375static startVectorOfStrongReferrablesVector(builder:flatbuffers.Builder, numElems:number) {
2376  builder.startVector(4, numElems, 4);
2377};
2378
2379/**
2380 * @param flatbuffers.Builder builder
2381 * @param flatbuffers.Long coOwningReference
2382 */
2383static addCoOwningReference(builder:flatbuffers.Builder, coOwningReference:flatbuffers.Long) {
2384  builder.addFieldInt64(39, coOwningReference, builder.createLong(0, 0));
2385};
2386
2387/**
2388 * @param flatbuffers.Builder builder
2389 * @param flatbuffers.Offset vectorOfCoOwningReferencesOffset
2390 */
2391static addVectorOfCoOwningReferences(builder:flatbuffers.Builder, vectorOfCoOwningReferencesOffset:flatbuffers.Offset) {
2392  builder.addFieldOffset(40, vectorOfCoOwningReferencesOffset, 0);
2393};
2394
2395/**
2396 * @param flatbuffers.Builder builder
2397 * @param Array.<flatbuffers.Long> data
2398 * @returns flatbuffers.Offset
2399 */
2400static createVectorOfCoOwningReferencesVector(builder:flatbuffers.Builder, data:flatbuffers.Long[]):flatbuffers.Offset {
2401  builder.startVector(8, data.length, 8);
2402  for (var i = data.length - 1; i >= 0; i--) {
2403    builder.addInt64(data[i]);
2404  }
2405  return builder.endVector();
2406};
2407
2408/**
2409 * @param flatbuffers.Builder builder
2410 * @param number numElems
2411 */
2412static startVectorOfCoOwningReferencesVector(builder:flatbuffers.Builder, numElems:number) {
2413  builder.startVector(8, numElems, 8);
2414};
2415
2416/**
2417 * @param flatbuffers.Builder builder
2418 * @param flatbuffers.Long nonOwningReference
2419 */
2420static addNonOwningReference(builder:flatbuffers.Builder, nonOwningReference:flatbuffers.Long) {
2421  builder.addFieldInt64(41, nonOwningReference, builder.createLong(0, 0));
2422};
2423
2424/**
2425 * @param flatbuffers.Builder builder
2426 * @param flatbuffers.Offset vectorOfNonOwningReferencesOffset
2427 */
2428static addVectorOfNonOwningReferences(builder:flatbuffers.Builder, vectorOfNonOwningReferencesOffset:flatbuffers.Offset) {
2429  builder.addFieldOffset(42, vectorOfNonOwningReferencesOffset, 0);
2430};
2431
2432/**
2433 * @param flatbuffers.Builder builder
2434 * @param Array.<flatbuffers.Long> data
2435 * @returns flatbuffers.Offset
2436 */
2437static createVectorOfNonOwningReferencesVector(builder:flatbuffers.Builder, data:flatbuffers.Long[]):flatbuffers.Offset {
2438  builder.startVector(8, data.length, 8);
2439  for (var i = data.length - 1; i >= 0; i--) {
2440    builder.addInt64(data[i]);
2441  }
2442  return builder.endVector();
2443};
2444
2445/**
2446 * @param flatbuffers.Builder builder
2447 * @param number numElems
2448 */
2449static startVectorOfNonOwningReferencesVector(builder:flatbuffers.Builder, numElems:number) {
2450  builder.startVector(8, numElems, 8);
2451};
2452
2453/**
2454 * @param flatbuffers.Builder builder
2455 * @param MyGame.Example.AnyUniqueAliases anyUniqueType
2456 */
2457static addAnyUniqueType(builder:flatbuffers.Builder, anyUniqueType:MyGame.Example.AnyUniqueAliases) {
2458  builder.addFieldInt8(43, anyUniqueType, MyGame.Example.AnyUniqueAliases.NONE);
2459};
2460
2461/**
2462 * @param flatbuffers.Builder builder
2463 * @param flatbuffers.Offset anyUniqueOffset
2464 */
2465static addAnyUnique(builder:flatbuffers.Builder, anyUniqueOffset:flatbuffers.Offset) {
2466  builder.addFieldOffset(44, anyUniqueOffset, 0);
2467};
2468
2469/**
2470 * @param flatbuffers.Builder builder
2471 * @param MyGame.Example.AnyAmbiguousAliases anyAmbiguousType
2472 */
2473static addAnyAmbiguousType(builder:flatbuffers.Builder, anyAmbiguousType:MyGame.Example.AnyAmbiguousAliases) {
2474  builder.addFieldInt8(45, anyAmbiguousType, MyGame.Example.AnyAmbiguousAliases.NONE);
2475};
2476
2477/**
2478 * @param flatbuffers.Builder builder
2479 * @param flatbuffers.Offset anyAmbiguousOffset
2480 */
2481static addAnyAmbiguous(builder:flatbuffers.Builder, anyAmbiguousOffset:flatbuffers.Offset) {
2482  builder.addFieldOffset(46, anyAmbiguousOffset, 0);
2483};
2484
2485/**
2486 * @param flatbuffers.Builder builder
2487 * @param flatbuffers.Offset vectorOfEnumsOffset
2488 */
2489static addVectorOfEnums(builder:flatbuffers.Builder, vectorOfEnumsOffset:flatbuffers.Offset) {
2490  builder.addFieldOffset(47, vectorOfEnumsOffset, 0);
2491};
2492
2493/**
2494 * @param flatbuffers.Builder builder
2495 * @param Array.<MyGame.Example.Color> data
2496 * @returns flatbuffers.Offset
2497 */
2498static createVectorOfEnumsVector(builder:flatbuffers.Builder, data:MyGame.Example.Color[]):flatbuffers.Offset {
2499  builder.startVector(1, data.length, 1);
2500  for (var i = data.length - 1; i >= 0; i--) {
2501    builder.addInt8(data[i]);
2502  }
2503  return builder.endVector();
2504};
2505
2506/**
2507 * @param flatbuffers.Builder builder
2508 * @param number numElems
2509 */
2510static startVectorOfEnumsVector(builder:flatbuffers.Builder, numElems:number) {
2511  builder.startVector(1, numElems, 1);
2512};
2513
2514/**
2515 * @param flatbuffers.Builder builder
2516 * @param MyGame.Example.Race signedEnum
2517 */
2518static addSignedEnum(builder:flatbuffers.Builder, signedEnum:MyGame.Example.Race) {
2519  builder.addFieldInt8(48, signedEnum, MyGame.Example.Race.None);
2520};
2521
2522/**
2523 * @param flatbuffers.Builder builder
2524 * @returns flatbuffers.Offset
2525 */
2526static endMonster(builder:flatbuffers.Builder):flatbuffers.Offset {
2527  var offset = builder.endObject();
2528  builder.requiredField(offset, 10); // name
2529  return offset;
2530};
2531
2532/**
2533 * @param flatbuffers.Builder builder
2534 * @param flatbuffers.Offset offset
2535 */
2536static finishMonsterBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
2537  builder.finish(offset, 'MONS');
2538};
2539
2540/**
2541 * @param flatbuffers.Builder builder
2542 * @param flatbuffers.Offset offset
2543 */
2544static finishSizePrefixedMonsterBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
2545  builder.finish(offset, 'MONS', true);
2546};
2547
2548static createMonster(builder:flatbuffers.Builder, posOffset:flatbuffers.Offset, mana:number, hp:number, nameOffset:flatbuffers.Offset, inventoryOffset:flatbuffers.Offset, color:MyGame.Example.Color, testType:MyGame.Example.Any, testOffset:flatbuffers.Offset, test4Offset:flatbuffers.Offset, testarrayofstringOffset:flatbuffers.Offset, testarrayoftablesOffset:flatbuffers.Offset, enemyOffset:flatbuffers.Offset, testnestedflatbufferOffset:flatbuffers.Offset, testemptyOffset:flatbuffers.Offset, testbool:boolean, testhashs32Fnv1:number, testhashu32Fnv1:number, testhashs64Fnv1:flatbuffers.Long, testhashu64Fnv1:flatbuffers.Long, testhashs32Fnv1a:number, testhashu32Fnv1a:number, testhashs64Fnv1a:flatbuffers.Long, testhashu64Fnv1a:flatbuffers.Long, testarrayofboolsOffset:flatbuffers.Offset, testf:number, testf2:number, testf3:number, testarrayofstring2Offset:flatbuffers.Offset, testarrayofsortedstructOffset:flatbuffers.Offset, flexOffset:flatbuffers.Offset, test5Offset:flatbuffers.Offset, vectorOfLongsOffset:flatbuffers.Offset, vectorOfDoublesOffset:flatbuffers.Offset, parentNamespaceTestOffset:flatbuffers.Offset, vectorOfReferrablesOffset:flatbuffers.Offset, singleWeakReference:flatbuffers.Long, vectorOfWeakReferencesOffset:flatbuffers.Offset, vectorOfStrongReferrablesOffset:flatbuffers.Offset, coOwningReference:flatbuffers.Long, vectorOfCoOwningReferencesOffset:flatbuffers.Offset, nonOwningReference:flatbuffers.Long, vectorOfNonOwningReferencesOffset:flatbuffers.Offset, anyUniqueType:MyGame.Example.AnyUniqueAliases, anyUniqueOffset:flatbuffers.Offset, anyAmbiguousType:MyGame.Example.AnyAmbiguousAliases, anyAmbiguousOffset:flatbuffers.Offset, vectorOfEnumsOffset:flatbuffers.Offset, signedEnum:MyGame.Example.Race):flatbuffers.Offset {
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);
2599}
2600}
2601}
2602/**
2603 * @constructor
2604 */
2605export namespace MyGame.Example{
2606export class TypeAliases {
2607  bb: flatbuffers.ByteBuffer|null = null;
2608
2609  bb_pos:number = 0;
2610/**
2611 * @param number i
2612 * @param flatbuffers.ByteBuffer bb
2613 * @returns TypeAliases
2614 */
2615__init(i:number, bb:flatbuffers.ByteBuffer):TypeAliases {
2616  this.bb_pos = i;
2617  this.bb = bb;
2618  return this;
2619};
2620
2621/**
2622 * @param flatbuffers.ByteBuffer bb
2623 * @param TypeAliases= obj
2624 * @returns TypeAliases
2625 */
2626static getRootAsTypeAliases(bb:flatbuffers.ByteBuffer, obj?:TypeAliases):TypeAliases {
2627  return (obj || new TypeAliases()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
2628};
2629
2630/**
2631 * @param flatbuffers.ByteBuffer bb
2632 * @param TypeAliases= obj
2633 * @returns TypeAliases
2634 */
2635static getSizePrefixedRootAsTypeAliases(bb:flatbuffers.ByteBuffer, obj?:TypeAliases):TypeAliases {
2636  bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
2637  return (obj || new TypeAliases()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
2638};
2639
2640/**
2641 * @returns number
2642 */
2643i8():number {
2644  var offset = this.bb!.__offset(this.bb_pos, 4);
2645  return offset ? this.bb!.readInt8(this.bb_pos + offset) : 0;
2646};
2647
2648/**
2649 * @param number value
2650 * @returns boolean
2651 */
2652mutate_i8(value:number):boolean {
2653  var offset = this.bb!.__offset(this.bb_pos, 4);
2654
2655  if (offset === 0) {
2656    return false;
2657  }
2658
2659  this.bb!.writeInt8(this.bb_pos + offset, value);
2660  return true;
2661};
2662
2663/**
2664 * @returns number
2665 */
2666u8():number {
2667  var offset = this.bb!.__offset(this.bb_pos, 6);
2668  return offset ? this.bb!.readUint8(this.bb_pos + offset) : 0;
2669};
2670
2671/**
2672 * @param number value
2673 * @returns boolean
2674 */
2675mutate_u8(value:number):boolean {
2676  var offset = this.bb!.__offset(this.bb_pos, 6);
2677
2678  if (offset === 0) {
2679    return false;
2680  }
2681
2682  this.bb!.writeUint8(this.bb_pos + offset, value);
2683  return true;
2684};
2685
2686/**
2687 * @returns number
2688 */
2689i16():number {
2690  var offset = this.bb!.__offset(this.bb_pos, 8);
2691  return offset ? this.bb!.readInt16(this.bb_pos + offset) : 0;
2692};
2693
2694/**
2695 * @param number value
2696 * @returns boolean
2697 */
2698mutate_i16(value:number):boolean {
2699  var offset = this.bb!.__offset(this.bb_pos, 8);
2700
2701  if (offset === 0) {
2702    return false;
2703  }
2704
2705  this.bb!.writeInt16(this.bb_pos + offset, value);
2706  return true;
2707};
2708
2709/**
2710 * @returns number
2711 */
2712u16():number {
2713  var offset = this.bb!.__offset(this.bb_pos, 10);
2714  return offset ? this.bb!.readUint16(this.bb_pos + offset) : 0;
2715};
2716
2717/**
2718 * @param number value
2719 * @returns boolean
2720 */
2721mutate_u16(value:number):boolean {
2722  var offset = this.bb!.__offset(this.bb_pos, 10);
2723
2724  if (offset === 0) {
2725    return false;
2726  }
2727
2728  this.bb!.writeUint16(this.bb_pos + offset, value);
2729  return true;
2730};
2731
2732/**
2733 * @returns number
2734 */
2735i32():number {
2736  var offset = this.bb!.__offset(this.bb_pos, 12);
2737  return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
2738};
2739
2740/**
2741 * @param number value
2742 * @returns boolean
2743 */
2744mutate_i32(value:number):boolean {
2745  var offset = this.bb!.__offset(this.bb_pos, 12);
2746
2747  if (offset === 0) {
2748    return false;
2749  }
2750
2751  this.bb!.writeInt32(this.bb_pos + offset, value);
2752  return true;
2753};
2754
2755/**
2756 * @returns number
2757 */
2758u32():number {
2759  var offset = this.bb!.__offset(this.bb_pos, 14);
2760  return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
2761};
2762
2763/**
2764 * @param number value
2765 * @returns boolean
2766 */
2767mutate_u32(value:number):boolean {
2768  var offset = this.bb!.__offset(this.bb_pos, 14);
2769
2770  if (offset === 0) {
2771    return false;
2772  }
2773
2774  this.bb!.writeUint32(this.bb_pos + offset, value);
2775  return true;
2776};
2777
2778/**
2779 * @returns flatbuffers.Long
2780 */
2781i64():flatbuffers.Long {
2782  var offset = this.bb!.__offset(this.bb_pos, 16);
2783  return offset ? this.bb!.readInt64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
2784};
2785
2786/**
2787 * @param flatbuffers.Long value
2788 * @returns boolean
2789 */
2790mutate_i64(value:flatbuffers.Long):boolean {
2791  var offset = this.bb!.__offset(this.bb_pos, 16);
2792
2793  if (offset === 0) {
2794    return false;
2795  }
2796
2797  this.bb!.writeInt64(this.bb_pos + offset, value);
2798  return true;
2799};
2800
2801/**
2802 * @returns flatbuffers.Long
2803 */
2804u64():flatbuffers.Long {
2805  var offset = this.bb!.__offset(this.bb_pos, 18);
2806  return offset ? this.bb!.readUint64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
2807};
2808
2809/**
2810 * @param flatbuffers.Long value
2811 * @returns boolean
2812 */
2813mutate_u64(value:flatbuffers.Long):boolean {
2814  var offset = this.bb!.__offset(this.bb_pos, 18);
2815
2816  if (offset === 0) {
2817    return false;
2818  }
2819
2820  this.bb!.writeUint64(this.bb_pos + offset, value);
2821  return true;
2822};
2823
2824/**
2825 * @returns number
2826 */
2827f32():number {
2828  var offset = this.bb!.__offset(this.bb_pos, 20);
2829  return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 0.0;
2830};
2831
2832/**
2833 * @param number value
2834 * @returns boolean
2835 */
2836mutate_f32(value:number):boolean {
2837  var offset = this.bb!.__offset(this.bb_pos, 20);
2838
2839  if (offset === 0) {
2840    return false;
2841  }
2842
2843  this.bb!.writeFloat32(this.bb_pos + offset, value);
2844  return true;
2845};
2846
2847/**
2848 * @returns number
2849 */
2850f64():number {
2851  var offset = this.bb!.__offset(this.bb_pos, 22);
2852  return offset ? this.bb!.readFloat64(this.bb_pos + offset) : 0.0;
2853};
2854
2855/**
2856 * @param number value
2857 * @returns boolean
2858 */
2859mutate_f64(value:number):boolean {
2860  var offset = this.bb!.__offset(this.bb_pos, 22);
2861
2862  if (offset === 0) {
2863    return false;
2864  }
2865
2866  this.bb!.writeFloat64(this.bb_pos + offset, value);
2867  return true;
2868};
2869
2870/**
2871 * @param number index
2872 * @returns number
2873 */
2874v8(index: number):number|null {
2875  var offset = this.bb!.__offset(this.bb_pos, 24);
2876  return offset ? this.bb!.readInt8(this.bb!.__vector(this.bb_pos + offset) + index) : 0;
2877};
2878
2879/**
2880 * @returns number
2881 */
2882v8Length():number {
2883  var offset = this.bb!.__offset(this.bb_pos, 24);
2884  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
2885};
2886
2887/**
2888 * @returns Int8Array
2889 */
2890v8Array():Int8Array|null {
2891  var offset = this.bb!.__offset(this.bb_pos, 24);
2892  return offset ? new Int8Array(this.bb!.bytes().buffer, this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset), this.bb!.__vector_len(this.bb_pos + offset)) : null;
2893};
2894
2895/**
2896 * @param number index
2897 * @returns number
2898 */
2899vf64(index: number):number|null {
2900  var offset = this.bb!.__offset(this.bb_pos, 26);
2901  return offset ? this.bb!.readFloat64(this.bb!.__vector(this.bb_pos + offset) + index * 8) : 0;
2902};
2903
2904/**
2905 * @returns number
2906 */
2907vf64Length():number {
2908  var offset = this.bb!.__offset(this.bb_pos, 26);
2909  return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
2910};
2911
2912/**
2913 * @returns Float64Array
2914 */
2915vf64Array():Float64Array|null {
2916  var offset = this.bb!.__offset(this.bb_pos, 26);
2917  return offset ? new Float64Array(this.bb!.bytes().buffer, this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset), this.bb!.__vector_len(this.bb_pos + offset)) : null;
2918};
2919
2920/**
2921 * @param flatbuffers.Builder builder
2922 */
2923static startTypeAliases(builder:flatbuffers.Builder) {
2924  builder.startObject(12);
2925};
2926
2927/**
2928 * @param flatbuffers.Builder builder
2929 * @param number i8
2930 */
2931static addI8(builder:flatbuffers.Builder, i8:number) {
2932  builder.addFieldInt8(0, i8, 0);
2933};
2934
2935/**
2936 * @param flatbuffers.Builder builder
2937 * @param number u8
2938 */
2939static addU8(builder:flatbuffers.Builder, u8:number) {
2940  builder.addFieldInt8(1, u8, 0);
2941};
2942
2943/**
2944 * @param flatbuffers.Builder builder
2945 * @param number i16
2946 */
2947static addI16(builder:flatbuffers.Builder, i16:number) {
2948  builder.addFieldInt16(2, i16, 0);
2949};
2950
2951/**
2952 * @param flatbuffers.Builder builder
2953 * @param number u16
2954 */
2955static addU16(builder:flatbuffers.Builder, u16:number) {
2956  builder.addFieldInt16(3, u16, 0);
2957};
2958
2959/**
2960 * @param flatbuffers.Builder builder
2961 * @param number i32
2962 */
2963static addI32(builder:flatbuffers.Builder, i32:number) {
2964  builder.addFieldInt32(4, i32, 0);
2965};
2966
2967/**
2968 * @param flatbuffers.Builder builder
2969 * @param number u32
2970 */
2971static addU32(builder:flatbuffers.Builder, u32:number) {
2972  builder.addFieldInt32(5, u32, 0);
2973};
2974
2975/**
2976 * @param flatbuffers.Builder builder
2977 * @param flatbuffers.Long i64
2978 */
2979static addI64(builder:flatbuffers.Builder, i64:flatbuffers.Long) {
2980  builder.addFieldInt64(6, i64, builder.createLong(0, 0));
2981};
2982
2983/**
2984 * @param flatbuffers.Builder builder
2985 * @param flatbuffers.Long u64
2986 */
2987static addU64(builder:flatbuffers.Builder, u64:flatbuffers.Long) {
2988  builder.addFieldInt64(7, u64, builder.createLong(0, 0));
2989};
2990
2991/**
2992 * @param flatbuffers.Builder builder
2993 * @param number f32
2994 */
2995static addF32(builder:flatbuffers.Builder, f32:number) {
2996  builder.addFieldFloat32(8, f32, 0.0);
2997};
2998
2999/**
3000 * @param flatbuffers.Builder builder
3001 * @param number f64
3002 */
3003static addF64(builder:flatbuffers.Builder, f64:number) {
3004  builder.addFieldFloat64(9, f64, 0.0);
3005};
3006
3007/**
3008 * @param flatbuffers.Builder builder
3009 * @param flatbuffers.Offset v8Offset
3010 */
3011static addV8(builder:flatbuffers.Builder, v8Offset:flatbuffers.Offset) {
3012  builder.addFieldOffset(10, v8Offset, 0);
3013};
3014
3015/**
3016 * @param flatbuffers.Builder builder
3017 * @param Array.<number> data
3018 * @returns flatbuffers.Offset
3019 */
3020static createV8Vector(builder:flatbuffers.Builder, data:number[] | Uint8Array):flatbuffers.Offset {
3021  builder.startVector(1, data.length, 1);
3022  for (var i = data.length - 1; i >= 0; i--) {
3023    builder.addInt8(data[i]);
3024  }
3025  return builder.endVector();
3026};
3027
3028/**
3029 * @param flatbuffers.Builder builder
3030 * @param number numElems
3031 */
3032static startV8Vector(builder:flatbuffers.Builder, numElems:number) {
3033  builder.startVector(1, numElems, 1);
3034};
3035
3036/**
3037 * @param flatbuffers.Builder builder
3038 * @param flatbuffers.Offset vf64Offset
3039 */
3040static addVf64(builder:flatbuffers.Builder, vf64Offset:flatbuffers.Offset) {
3041  builder.addFieldOffset(11, vf64Offset, 0);
3042};
3043
3044/**
3045 * @param flatbuffers.Builder builder
3046 * @param Array.<number> data
3047 * @returns flatbuffers.Offset
3048 */
3049static createVf64Vector(builder:flatbuffers.Builder, data:number[] | Uint8Array):flatbuffers.Offset {
3050  builder.startVector(8, data.length, 8);
3051  for (var i = data.length - 1; i >= 0; i--) {
3052    builder.addFloat64(data[i]);
3053  }
3054  return builder.endVector();
3055};
3056
3057/**
3058 * @param flatbuffers.Builder builder
3059 * @param number numElems
3060 */
3061static startVf64Vector(builder:flatbuffers.Builder, numElems:number) {
3062  builder.startVector(8, numElems, 8);
3063};
3064
3065/**
3066 * @param flatbuffers.Builder builder
3067 * @returns flatbuffers.Offset
3068 */
3069static endTypeAliases(builder:flatbuffers.Builder):flatbuffers.Offset {
3070  var offset = builder.endObject();
3071  return offset;
3072};
3073
3074static createTypeAliases(builder:flatbuffers.Builder, i8:number, u8:number, i16:number, u16:number, i32:number, u32:number, i64:flatbuffers.Long, u64:flatbuffers.Long, f32:number, f64:number, v8Offset:flatbuffers.Offset, vf64Offset:flatbuffers.Offset):flatbuffers.Offset {
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);
3089}
3090}
3091}
3092