• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 package NamespaceA.NamespaceB;
4 
5 import java.nio.*;
6 import java.lang.*;
7 import java.util.*;
8 import com.google.flatbuffers.*;
9 
10 @SuppressWarnings("unused")
11 public final class StructInNestedNS extends Struct {
__init(int _i, ByteBuffer _bb)12   public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
__assign(int _i, ByteBuffer _bb)13   public StructInNestedNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
14 
a()15   public int a() { return bb.getInt(bb_pos + 0); }
mutateA(int a)16   public void mutateA(int a) { bb.putInt(bb_pos + 0, a); }
b()17   public int b() { return bb.getInt(bb_pos + 4); }
mutateB(int b)18   public void mutateB(int b) { bb.putInt(bb_pos + 4, b); }
19 
createStructInNestedNS(FlatBufferBuilder builder, int a, int b)20   public static int createStructInNestedNS(FlatBufferBuilder builder, int a, int b) {
21     builder.prep(4, 8);
22     builder.putInt(b);
23     builder.putInt(a);
24     return builder.offset();
25   }
26 
27   public static final class Vector extends BaseVector {
__assign(int _vector, int _element_size, ByteBuffer _bb)28     public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; }
29 
get(int j)30     public StructInNestedNS get(int j) { return get(new StructInNestedNS(), j); }
get(StructInNestedNS obj, int j)31     public StructInNestedNS get(StructInNestedNS obj, int j) {  return obj.__assign(__element(j), bb); }
32   }
unpack()33   public StructInNestedNST unpack() {
34     StructInNestedNST _o = new StructInNestedNST();
35     unpackTo(_o);
36     return _o;
37   }
unpackTo(StructInNestedNST _o)38   public void unpackTo(StructInNestedNST _o) {
39     int _oA = a();
40     _o.setA(_oA);
41     int _oB = b();
42     _o.setB(_oB);
43   }
pack(FlatBufferBuilder builder, StructInNestedNST _o)44   public static int pack(FlatBufferBuilder builder, StructInNestedNST _o) {
45     if (_o == null) return 0;
46     return createStructInNestedNS(
47       builder,
48       _o.getA(),
49       _o.getB());
50   }
51 }
52 
53