Package com.peterhi.obsolete

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


    try {
      Stream stream = new Stream();
      stream.writeBit(1);
     
      for (NumWithInfo nwi : genNumWithInfos(Integer.SIZE)) {
        stream.writeInt(nwi.getNumber().intValue(), nwi.getBits());
      }
     
      stream.writeBit(1);
     
      stream.readBit();
View Full Code Here


    try {
      Stream stream = new Stream();
      stream.writeBit(1);
     
      for (NumWithInfo nwi : genNumWithInfos(Integer.SIZE)) {
        stream.writeInt(nwi.getNumber().intValue(), nwi.getBits());
      }
     
      stream.writeBit(1);
     
      stream.readBit();
View Full Code Here

    try {
      Stream stream = new Stream();
      stream.writeBit(1);
     
      for (NumWithInfo nwi : genNumWithInfos(Integer.SIZE)) {
        stream.writeInt(nwi.getNumber().intValue());
      }
     
      stream.writeBit(1);
     
      stream.readBit();
View Full Code Here

    try {
      Stream stream = new Stream();
      stream.writeBit(1);
     
      for (NumWithInfo nwi : genNumWithInfos(Integer.SIZE)) {
        stream.writeInt(nwi.getNumber().intValue());
      }
     
      stream.writeBit(1);
     
      stream.readBit();
View Full Code Here

      assertEquals(0, stream.available());
      stream.writeBit(1);
      assertEquals(0, stream.available());
      stream.write(8);
      assertEquals(1, stream.available());
      stream.writeInt(0, 7);
      assertEquals(2, stream.available());
    } finally {
    }
  }
 
View Full Code Here

    } finally {
    }
   
    try {
      Stream stream = new Stream();
      stream.writeInt(0, 3);
      stream.readFully(new byte[1], 0, 1);
      fail();
    } catch (InsufficientBufferException ex) {
    } finally {
    }
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.