Source code
Revision control
Copy as Markdown
Other Tools
/**
* @suppress
*/
public object FfiConverterFloat: FfiConverter<Float, Float> {
override fun lift(value: Float): Float {
return value
}
override fun read(buf: ByteBuffer): Float {
return buf.getFloat()
}
override fun lower(value: Float): Float {
return value
}
override fun allocationSize(value: Float) = 4UL
override fun write(value: Float, buf: ByteBuffer) {
buf.putFloat(value)
}
}