Examples of debug_GetMark()


Examples of com.peterhi.obsolete.Data.debug_GetMark()

      assertEquals(0, data.readable());
     
      assertEquals(0, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } finally {
    }
  }
 
  @Test
View Full Code Here

Examples of com.peterhi.obsolete.Data.debug_GetMark()

      assertEquals(0, data.readable());
     
      assertEquals(512, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      for (int i = 0; i < 8; i++) {
        data.write2(i % 2 == 0);
      }
     
View Full Code Here

Examples of com.peterhi.obsolete.Data.debug_GetMark()

      assertEquals(400, data.readable());
     
      assertEquals(50, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(400, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      for (int i = 0; i < 8; i++) {
        data.write2(i % 2 == 0);
      }
     
View Full Code Here

Examples of com.peterhi.obsolete.Data.debug_GetMark()

      assertEquals(32, data.readable());
     
      assertEquals(4, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(32, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      BigInteger value = data.read(32, false);
     
      assertEquals(32, data.written());
      assertEquals(0, data.readable());
View Full Code Here

Examples of com.peterhi.obsolete.Data.debug_GetMark()

      assertEquals(31, data.readable());
     
      assertEquals(4, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(31, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      BigInteger value = data.read(31, false);
     
      assertEquals(31, data.written());
      assertEquals(0, data.readable());
View Full Code Here

Examples of com.peterhi.obsolete.Data.debug_GetMark()

      assertEquals(0, data.readable());
     
      assertEquals(0, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      data.write(value, 32);

      assertEquals(32, data.written());
      assertEquals(32, data.readable());
View Full Code Here

Examples of com.peterhi.obsolete.Data.debug_GetMark()

      assertEquals(32, data.readable());
     
      assertEquals(128, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(32, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());

      assertEquals(Integer.valueOf("01111111", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(Integer.valueOf("10100111", 2).byteValue(), data.debug_GetBuffer()[1]);
      assertEquals(Integer.valueOf("11000001", 2).byteValue(), data.debug_GetBuffer()[2]);
      assertEquals(Integer.valueOf("10000000", 2).byteValue(), data.debug_GetBuffer()[3]);
View Full Code Here

Examples of com.peterhi.obsolete.Data.debug_GetMark()

      assertEquals(0, data.readable());
     
      assertEquals(0, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      data.write(value, 31);

      assertEquals(31, data.written());
      assertEquals(31, data.readable());
View Full Code Here

Examples of com.peterhi.obsolete.Data.debug_GetMark()

      assertEquals(31, data.readable());
     
      assertEquals(128, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(31, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());

      assertEquals(Integer.valueOf("11111111", 2).byteValue(), data.debug_GetBuffer()[0]);
      assertEquals(Integer.valueOf("11010011", 2).byteValue(), data.debug_GetBuffer()[1]);
      assertEquals(Integer.valueOf("01100000", 2).byteValue(), data.debug_GetBuffer()[2]);
      assertEquals(Integer.valueOf("01000000", 2).byteValue(), data.debug_GetBuffer()[3]);
View Full Code Here

Examples of com.peterhi.obsolete.Data.debug_GetMark()

      assertEquals(0, data.readable());
     
      assertEquals(0, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      data.write(BigInteger.ONE, 0);
     
      assertEquals(0, data.written());
      assertEquals(0, data.readable());
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.