1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 package MyGame.Example
4 
5 import java.nio.*
6 import kotlin.math.sign
7 import com.google.flatbuffers.*
8 
9 @Suppress("unused")
10 @ExperimentalUnsignedTypes
11 class Test : Struct() {
12 
__initnull13     fun __init(_i: Int, _bb: ByteBuffer)  {
14         __reset(_i, _bb)
15     }
__assignnull16     fun __assign(_i: Int, _bb: ByteBuffer) : Test {
17         __init(_i, _bb)
18         return this
19     }
20     val a : Short get() = bb.getShort(bb_pos + 0)
mutateAnull21     fun mutateA(a: Short) : ByteBuffer = bb.putShort(bb_pos + 0, a)
22     val b : Byte get() = bb.get(bb_pos + 2)
23     fun mutateB(b: Byte) : ByteBuffer = bb.put(bb_pos + 2, b)
24     companion object {
25         fun createTest(builder: FlatBufferBuilder, a: Short, b: Byte) : Int {
26             builder.prep(2, 4)
27             builder.pad(1)
28             builder.putByte(b)
29             builder.putShort(a)
30             return builder.offset()
31         }
32     }
33 }
34