staticByteField

Returns a ReadWriteProperty for static byte field of the class with the specified fieldId.


context(env: JniEnv, autofreeScope: AutofreeScope)
inline fun JClass.staticByteField(name: CValuesRef<ByteVar>): ReadWriteProperty<Any?, Byte>?(source)

Returns a ReadWriteProperty for static byte field of the class with the specified name.

Return

a delegatable property of Byte type or null if the specified field was not found.

Parameters

name

the static field name in the null-terminated modified UTF-8. Use io.github.mimimishkin.jni.binding.modifiedUtf8 to get it, or if you are sure that your string doesn't have illegal characters you may use optimized String.utf8.

Throws

NoSuchFieldError

if the specified field cannot be found.

ExceptionInInitializerError

if the class initializer fails due to an exception.

if the system runs out of memory.


context(env: JniEnv, autofreeScope: AutofreeScope)
inline fun JClass.staticByteField(name: String): ReadWriteProperty<Any?, Byte>(source)

Returns a ReadWriteProperty for static byte field of the class with the specified name.

Return

a delegatable property of Byte type.

Parameters

name

the static field name.

Throws

NoSuchFieldError

if the specified field cannot be found.

ExceptionInInitializerError

if the class initializer fails due to an exception.

if the system runs out of memory.