Debian Codegraph @

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

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