All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.org.luaj.vm2.JvmExt.kt Maven / Gradle / Ivy

Go to download

LUAK - Kotlin port of LuaJ (fork of https://github.com/korlibs/korge-luak)

There is a newer version: 1.0.0-alpha3
Show newest version
package org.luaj.vm2

import java.io.*

fun LuaValue.isuserdata(c: Class<*>): Boolean = isuserdata(c.kotlin)
fun LuaValue.optuserdata(c: Class<*>, defval: Any?): Any? = optuserdata(c.kotlin, defval)
fun LuaValue.checkuserdata(c: Class<*>): Any? = checkuserdata(c.kotlin)
fun LuaString.toInputStream(): InputStream = ByteArrayInputStream(this.m_bytes, this.m_offset, this.m_length)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy