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