Debian Codegraph @

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

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