blob: 0273bb1183b63c93e5db5f5e02b214c1ac27c422 [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001// automatically generated by the FlatBuffers compiler, do not modify
2
3package NamespaceA.NamespaceB
4
5import java.nio.*
6import kotlin.math.sign
7import com.google.flatbuffers.*
8
9@Suppress("unused")
10@ExperimentalUnsignedTypes
11class StructInNestedNS : Struct() {
12
13 fun __init(_i: Int, _bb: ByteBuffer) {
14 __reset(_i, _bb)
15 }
16 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)
21 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}