Examples of readVarLong()


Examples of com.peterhi.obsolete.Stream.readVarLong()

    try {
      Stream stream = new Stream();
      stream.writeBit(1);
      stream.writeBit(1);
      stream.write(1);
      stream.readVarLong();
      fail();
    } catch (InsufficientBufferException ex) {
    } finally {
    }
  }
View Full Code Here

Examples of com.peterhi.obsolete.Stream.readVarLong()

            continue;
          }
        }
       
        if (nwi.isNormal()) {
          assertEquals(nwi.getNumber().longValue(), stream.readVarLong());
        } else {
          BigInteger flow = BigInteger.valueOf(2).pow(nwi.getBits());
          BigInteger left = nwi.getNumber();
          BigInteger right = BigInteger.valueOf(stream.readVarLong());
         
View Full Code Here

Examples of com.peterhi.obsolete.Stream.readVarLong()

        if (nwi.isNormal()) {
          assertEquals(nwi.getNumber().longValue(), stream.readVarLong());
        } else {
          BigInteger flow = BigInteger.valueOf(2).pow(nwi.getBits());
          BigInteger left = nwi.getNumber();
          BigInteger right = BigInteger.valueOf(stream.readVarLong());
         
          if (nwi.isOverflow()) {
            left = left.subtract(flow);
          } else {
            left = left.add(flow);
View Full Code Here

Examples of com.peterhi.obsolete.Stream.readVarLong()

 
  @Test
  public void fReadVarLong_void() throws Exception {
    try {
      Stream stream = new Stream();
      stream.readVarLong();
      fail();
    } catch (EOFException ex) {
    } finally {
    }
   
View Full Code Here

Examples of com.peterhi.obsolete.Stream.readVarLong()

    }
   
    try {
      Stream stream = new Stream();
      stream.writeBit(1);
      stream.readVarLong();
      fail();
    } catch (InsufficientBufferException ex) {
    } finally {
    }
   
View Full Code Here

Examples of com.peterhi.obsolete.Stream.readVarLong()

    }
   
    try {
      Stream stream = new Stream();
      stream.writeBit(2);
      stream.readVarLong();
      fail();
    } catch (InsufficientBufferException ex) {
    } finally {
    }
   
View Full Code Here

Examples of org.fusesource.hawtbuf.DataByteArrayInputStream.readVarLong()

    protected void onCommand(TransportPool pool, Object data) {
        try {
            DataByteArrayInputStream bais = new DataByteArrayInputStream( (Buffer) data);
            int size = bais.readInt();
            long correlation = bais.readVarLong();
            pool.onDone(correlation);
            ResponseFuture response = requests.remove(correlation);
            if( response!=null ) {
                response.set(bais);
            }
View Full Code Here

Examples of org.h2.store.DataReader.readVarLong()

                    }
                }
            } else if (x == PageLog.REMOVE) {
                int sessionId = in.readVarInt();
                setStorage(in.readVarInt());
                long key = in.readVarLong();
                writer.println("-- session " + sessionId +
                        " table " + storageId +
                        " - " + key);
                if (transactionLog) {
                    if (storageId == 0) {
View Full Code Here

Examples of org.h2.store.DataReader.readVarLong()

                    }
                }
            } else if (x == PageLog.REMOVE) {
                int sessionId = in.readVarInt();
                setStorage(in.readVarInt());
                long key = in.readVarLong();
                writer.println("-- session " + sessionId +
                        " table " + storageId +
                        " - " + key);
                if (transactionLog) {
                    if (storageId == 0) {
View Full Code Here

Examples of org.h2.store.DataReader.readVarLong()

                        " table " + storageId +
                        " add " + row.toString());
            } else if (x == PageLog.REMOVE) {
                int sessionId = in.readVarInt();
                setStorage(in.readVarInt());
                long key = in.readVarLong();
                writer.println("-- session " + sessionId +
                        " table " + storageId +
                        " remove " + key);
            } else if (x == PageLog.TRUNCATE) {
                int sessionId = in.readVarInt();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.