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