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