• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 package NamespaceA.NamespaceB
4 
5 import com.google.flatbuffers.BaseVector
6 import com.google.flatbuffers.BooleanVector
7 import com.google.flatbuffers.ByteVector
8 import com.google.flatbuffers.Constants
9 import com.google.flatbuffers.DoubleVector
10 import com.google.flatbuffers.FlatBufferBuilder
11 import com.google.flatbuffers.FloatVector
12 import com.google.flatbuffers.LongVector
13 import com.google.flatbuffers.StringVector
14 import com.google.flatbuffers.Struct
15 import com.google.flatbuffers.Table
16 import com.google.flatbuffers.UnionVector
17 import java.nio.ByteBuffer
18 import java.nio.ByteOrder
19 import kotlin.math.sign
20 
21 @Suppress("unused")
22 @ExperimentalUnsignedTypes
23 class StructInNestedNS : Struct() {
24 
__initnull25     fun __init(_i: Int, _bb: ByteBuffer)  {
26         __reset(_i, _bb)
27     }
__assignnull28     fun __assign(_i: Int, _bb: ByteBuffer) : StructInNestedNS {
29         __init(_i, _bb)
30         return this
31     }
32     val a : Int get() = bb.getInt(bb_pos + 0)
mutateAnull33     fun mutateA(a: Int) : ByteBuffer = bb.putInt(bb_pos + 0, a)
34     val b : Int get() = bb.getInt(bb_pos + 4)
35     fun mutateB(b: Int) : ByteBuffer = bb.putInt(bb_pos + 4, b)
36     companion object {
37         fun createStructInNestedNS(builder: FlatBufferBuilder, a: Int, b: Int) : Int {
38             builder.prep(4, 8)
39             builder.putInt(b)
40             builder.putInt(a)
41             return builder.offset()
42         }
43     }
44 }
45