1 // automatically generated by the FlatBuffers compiler, do not modify 2 3 import java.nio.* 4 import kotlin.math.sign 5 import com.google.flatbuffers.* 6 7 @Suppress("unused") 8 @ExperimentalUnsignedTypes 9 class Rapunzel : Struct() { 10 __initnull11 fun __init(_i: Int, _bb: ByteBuffer) { 12 __reset(_i, _bb) 13 } __assignnull14 fun __assign(_i: Int, _bb: ByteBuffer) : Rapunzel { 15 __init(_i, _bb) 16 return this 17 } 18 val hairLength : Int get() = bb.getInt(bb_pos + 0) mutateHairLengthnull19 fun mutateHairLength(hairLength: Int) : ByteBuffer = bb.putInt(bb_pos + 0, hairLength) 20 companion object { 21 fun createRapunzel(builder: FlatBufferBuilder, hairLength: Int) : Int { 22 builder.prep(4, 4) 23 builder.putInt(hairLength) 24 return builder.offset() 25 } 26 } 27 } 28