Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame^] | 1 | // automatically generated by the FlatBuffers compiler, do not modify |
| 2 | |
| 3 | package MyGame |
| 4 | |
| 5 | import java.nio.* |
| 6 | import kotlin.math.sign |
| 7 | import com.google.flatbuffers.* |
| 8 | |
| 9 | @Suppress("unused") |
| 10 | @ExperimentalUnsignedTypes |
| 11 | class InParentNamespace : Table() { |
| 12 | |
| 13 | fun __init(_i: Int, _bb: ByteBuffer) { |
| 14 | __reset(_i, _bb) |
| 15 | } |
| 16 | fun __assign(_i: Int, _bb: ByteBuffer) : InParentNamespace { |
| 17 | __init(_i, _bb) |
| 18 | return this |
| 19 | } |
| 20 | companion object { |
| 21 | fun validateVersion() = Constants.FLATBUFFERS_1_11_1() |
| 22 | fun getRootAsInParentNamespace(_bb: ByteBuffer): InParentNamespace = getRootAsInParentNamespace(_bb, InParentNamespace()) |
| 23 | fun getRootAsInParentNamespace(_bb: ByteBuffer, obj: InParentNamespace): InParentNamespace { |
| 24 | _bb.order(ByteOrder.LITTLE_ENDIAN) |
| 25 | return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)) |
| 26 | } |
| 27 | fun startInParentNamespace(builder: FlatBufferBuilder) = builder.startTable(0) |
| 28 | fun endInParentNamespace(builder: FlatBufferBuilder) : Int { |
| 29 | val o = builder.endTable() |
| 30 | return o |
| 31 | } |
| 32 | } |
| 33 | } |