...
1// automatically generated by the FlatBuffers compiler, do not modify
2
3package NamespaceA.NamespaceB
4
5import com.google.flatbuffers.BaseVector
6import com.google.flatbuffers.BooleanVector
7import com.google.flatbuffers.ByteVector
8import com.google.flatbuffers.Constants
9import com.google.flatbuffers.DoubleVector
10import com.google.flatbuffers.FlatBufferBuilder
11import com.google.flatbuffers.FloatVector
12import com.google.flatbuffers.LongVector
13import com.google.flatbuffers.StringVector
14import com.google.flatbuffers.Struct
15import com.google.flatbuffers.Table
16import com.google.flatbuffers.UnionVector
17import java.nio.ByteBuffer
18import java.nio.ByteOrder
19import kotlin.math.sign
20
21@Suppress("unused")
22@ExperimentalUnsignedTypes
23class StructInNestedNS : Struct() {
24
25 fun __init(_i: Int, _bb: ByteBuffer) {
26 __reset(_i, _bb)
27 }
28 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)
33 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}
View as plain text