mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
bind: support Bool types.
Also add missing int8/int16 handling in bind/seq. Fixes golang/go#10855. Change-Id: I326ada44df10fc3c22628bdd2ae4ee2c3dc7902e Reviewed-on: https://go-review.googlesource.com/10046 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
committed by
Hyang-Ah Hana Kim
parent
b658bfdf39
commit
6d80e5a85f
@@ -31,6 +31,7 @@ public class Seq {
|
||||
|
||||
public native void log(String label);
|
||||
|
||||
public native boolean readBool();
|
||||
public native byte readInt8();
|
||||
public native short readInt16();
|
||||
public native int readInt32();
|
||||
@@ -43,6 +44,7 @@ public class Seq {
|
||||
public String readString() { return readUTF16(); }
|
||||
public native byte[] readByteArray();
|
||||
|
||||
public native void writeBool(boolean v);
|
||||
public native void writeInt8(byte v);
|
||||
public native void writeInt16(short v);
|
||||
public native void writeInt32(int v);
|
||||
|
||||
Reference in New Issue
Block a user