1 // automatically generated by the FlatBuffers compiler, do not modify 2 3 package MyGame.Example 4 5 import com.google.flatbuffers.BaseVector 6 import com.google.flatbuffers.BooleanVector 7 import com.google.flatbuffers.ByteVector 8 import com.google.flatbuffers.Constants 9 import com.google.flatbuffers.DoubleVector 10 import com.google.flatbuffers.FlatBufferBuilder 11 import com.google.flatbuffers.FloatVector 12 import com.google.flatbuffers.LongVector 13 import com.google.flatbuffers.StringVector 14 import com.google.flatbuffers.Struct 15 import com.google.flatbuffers.Table 16 import com.google.flatbuffers.UnionVector 17 import java.nio.ByteBuffer 18 import java.nio.ByteOrder 19 import kotlin.math.sign 20 21 @Suppress("unused") 22 class StructOfStructsOfStructs : Struct() { 23 __initnull24 fun __init(_i: Int, _bb: ByteBuffer) { 25 __reset(_i, _bb) 26 } __assignnull27 fun __assign(_i: Int, _bb: ByteBuffer) : StructOfStructsOfStructs { 28 __init(_i, _bb) 29 return this 30 } 31 val a : MyGame.Example.StructOfStructs? get() = a(MyGame.Example.StructOfStructs()) anull32 fun a(obj: MyGame.Example.StructOfStructs) : MyGame.Example.StructOfStructs? = obj.__assign(bb_pos + 0, bb) 33 companion object { 34 fun createStructOfStructsOfStructs(builder: FlatBufferBuilder, a_a_id: UInt, a_a_distance: UInt, a_b_a: Short, a_b_b: Byte, a_c_id: UInt, a_c_distance: UInt) : Int { 35 builder.prep(4, 20) 36 builder.prep(4, 20) 37 builder.prep(4, 8) 38 builder.putInt(a_c_distance.toInt()) 39 builder.putInt(a_c_id.toInt()) 40 builder.prep(2, 4) 41 builder.pad(1) 42 builder.putByte(a_b_b) 43 builder.putShort(a_b_a) 44 builder.prep(4, 8) 45 builder.putInt(a_a_distance.toInt()) 46 builder.putInt(a_a_id.toInt()) 47 return builder.offset() 48 } 49 } 50 } 51