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