Debian Codegraph @

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

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