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