Debian Codegraph @

third_party/rust/uniffi_bindgen/src/bindings/kotlin/templates/Int64Helper.kt

raw
1 /**
2 * @suppress
3 */
4 public object FfiConverterLong: FfiConverter<Long, Long> {
5 override fun lift(value: Long): Long {
6 return value
7 }
8
9 override fun read(buf: ByteBuffer): Long {
10 return buf.getLong()
11 }
12
13 override fun lower(value: Long): Long {
14 return value
15 }
16
17 override fun allocationSize(value: Long) = 8UL
18
19 override fun write(value: Long, buf: ByteBuffer) {
20 buf.putLong(value)
21 }
22 }