mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 12:21:23 +00:00
* [Kotlin] Control the generation of reflection with --reflect-names. Tested: ``` $ cmake -G "Unix Makefiles" && make && ./tests/flatc/main.py ... KotlinTests.EnumValAttributes [PASSED] KotlinTests.EnumValAttributes_ReflectNames [PASSED] KotlinTests: 2 of 2 passsed ... 35 of 35 tests passed ``` * [Kotlin] Fix SampleBinary by converting Byte to UByte for ubyte fields. * [Kotlin] Annotate all generated classes with kotlin.ExperimentalUnsignedTypes.
18 lines
611 B
Kotlin
18 lines
611 B
Kotlin
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
@Suppress("unused")
|
|
@kotlin.ExperimentalUnsignedTypes
|
|
class Character_ private constructor() {
|
|
companion object {
|
|
const val NONE: UByte = 0u
|
|
const val MuLan: UByte = 1u
|
|
const val Rapunzel: UByte = 2u
|
|
const val Belle: UByte = 3u
|
|
const val BookFan: UByte = 4u
|
|
const val Other: UByte = 5u
|
|
const val Unused: UByte = 6u
|
|
val names : Array<String> = arrayOf("NONE", "MuLan", "Rapunzel", "Belle", "BookFan", "Other", "Unused")
|
|
fun name(e: Int) : String = names[e]
|
|
}
|
|
}
|