1// automatically generated by the FlatBuffers compiler, do not modify 2 3/** 4 * @enum 5 */ 6export namespace NamespaceA.NamespaceB{ 7export enum EnumInNestedNS{ 8 A= 0, 9 B= 1, 10 C= 2 11}}; 12 13/** 14 * @constructor 15 */ 16export namespace NamespaceA.NamespaceB{ 17export class TableInNestedNS { 18 /** 19 * @type {flatbuffers.ByteBuffer} 20 */ 21 bb: flatbuffers.ByteBuffer; 22 23 /** 24 * @type {number} 25 */ 26 bb_pos:number = 0; 27/** 28 * @param {number} i 29 * @param {flatbuffers.ByteBuffer} bb 30 * @returns {TableInNestedNS} 31 */ 32__init(i:number, bb:flatbuffers.ByteBuffer):TableInNestedNS { 33 this.bb_pos = i; 34 this.bb = bb; 35 return this; 36}; 37 38/** 39 * @param {flatbuffers.ByteBuffer} bb 40 * @param {TableInNestedNS=} obj 41 * @returns {TableInNestedNS} 42 */ 43static getRootAsTableInNestedNS(bb:flatbuffers.ByteBuffer, obj?:TableInNestedNS):TableInNestedNS { 44 return (obj || new TableInNestedNS).__init(bb.readInt32(bb.position()) + bb.position(), bb); 45}; 46 47/** 48 * @returns {number} 49 */ 50foo():number { 51 var offset = this.bb.__offset(this.bb_pos, 4); 52 return offset ? this.bb.readInt32(this.bb_pos + offset) : 0; 53}; 54 55/** 56 * @param {number} value 57 * @returns {boolean} 58 */ 59mutate_foo(value:number):boolean { 60 var offset = this.bb.__offset(this.bb_pos, 4); 61 62 if (offset === 0) { 63 return false; 64 } 65 66 this.bb.writeInt32(this.bb_pos + offset, value); 67 return true; 68}; 69 70/** 71 * @param {flatbuffers.Builder} builder 72 */ 73static startTableInNestedNS(builder:flatbuffers.Builder) { 74 builder.startObject(1); 75}; 76 77/** 78 * @param {flatbuffers.Builder} builder 79 * @param {number} foo 80 */ 81static addFoo(builder:flatbuffers.Builder, foo:number) { 82 builder.addFieldInt32(0, foo, 0); 83}; 84 85/** 86 * @param {flatbuffers.Builder} builder 87 * @returns {flatbuffers.Offset} 88 */ 89static endTableInNestedNS(builder:flatbuffers.Builder):flatbuffers.Offset { 90 var offset = builder.endObject(); 91 return offset; 92}; 93 94} 95} 96/** 97 * @constructor 98 */ 99export namespace NamespaceA.NamespaceB{ 100export class StructInNestedNS { 101 /** 102 * @type {flatbuffers.ByteBuffer} 103 */ 104 bb: flatbuffers.ByteBuffer; 105 106 /** 107 * @type {number} 108 */ 109 bb_pos:number = 0; 110/** 111 * @param {number} i 112 * @param {flatbuffers.ByteBuffer} bb 113 * @returns {StructInNestedNS} 114 */ 115__init(i:number, bb:flatbuffers.ByteBuffer):StructInNestedNS { 116 this.bb_pos = i; 117 this.bb = bb; 118 return this; 119}; 120 121/** 122 * @returns {number} 123 */ 124a():number { 125 return this.bb.readInt32(this.bb_pos); 126}; 127 128/** 129 * @param {number} value 130 * @returns {boolean} 131 */ 132mutate_a(value:number):boolean { 133 var offset = this.bb.__offset(this.bb_pos, 0); 134 135 if (offset === 0) { 136 return false; 137 } 138 139 this.bb.writeInt32(this.bb_pos + offset, value); 140 return true; 141}; 142 143/** 144 * @returns {number} 145 */ 146b():number { 147 return this.bb.readInt32(this.bb_pos + 4); 148}; 149 150/** 151 * @param {number} value 152 * @returns {boolean} 153 */ 154mutate_b(value:number):boolean { 155 var offset = this.bb.__offset(this.bb_pos, 4); 156 157 if (offset === 0) { 158 return false; 159 } 160 161 this.bb.writeInt32(this.bb_pos + offset, value); 162 return true; 163}; 164 165/** 166 * @param {flatbuffers.Builder} builder 167 * @param {number} a 168 * @param {number} b 169 * @returns {flatbuffers.Offset} 170 */ 171static createStructInNestedNS(builder:flatbuffers.Builder, a: number, b: number):flatbuffers.Offset { 172 builder.prep(4, 8); 173 builder.writeInt32(b); 174 builder.writeInt32(a); 175 return builder.offset(); 176}; 177 178} 179} 180