1.1 --- a/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java Sun Nov 18 10:00:23 2012 +0100
1.2 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java Sun Nov 18 19:01:38 2012 +0100
1.3 @@ -43,6 +43,17 @@
1.4 float r = dis.readFloat();
1.5 return r;
1.6 }
1.7 + static double deserDouble() throws IOException {
1.8 + byte[] arr = {(byte)64, (byte)8, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0, (byte)0};
1.9 + ByteArrayInputStream is = new ByteArrayInputStream(arr);
1.10 + DataInputStream dis = new DataInputStream(is);
1.11 + return dis.readDouble();
1.12 + }
1.13 + static long deserLong(byte[] arr) throws IOException {
1.14 + ByteArrayInputStream is = new ByteArrayInputStream(arr);
1.15 + DataInputStream dis = new DataInputStream(is);
1.16 + return dis.readLong();
1.17 + }
1.18 static int deserInt() throws IOException {
1.19 byte[] arr = {(byte) 71, (byte) 84, (byte) 52, (byte) 83};
1.20 ByteArrayInputStream is = new ByteArrayInputStream(arr);