1// automatically generated by the FlatBuffers compiler, do not modify 2 3import * as flatbuffers from 'flatbuffers'; 4 5 6 7export class StructInNestedNS { 8 bb: flatbuffers.ByteBuffer|null = null; 9 bb_pos = 0; 10__init(i:number, bb:flatbuffers.ByteBuffer):StructInNestedNS { 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 25b():number { 26 return this.bb!.readInt32(this.bb_pos + 4); 27} 28 29mutate_b(value:number):boolean { 30 this.bb!.writeInt32(this.bb_pos + 4, value); 31 return true; 32} 33 34static getFullyQualifiedName():string { 35 return 'NamespaceA.NamespaceB.StructInNestedNS'; 36} 37 38static sizeOf():number { 39 return 8; 40} 41 42static createStructInNestedNS(builder:flatbuffers.Builder, a: number, b: number):flatbuffers.Offset { 43 builder.prep(4, 8); 44 builder.writeInt32(b); 45 builder.writeInt32(a); 46 return builder.offset(); 47} 48 49 50unpack(): StructInNestedNST { 51 return new StructInNestedNST( 52 this.a(), 53 this.b() 54 ); 55} 56 57 58unpackTo(_o: StructInNestedNST): void { 59 _o.a = this.a(); 60 _o.b = this.b(); 61} 62} 63 64export class StructInNestedNST { 65constructor( 66 public a: number = 0, 67 public b: number = 0 68){} 69 70 71pack(builder:flatbuffers.Builder): flatbuffers.Offset { 72 return StructInNestedNS.createStructInNestedNS(builder, 73 this.a, 74 this.b 75 ); 76} 77} 78