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:
Hyang-Ah (Hana) Kim
2015-05-14 22:17:57 +00:00
committed by Hyang-Ah Hana Kim
parent b658bfdf39
commit 6d80e5a85f
9 changed files with 104 additions and 9 deletions
+2
View File
@@ -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);