Struct

open class Struct<T : Struct<T>>(source)

Struct definition

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
inner class ArrayField<F : Any>(val type: String, val length: Int)
Link copied to clipboard
inner class Field<F : Any>(val type: String)

Functions

Link copied to clipboard
inline fun <F : Any> arrayField(length: Int): Struct.ArrayField<F, T>

define a struct field that is an array of type F and size length

Link copied to clipboard
inline fun <F : Any> field(): Struct.Field<F, T>

define a struct field of type F

Link copied to clipboard
inline fun <T : Struct<T>> Struct<T>.typeDef(name: String = T::class.simpleName!!, bufferDefinition: Boolean = false): String
Link copied to clipboard
fun <T : Struct<T>> Struct<T>.typeDefImpl(name: String, bufferDefinition: Boolean = false): String

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard