Backed out 5 changesets (bug 1890092, bug 1888683) for causing build bustages & crash...
[gecko.git] / third_party / rust / uniffi_bindgen / src / bindings / kotlin / templates / UInt64Helper.kt
blob44d27ad36b1260db981b15fda61a6d79db7c7547
1 public object FfiConverterULong: FfiConverter<ULong, Long> {
2     override fun lift(value: Long): ULong {
3         return value.toULong()
4     }
6     override fun read(buf: ByteBuffer): ULong {
7         return lift(buf.getLong())
8     }
10     override fun lower(value: ULong): Long {
11         return value.toLong()
12     }
14     override fun allocationSize(value: ULong) = 8
16     override fun write(value: ULong, buf: ByteBuffer) {
17         buf.putLong(value.toLong())
18     }