...
1// automatically generated by the FlatBuffers compiler, do not modify
2
3import * as flatbuffers from 'flatbuffers';
4
5
6
7export class Unused implements flatbuffers.IUnpackableObject<UnusedT> {
8 bb: flatbuffers.ByteBuffer|null = null;
9 bb_pos = 0;
10 __init(i:number, bb:flatbuffers.ByteBuffer):Unused {
11 this.bb_pos = i;
12 this.bb = bb;
13 return this;
14}
15
16a():number {
17 return this.bb!.readInt32(this.bb_pos);
18}
19
20mutate_a(value:number):boolean {
21 this.bb!.writeInt32(this.bb_pos + 0, value);
22 return true;
23}
24
25static getFullyQualifiedName():string {
26 return 'MyGame.OtherNameSpace.Unused';
27}
28
29static sizeOf():number {
30 return 4;
31}
32
33static createUnused(builder:flatbuffers.Builder, a: number):flatbuffers.Offset {
34 builder.prep(4, 4);
35 builder.writeInt32(a);
36 return builder.offset();
37}
38
39
40unpack(): UnusedT {
41 return new UnusedT(
42 this.a()
43 );
44}
45
46
47unpackTo(_o: UnusedT): void {
48 _o.a = this.a();
49}
50}
51
52export class UnusedT implements flatbuffers.IGeneratedObject {
53constructor(
54 public a: number = 0
55){}
56
57
58pack(builder:flatbuffers.Builder): flatbuffers.Offset {
59 return Unused.createUnused(builder,
60 this.a
61 );
62}
63}
View as plain text