Package com.peterhi.obsolete

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


      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]);
    } finally {
    }
View Full Code Here


      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]);
    } finally {
    }
   
View Full Code Here

      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]);
    } finally {
    }
   
    try {
View Full Code Here

      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]);
    } finally {
    }
   
    try {
      BigInteger value = new BigInteger(
View Full Code Here

      Data data = new Data(0);

      assertEquals(0, data.written());
      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);
View Full Code Here

      data.write(value, 31);

      assertEquals(31, data.written());
      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]);
View Full Code Here

      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]);
    } finally {
    }
View Full Code Here

      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]);
    } finally {
    }
   
View Full Code Here

      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]);
    } finally {
    }
   
    try {
View Full Code Here

      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]);
    } finally {
    }
   
    try {
      Data data = new Data(0);
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.