Debian Codegraph @

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

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