...
1// automatically generated by the FlatBuffers compiler, do not modify
2
3import com.google.flatbuffers.BaseVector
4import com.google.flatbuffers.BooleanVector
5import com.google.flatbuffers.ByteVector
6import com.google.flatbuffers.Constants
7import com.google.flatbuffers.DoubleVector
8import com.google.flatbuffers.FlatBufferBuilder
9import com.google.flatbuffers.FloatVector
10import com.google.flatbuffers.LongVector
11import com.google.flatbuffers.StringVector
12import com.google.flatbuffers.Struct
13import com.google.flatbuffers.Table
14import com.google.flatbuffers.UnionVector
15import java.nio.ByteBuffer
16import java.nio.ByteOrder
17import kotlin.math.sign
18
19@Suppress("unused")
20class Rapunzel : Struct() {
21
22 fun __init(_i: Int, _bb: ByteBuffer) {
23 __reset(_i, _bb)
24 }
25 fun __assign(_i: Int, _bb: ByteBuffer) : Rapunzel {
26 __init(_i, _bb)
27 return this
28 }
29 val hairLength : Int get() = bb.getInt(bb_pos + 0)
30 fun mutateHairLength(hairLength: Int) : ByteBuffer = bb.putInt(bb_pos + 0, hairLength)
31 companion object {
32 fun createRapunzel(builder: FlatBufferBuilder, hairLength: Int) : Int {
33 builder.prep(4, 4)
34 builder.putInt(hairLength)
35 return builder.offset()
36 }
37 }
38}
View as plain text