Debian Codegraph @

tests/ts/my-game/other-name-space/unused.ts

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