Files
flatbuffers-bigfoot/tests/optional_scalars/OptionalByte.kt
Paulo Pinheiro 1606fb6375 Kotlin test optional enum (#6201)
* Add test for optional enums in Kotlin

* Rename optional_scalars2.fbs into optional_scalars.fbs

Also updated all references in the project to point to
"optional_scalars.fbs" instead of "optional_scalars2.fbs".
2020-10-22 13:36:02 -07:00

16 lines
426 B
Kotlin

// automatically generated by the FlatBuffers compiler, do not modify
package optional_scalars
@Suppress("unused")
@ExperimentalUnsignedTypes
class OptionalByte private constructor() {
companion object {
const val None: Byte = 0
const val One: Byte = 1
const val Two: Byte = 2
val names : Array<String> = arrayOf("None", "One", "Two")
fun name(e: Int) : String = names[e]
}
}