blob: de8296fff6d62532bb5b0e896debc7ff1d1d79cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
public object FfiConverterShort: FfiConverter<Short, Short> {
override fun lift(value: Short): Short {
return value
}
override fun read(buf: ByteBuffer): Short {
return buf.getShort()
}
override fun lower(value: Short): Short {
return value
}
override fun allocationSize(value: Short) = 2UL
override fun write(value: Short, buf: ByteBuffer) {
buf.putShort(value)
}
}
|