rt/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java
changeset 1460 ef506621d1ee
parent 1097 8e42a376da73
child 1462 1e7ff3ba3666
     1.1 --- a/rt/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java	Thu May 16 08:49:55 2013 +0200
     1.2 +++ b/rt/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java	Sun Feb 16 20:06:03 2014 +0100
     1.3 @@ -55,6 +55,9 @@
     1.4          DataInputStream dis = new DataInputStream(is);
     1.5          return dis.readLong();
     1.6      }
     1.7 +    static long deserLong(byte[] arr, int shift) throws IOException {
     1.8 +        return deserLong(arr) >> shift;
     1.9 +    }
    1.10      static int deserInt() throws IOException {
    1.11          byte[] arr = {(byte) 71, (byte) 84, (byte) 52, (byte) 83};
    1.12          ByteArrayInputStream is = new ByteArrayInputStream(arr);