• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 {number}
17 */
18NamespaceA.NamespaceB.EnumInNestedNS = {
19  A: 0,
20  B: 1,
21  C: 2
22};
23
24/**
25 * @enum {string}
26 */
27NamespaceA.NamespaceB.EnumInNestedNSName = {
28  '0': 'A',
29  '1': 'B',
30  '2': 'C'
31};
32
33/**
34 * @constructor
35 */
36NamespaceA.NamespaceB.TableInNestedNS = function() {
37  /**
38   * @type {flatbuffers.ByteBuffer}
39   */
40  this.bb = null;
41
42  /**
43   * @type {number}
44   */
45  this.bb_pos = 0;
46};
47
48/**
49 * @param {number} i
50 * @param {flatbuffers.ByteBuffer} bb
51 * @returns {NamespaceA.NamespaceB.TableInNestedNS}
52 */
53NamespaceA.NamespaceB.TableInNestedNS.prototype.__init = function(i, bb) {
54  this.bb_pos = i;
55  this.bb = bb;
56  return this;
57};
58
59/**
60 * @param {flatbuffers.ByteBuffer} bb
61 * @param {NamespaceA.NamespaceB.TableInNestedNS=} obj
62 * @returns {NamespaceA.NamespaceB.TableInNestedNS}
63 */
64NamespaceA.NamespaceB.TableInNestedNS.getRootAsTableInNestedNS = function(bb, obj) {
65  return (obj || new NamespaceA.NamespaceB.TableInNestedNS).__init(bb.readInt32(bb.position()) + bb.position(), bb);
66};
67
68/**
69 * @param {flatbuffers.ByteBuffer} bb
70 * @param {NamespaceA.NamespaceB.TableInNestedNS=} obj
71 * @returns {NamespaceA.NamespaceB.TableInNestedNS}
72 */
73NamespaceA.NamespaceB.TableInNestedNS.getSizePrefixedRootAsTableInNestedNS = function(bb, obj) {
74  bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
75  return (obj || new NamespaceA.NamespaceB.TableInNestedNS).__init(bb.readInt32(bb.position()) + bb.position(), bb);
76};
77
78/**
79 * @returns {number}
80 */
81NamespaceA.NamespaceB.TableInNestedNS.prototype.foo = function() {
82  var offset = this.bb.__offset(this.bb_pos, 4);
83  return offset ? this.bb.readInt32(this.bb_pos + offset) : 0;
84};
85
86/**
87 * @param {number} value
88 * @returns {boolean}
89 */
90NamespaceA.NamespaceB.TableInNestedNS.prototype.mutate_foo = function(value) {
91  var offset = this.bb.__offset(this.bb_pos, 4);
92
93  if (offset === 0) {
94    return false;
95  }
96
97  this.bb.writeInt32(this.bb_pos + offset, value);
98  return true;
99};
100
101/**
102 * @param {flatbuffers.Builder} builder
103 */
104NamespaceA.NamespaceB.TableInNestedNS.startTableInNestedNS = function(builder) {
105  builder.startObject(1);
106};
107
108/**
109 * @param {flatbuffers.Builder} builder
110 * @param {number} foo
111 */
112NamespaceA.NamespaceB.TableInNestedNS.addFoo = function(builder, foo) {
113  builder.addFieldInt32(0, foo, 0);
114};
115
116/**
117 * @param {flatbuffers.Builder} builder
118 * @returns {flatbuffers.Offset}
119 */
120NamespaceA.NamespaceB.TableInNestedNS.endTableInNestedNS = function(builder) {
121  var offset = builder.endObject();
122  return offset;
123};
124
125/**
126 * @param {flatbuffers.Builder} builder
127 * @param {number} foo
128 * @returns {flatbuffers.Offset}
129 */
130NamespaceA.NamespaceB.TableInNestedNS.createTableInNestedNS = function(builder, foo) {
131  NamespaceA.NamespaceB.TableInNestedNS.startTableInNestedNS(builder);
132  NamespaceA.NamespaceB.TableInNestedNS.addFoo(builder, foo);
133  return NamespaceA.NamespaceB.TableInNestedNS.endTableInNestedNS(builder);
134}
135
136/**
137 * @constructor
138 */
139NamespaceA.NamespaceB.StructInNestedNS = function() {
140  /**
141   * @type {flatbuffers.ByteBuffer}
142   */
143  this.bb = null;
144
145  /**
146   * @type {number}
147   */
148  this.bb_pos = 0;
149};
150
151/**
152 * @param {number} i
153 * @param {flatbuffers.ByteBuffer} bb
154 * @returns {NamespaceA.NamespaceB.StructInNestedNS}
155 */
156NamespaceA.NamespaceB.StructInNestedNS.prototype.__init = function(i, bb) {
157  this.bb_pos = i;
158  this.bb = bb;
159  return this;
160};
161
162/**
163 * @returns {number}
164 */
165NamespaceA.NamespaceB.StructInNestedNS.prototype.a = function() {
166  return this.bb.readInt32(this.bb_pos);
167};
168
169/**
170 * @param {number} value
171 * @returns {boolean}
172 */
173NamespaceA.NamespaceB.StructInNestedNS.prototype.mutate_a = function(value) {
174  var offset = this.bb.__offset(this.bb_pos, 0);
175
176  if (offset === 0) {
177    return false;
178  }
179
180  this.bb.writeInt32(this.bb_pos + offset, value);
181  return true;
182};
183
184/**
185 * @returns {number}
186 */
187NamespaceA.NamespaceB.StructInNestedNS.prototype.b = function() {
188  return this.bb.readInt32(this.bb_pos + 4);
189};
190
191/**
192 * @param {number} value
193 * @returns {boolean}
194 */
195NamespaceA.NamespaceB.StructInNestedNS.prototype.mutate_b = function(value) {
196  var offset = this.bb.__offset(this.bb_pos, 4);
197
198  if (offset === 0) {
199    return false;
200  }
201
202  this.bb.writeInt32(this.bb_pos + offset, value);
203  return true;
204};
205
206/**
207 * @param {flatbuffers.Builder} builder
208 * @param {number} a
209 * @param {number} b
210 * @returns {flatbuffers.Offset}
211 */
212NamespaceA.NamespaceB.StructInNestedNS.createStructInNestedNS = function(builder, a, b) {
213  builder.prep(4, 8);
214  builder.writeInt32(b);
215  builder.writeInt32(a);
216  return builder.offset();
217};
218
219// Exports for Node.js and RequireJS
220this.NamespaceA = NamespaceA;
221