EmuUtil

object EmuUtil

Properties

Link copied to clipboard
Link copied to clipboard
val LB: String

Functions

Link copied to clipboard
fun construct(className: String, args: Array<Any>): Any
Link copied to clipboard
fun dumpBuffer(buffer: ByteBuffer, allHex: Boolean = false): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ByteBuf.readString(stopByte: Int = 0, charset: Charset = AppModule.charsetDoNotUse): String
fun ByteBuffer.readString(stopByte: Int = 0, charset: Charset = AppModule.charsetDoNotUse): String
Link copied to clipboard
Link copied to clipboard
inline fun <R> Timer.timeKt(toTime: () -> R): R
Link copied to clipboard
fun Duration.toLocalizedString(unit: DurationUnit, decimals: Int = 0): String

Similar to Duration.toString() except localized to the language.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun writeString(buffer: ByteBuf, s: String, stopByte: Int = 0, charset: Charset = AppModule.charsetDoNotUse)
fun writeString(buffer: ByteBuffer, s: String, stopByte: Int = 0, charset: Charset = AppModule.charsetDoNotUse)