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