blob: 75564276be884cbfe85e5fb717b2d6c6524c38ad (
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) = 2
override fun write(value: Short, buf: ByteBuffer) {
buf.putShort(value)
}
}
|