• 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 kotlin.math.sign
7 import com.google.flatbuffers.*
8 
9 @Suppress("unused")
10 @ExperimentalUnsignedTypes
11 class StructInNestedNS : Struct() {
12 
__initnull13     fun __init(_i: Int, _bb: ByteBuffer)  {
14         __reset(_i, _bb)
15     }
__assignnull16     fun __assign(_i: Int, _bb: ByteBuffer) : StructInNestedNS {
17         __init(_i, _bb)
18         return this
19     }
20     val a : Int get() = bb.getInt(bb_pos + 0)
mutateAnull21     fun mutateA(a: Int) : ByteBuffer = bb.putInt(bb_pos + 0, a)
22     val b : Int get() = bb.getInt(bb_pos + 4)
23     fun mutateB(b: Int) : ByteBuffer = bb.putInt(bb_pos + 4, b)
24     companion object {
25         fun createStructInNestedNS(builder: FlatBufferBuilder, a: Int, b: Int) : Int {
26             builder.prep(4, 8)
27             builder.putInt(b)
28             builder.putInt(a)
29             return builder.offset()
30         }
31     }
32 }
33